diff options
Diffstat (limited to 'arch/x86/Makefile')
-rw-r--r-- | arch/x86/Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 0c5b4072d134..bfe061de8ed6 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile | |||
@@ -15,18 +15,15 @@ export BITS | |||
15 | ifeq ($(CONFIG_X86_32),y) | 15 | ifeq ($(CONFIG_X86_32),y) |
16 | BITS := 32 | 16 | BITS := 32 |
17 | UTS_MACHINE := i386 | 17 | UTS_MACHINE := i386 |
18 | CHECKFLAGS += -D__i386__ | ||
18 | 19 | ||
19 | HAS_BIARCH := $(call cc-option-yn, -m32) | 20 | biarch := $(call cc-option,-m32) |
20 | ifeq ($(HAS_BIARCH),y) | 21 | KBUILD_AFLAGS += $(biarch) |
21 | AS := $(AS) --32 | 22 | KBUILD_CFLAGS += $(biarch) |
22 | LD := $(LD) -m elf_i386 | ||
23 | CC := $(CC) -m32 | ||
24 | endif | ||
25 | 23 | ||
26 | ifdef CONFIG_RELOCATABLE | 24 | ifdef CONFIG_RELOCATABLE |
27 | LDFLAGS_vmlinux := --emit-relocs | 25 | LDFLAGS_vmlinux := --emit-relocs |
28 | endif | 26 | endif |
29 | CHECKFLAGS += -D__i386__ | ||
30 | 27 | ||
31 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return | 28 | KBUILD_CFLAGS += -msoft-float -mregparm=3 -freg-struct-return |
32 | 29 | ||