Index: uspace/Makefile
===================================================================
--- uspace/Makefile	(revision 0166e99928c90c6d2e990c69a7aaf84a6f93c6c0)
+++ uspace/Makefile	(revision 41f7564e975bcef427a9a5bcbb0c12c9001f1a58)
@@ -30,4 +30,5 @@
 #
 
+-include ../version
 -include Makefile.config
 
@@ -48,9 +49,16 @@
 	DIRS += pci
 endif
+
 ifeq ($(ARCH), ia32)
 	DIRS += pci
 endif
 
-CFLAGS += -DCONFIG_MIPS_FPU
+ifeq ($(ARCH), mips32)
+	CFLAGS += -DCONFIG_MIPS_FPU
+endif
+
+ifeq ($(ARCH), mips32eb)
+	CFLAGS += -DCONFIG_MIPS_FPU
+endif
 
 BUILDS := $(addsuffix .build,$(DIRS))
@@ -60,14 +68,9 @@
 
 all:
-	tools/config.py default $(NARCH)
-ifdef NARCH
- ifneq ($(ARCH), $(NARCH))
-	$(MAKE) -C . clean
- endif
-endif
+	../tools/config.py uspace.config default $(ARCH) $(COMPILER) $(CONFIG_DEBUG)
 	$(MAKE) -C . build
 
 config:
-	tools/config.py
+	../tools/config.py uspace.config
 
 build: $(BUILDS)
