diff options
Diffstat (limited to 'arch/x86/boot/Makefile')
-rw-r--r-- | arch/x86/boot/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile index 7a3116ccf387..dcad6507f196 100644 --- a/arch/x86/boot/Makefile +++ b/arch/x86/boot/Makefile | |||
@@ -49,10 +49,7 @@ HOSTCFLAGS_build.o := $(LINUXINCLUDE) | |||
49 | 49 | ||
50 | # How to compile the 16-bit code. Note we always compile for -march=i386, | 50 | # How to compile the 16-bit code. Note we always compile for -march=i386, |
51 | # that way we can complain to the user if the CPU is insufficient. | 51 | # that way we can complain to the user if the CPU is insufficient. |
52 | cflags-$(CONFIG_X86_32) := | ||
53 | cflags-$(CONFIG_X86_64) := -m32 | ||
54 | KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ | 52 | KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ |
55 | $(cflags-y) \ | ||
56 | -Wall -Wstrict-prototypes \ | 53 | -Wall -Wstrict-prototypes \ |
57 | -march=i386 -mregparm=3 \ | 54 | -march=i386 -mregparm=3 \ |
58 | -include $(srctree)/$(src)/code16gcc.h \ | 55 | -include $(srctree)/$(src)/code16gcc.h \ |
@@ -62,6 +59,7 @@ KBUILD_CFLAGS := $(LINUXINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \ | |||
62 | $(call cc-option, -fno-unit-at-a-time)) \ | 59 | $(call cc-option, -fno-unit-at-a-time)) \ |
63 | $(call cc-option, -fno-stack-protector) \ | 60 | $(call cc-option, -fno-stack-protector) \ |
64 | $(call cc-option, -mpreferred-stack-boundary=2) | 61 | $(call cc-option, -mpreferred-stack-boundary=2) |
62 | KBUILD_CFLAGS += $(call cc-option,-m32) | ||
65 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ | 63 | KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__ |
66 | 64 | ||
67 | $(obj)/zImage: IMAGE_OFFSET := 0x1000 | 65 | $(obj)/zImage: IMAGE_OFFSET := 0x1000 |