lkml.org 
[lkml]   [2005]   [Apr]   [5]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
Patch in this message
/
DateMon, 04 Apr 2005 23:14:16 -0700
From"H. Peter Anvin" <>
Subject[PATCH] biarch compiler support for i386
This allows the i386 architecture to be built on a system with a biarch 
compiler that defaults to x86-64, merely by specifying ARCH=i386.

As previously discussed, this uses the equivalent logic to the ppc port.

	-hpa

Signed-Off-By: H. Peter Anvin <hpa@zytor.com>
Index: linux-2.5/arch/i386/Makefile
===================================================================
RCS file: /home/hpa/kernel/bkcvs/linux-2.5/arch/i386/Makefile,v
retrieving revision 1.75
diff -u -r1.75 Makefile
--- linux-2.5/arch/i386/Makefile	12 Mar 2005 22:03:27 -0000	1.75
+++ linux-2.5/arch/i386/Makefile	5 Apr 2005 05:29:20 -0000
@@ -17,6 +17,13 @@
 #           Kianusch Sayah Karadji <kianusch@sk-tech.net>
 #           Added support for GEODE CPU
 
+HAS_BIARCH      := $(call cc-option-yn, -m32)
+ifeq ($(HAS_BIARCH),y)
+AS              := $(AS) --32
+LD              := $(LD) -m elf_i386
+CC              := $(CC) -m32
+endif
+
 LDFLAGS		:= -m elf_i386
 OBJCOPYFLAGS	:= -O binary -R .note -R .comment -S
 LDFLAGS_vmlinux :=
\
 
 \ /
  Last update: 2005-04-06 11:31    [W:0.346 / U:0.120 seconds]
©2003-2008 Jasper Spaans