[PATCH] Minor cross-compile issues
From: Pratik Solanki
Date: Mon Feb 09 2004 - 11:41:40 EST
Attached are 2 patches
asm-boot.patch - Fixes include path for build.c so that it finds
asm/boot.h. /usr/include/asm/boot.h may not be present when
cross-compiling on a non-Linux machine.
shell.patch - Use $(CONFIG_SHELL) instead of sh.
Pratik.
===== arch/i386/boot/Makefile 1.28 vs edited =====
--- 1.28/arch/i386/boot/Makefile Thu Sep 11 06:01:23 2003
+++ edited/arch/i386/boot/Makefile Thu Feb 5 15:56:28 2004
@@ -31,6 +31,8 @@
host-progs := tools/build
+HOSTCFLAGS_build.o := -I$(TOPDIR)/include
+
# ---------------------------------------------------------------------------
$(obj)/zImage: IMAGE_OFFSET := 0x1000
===== init/Makefile 1.26 vs edited =====
--- 1.26/init/Makefile Sat Apr 26 14:43:03 2003
+++ edited/init/Makefile Thu Feb 5 15:43:29 2004
@@ -23,4 +23,4 @@
include/linux/compile.h: FORCE
@echo ' CHK $@'
- @sh $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"
+ @$(CONFIG_SHELL) $(srctree)/scripts/mkcompile_h $@ "$(UTS_MACHINE)" "$(CONFIG_SMP)" "$(CC) $(CFLAGS)"