public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Minor cross-compile issues
@ 2004-02-09 16:39 Pratik Solanki
  2004-02-16 20:58 ` Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Pratik Solanki @ 2004-02-09 16:39 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

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.

[-- Attachment #2: asm-boot.patch --]
[-- Type: text/plain, Size: 384 bytes --]

===== 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

[-- Attachment #3: shell.patch --]
[-- Type: text/plain, Size: 409 bytes --]

===== 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)"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-02-17 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-09 16:39 [PATCH] Minor cross-compile issues Pratik Solanki
2004-02-16 20:58 ` Sam Ravnborg
2004-02-17 16:35   ` Pratik Solanki
2004-02-17 17:00     ` Sam Ravnborg
2004-02-17 17:29       ` Pratik Solanki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox