mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 3/5] UML - Tidy biarch gcc support
@ 2006-07-12 16:40 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2006-07-12 16:40 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, user-mode-linux-devel, Nishanth Aravamudan

On top of the previous biarch changes for UML, this makes the
preprocessor changes a bit cleaner. Specify the 64-bit build in CPPFLAGS
on the x86_64 SUBARCH, rather than #undef'ing i386. Compile-tested with
i386 and x86_64 SUBARCHs.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>

Index: linux-2.6.17/arch/um/Makefile-x86_64
===================================================================
--- linux-2.6.17.orig/arch/um/Makefile-x86_64	2006-07-12 11:26:41.000000000 -0400
+++ linux-2.6.17/arch/um/Makefile-x86_64	2006-07-12 11:32:52.000000000 -0400
@@ -11,6 +11,7 @@ USER_CFLAGS += -fno-builtin -m64
 CHECKFLAGS  += -m64
 AFLAGS += -m64
 LDFLAGS += -m elf_x86_64
+CPPFLAGS += -m64
 
 ELF_ARCH := i386:x86-64
 ELF_FORMAT := elf64-x86-64
Index: linux-2.6.17/arch/um/kernel/vmlinux.lds.S
===================================================================
--- linux-2.6.17.orig/arch/um/kernel/vmlinux.lds.S	2006-07-12 11:26:41.000000000 -0400
+++ linux-2.6.17/arch/um/kernel/vmlinux.lds.S	2006-07-12 11:32:52.000000000 -0400
@@ -1,5 +1,3 @@
-/* in case the preprocessor is a 32bit one */
-#undef i386
 #ifdef CONFIG_LD_SCRIPT_STATIC
 #include "uml.lds.S"
 #else


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-12 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-12 16:40 [PATCH 3/5] UML - Tidy biarch gcc support Jeff Dike

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

all inboxes | Powered by JetHome®