Skip to contentSkip to conversation

fix cross compile on x86_64

PATCH In review Olaf Hering 2 participants 2 messages Oct 20, 2004 – Oct 21, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix cross compile on x86_64

make all fails while building a helper app:

arch/x86_64/boot/tools/build.c:36:22: asm/boot.h: No such file or directory

Possible that make O=$foo did never work on x86_64.

This patch fixes it for me.

arch/x86_64/boot/Makefile +1 -0
diff -purN linux-2.6.9-bk4.orig/arch/x86_64/boot/Makefile linux-2.6.9/arch/x86_64/boot/Makefile
@@ -31,6 +31,7 @@ targets		:= vmlinux.bin bootsect bootsec
 EXTRA_CFLAGS := -m32
 
 hostprogs-y	:= tools/build
+HOST_EXTRACFLAGS += $(LINUXINCLUDE)
 subdir-		:= compressed/	#Let make clean descend in compressed/
 # ---------------------------------------------------------------------------
 
Signature · 3 lines
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG
#1 lore raw
Quoted 6 lines · Olaf Hering

make all fails while building a helper app:

arch/x86_64/boot/tools/build.c:36:22: asm/boot.h: No such file or directory

Possible that make O=$foo did never work on x86_64.

It works just fine with make bzImage and make. I'm not sure what "make all" is good for though.

Quoted 2 lines

This patch fixes it for me.

Thanks.

-Andi