summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-18 04:54:59 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-18 04:54:59 -0800
commit8bbb25c3087995d66d6c0c0cd111b5b8bdd50837 (patch)
tree3d139eed0c54729c0345207b924c0f76f24450f4
parent2da050c495c5844e7feba3662bb4a274c9447901 (diff)
[PATCH] Minor cross-compile issues
From: Pratik Solanki <pratik.solanki@timesys.com> - Fix 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. - $(CONFIG_SHELL) instead of sh.
-rw-r--r--arch/i386/boot/Makefile2
-rw-r--r--init/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/i386/boot/Makefile b/arch/i386/boot/Makefile
index 4163ca694e33..d70853d99215 100644
--- a/arch/i386/boot/Makefile
+++ b/arch/i386/boot/Makefile
@@ -31,6 +31,8 @@ subdir- := compressed
host-progs := tools/build
+HOSTCFLAGS_build.o := -Iinclude
+
# ---------------------------------------------------------------------------
$(obj)/zImage: IMAGE_OFFSET := 0x1000
diff --git a/init/Makefile b/init/Makefile
index 8c30e0e377da..767b47b4f32c 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -23,4 +23,4 @@ $(obj)/version.o: include/linux/compile.h
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)"