Skip to contentSkip to conversation

readd missing define to arch/um/Makefile-i386

PATCH In review Olaf Hering 2 participants 3 messages Jul 17, 2005 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 readd missing define to arch/um/Makefile-i386

New in 2.6.13-rc3-git4:

scripts/Makefile.build:13: /Makefile: No such file or directory scripts/Makefile.build:64: kbuild: Makefile.build is included improperly

the define was removed, but its still required to build some targets.

 arch/um/Makefile-i386 |    1 +
 1 files changed, 1 insertion(+)
arch/um/Makefile-i386 +1 -0
Index: linux-2.6.13-rc3-git4/arch/um/Makefile-i386
===================================================================
@@ -33,6 +33,7 @@ ifneq ($(CONFIG_GPROF),y)
 ARCH_CFLAGS += -DUM_FASTCALL
 endif
 
+SYS_UTIL_DIR	:= $(ARCH_DIR)/sys-i386/util
 SYS_HEADERS	:= $(SYS_DIR)/sc.h $(SYS_DIR)/thread.h
 
 prepare: $(SYS_HEADERS)
#1 lore raw

PATCH 1/1 add dependency to arch/um/Makefile for parallel builds

the headerfile must be build before mk_user_constants. Adding it as a direct dep doesnt work for some reason.

arch/um/os-Linux/util/mk_user_constants.c:2:26: error: user-offsets.h: No such file or directory arch/um/os-Linux/util/mk_user_constants.c: In function 'main':
arch/um/os-Linux/util/mk_user_constants.c:17: error: '__UM_FRAME_SIZE' undeclared (first use in this function) arch/um/os-Linux/util/mk_user_constants.c:17: error: (Each undeclared identifier is reported only once arch/um/os-Linux/util/mk_user_constants.c:17: error: for each function it appears in.) make[1]: *** [arch/um/os-Linux/util/mk_user_constants] Error 1

 arch/um/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
arch/um/Makefile +1 -1
Index: linux-2.6.13-rc3-git4/arch/um/Makefile
===================================================================
@@ -245,7 +245,7 @@ $(ARCH_DIR)/util: scripts_basic $(SYS_DI
 $(ARCH_DIR)/kernel/skas/util: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
 	$(Q)$(MAKE) $(build)=$@
 
-$(ARCH_DIR)/os-$(OS)/util: scripts_basic FORCE
+$(ARCH_DIR)/os-$(OS)/util: scripts_basic $(ARCH_DIR)/user-offsets.h FORCE
 	$(Q)$(MAKE) $(build)=$@
 
 export SUBARCH USER_CFLAGS OS
#2 lore raw
In reply to Olaf Hering
Quoted 8 lines · Olaf Hering

New in 2.6.13-rc3-git4:

scripts/Makefile.build:13: /Makefile: No such file or directory scripts/Makefile.build:64: kbuild: Makefile.build is included improperly

the define was removed, but its still required to build some targets.

Yes, this patch is the correct fix, also for -rc3-mm1 (which has the same problem).

Andrew, I hadn't the time to look at how you fixed up rejects in last merge ([PATCH] uml: allow building as 32-bit binary on 64bit host)*; the rejects came from the SKAS0 merge, and while you were fixing the patch up you deleted by mistake the line which is readded in this patch.

*
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=20d0021394c1b070bf04b22c5bc8fdb437edd4c5

Signature · 3 lines
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade