Commit 8bbb25c3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent 2da050c4
...@@ -31,6 +31,8 @@ subdir- := compressed ...@@ -31,6 +31,8 @@ subdir- := compressed
host-progs := tools/build host-progs := tools/build
HOSTCFLAGS_build.o := -Iinclude
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
$(obj)/zImage: IMAGE_OFFSET := 0x1000 $(obj)/zImage: IMAGE_OFFSET := 0x1000
......
...@@ -23,4 +23,4 @@ $(obj)/version.o: include/linux/compile.h ...@@ -23,4 +23,4 @@ $(obj)/version.o: include/linux/compile.h
include/linux/compile.h: FORCE include/linux/compile.h: FORCE
@echo ' CHK $@' @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)"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment