* [PATCH] biarch compiler support for i386
@ 2005-04-05 6:14 H. Peter Anvin
2005-04-05 7:38 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: H. Peter Anvin @ 2005-04-05 6:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
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>
[-- Attachment #2: i386-biarch.patch --]
[-- Type: text/x-patch, Size: 738 bytes --]
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 :=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] biarch compiler support for i386
2005-04-05 6:14 [PATCH] biarch compiler support for i386 H. Peter Anvin
@ 2005-04-05 7:38 ` Christoph Hellwig
2005-04-05 7:44 ` H. Peter Anvin
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2005-04-05 7:38 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Andrew Morton, linux-kernel
On Mon, Apr 04, 2005 at 11:14:16PM -0700, H. Peter Anvin wrote:
> 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.
Given that the same logic applies to various other ports maybe it should
go into a common Makefile fragment?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] biarch compiler support for i386
2005-04-05 7:38 ` Christoph Hellwig
@ 2005-04-05 7:44 ` H. Peter Anvin
0 siblings, 0 replies; 3+ messages in thread
From: H. Peter Anvin @ 2005-04-05 7:44 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Andrew Morton, linux-kernel
Christoph Hellwig wrote:
> Given that the same logic applies to various other ports maybe it should
> go into a common Makefile fragment?
Alas, the *details* are different for each architecture.
-hpa
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-05 8:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-05 6:14 [PATCH] biarch compiler support for i386 H. Peter Anvin
2005-04-05 7:38 ` Christoph Hellwig
2005-04-05 7:44 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox