diff options
author | H. Peter Anvin <hpa@zytor.com> | 2005-06-23 03:08:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-23 12:45:07 -0400 |
commit | d0e7feb03d5ac48069c2fd57bbba61522e0ca493 (patch) | |
tree | 58630bb380e675709d9f83d90f632f9658487a31 /arch/i386 | |
parent | 6f4e1e5061c44a93337338af4bf9bed10ee9f32e (diff) |
[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.
Signed-Off-By: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386')
-rw-r--r-- | arch/i386/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 1c36ca332a96..bf7c9ba709f3 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -17,6 +17,13 @@ | |||
17 | # 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net> | 17 | # 20050320 Kianusch Sayah Karadji <kianusch@sk-tech.net> |
18 | # Added support for GEODE CPU | 18 | # Added support for GEODE CPU |
19 | 19 | ||
20 | HAS_BIARCH := $(call cc-option-yn, -m32) | ||
21 | ifeq ($(HAS_BIARCH),y) | ||
22 | AS := $(AS) --32 | ||
23 | LD := $(LD) -m elf_i386 | ||
24 | CC := $(CC) -m32 | ||
25 | endif | ||
26 | |||
20 | LDFLAGS := -m elf_i386 | 27 | LDFLAGS := -m elf_i386 |
21 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S | 28 | OBJCOPYFLAGS := -O binary -R .note -R .comment -S |
22 | LDFLAGS_vmlinux := | 29 | LDFLAGS_vmlinux := |