diff options
Diffstat (limited to 'arch/i386/Makefile')
-rw-r--r-- | arch/i386/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index d121ea18460f..36bef6543ac1 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile | |||
@@ -37,14 +37,11 @@ CFLAGS += $(call cc-option,-mpreferred-stack-boundary=2) | |||
37 | # CPU-specific tuning. Anything which can be shared with UML should go here. | 37 | # CPU-specific tuning. Anything which can be shared with UML should go here. |
38 | include $(srctree)/arch/i386/Makefile.cpu | 38 | include $(srctree)/arch/i386/Makefile.cpu |
39 | 39 | ||
40 | # -mregparm=3 works ok on gcc-3.0 and later | 40 | cflags-$(CONFIG_REGPARM) += -mregparm=3 |
41 | # | ||
42 | GCC_VERSION := $(call cc-version) | ||
43 | cflags-$(CONFIG_REGPARM) += $(shell if [ $(GCC_VERSION) -ge 0300 ] ; then echo "-mregparm=3"; fi ;) | ||
44 | 41 | ||
45 | # Disable unit-at-a-time mode, it makes gcc use a lot more stack | 42 | # Disable unit-at-a-time mode on pre-gcc-4.0 compilers, it makes gcc use |
46 | # due to the lack of sharing of stacklots. | 43 | # a lot more stack due to the lack of sharing of stacklots: |
47 | CFLAGS += $(call cc-option,-fno-unit-at-a-time) | 44 | CFLAGS += $(shell if [ $(call cc-version) -lt 0400 ] ; then echo $(call cc-option,-fno-unit-at-a-time); fi ;) |
48 | 45 | ||
49 | CFLAGS += $(cflags-y) | 46 | CFLAGS += $(cflags-y) |
50 | 47 | ||
@@ -103,7 +100,7 @@ AFLAGS += $(mflags-y) | |||
103 | boot := arch/i386/boot | 100 | boot := arch/i386/boot |
104 | 101 | ||
105 | .PHONY: zImage bzImage compressed zlilo bzlilo \ | 102 | .PHONY: zImage bzImage compressed zlilo bzlilo \ |
106 | zdisk bzdisk fdimage fdimage144 fdimage288 install kernel_install | 103 | zdisk bzdisk fdimage fdimage144 fdimage288 install |
107 | 104 | ||
108 | all: bzImage | 105 | all: bzImage |
109 | 106 | ||
@@ -125,8 +122,7 @@ zdisk bzdisk: vmlinux | |||
125 | fdimage fdimage144 fdimage288: vmlinux | 122 | fdimage fdimage144 fdimage288: vmlinux |
126 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ | 123 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) $@ |
127 | 124 | ||
128 | install: vmlinux | 125 | install: |
129 | install kernel_install: | ||
130 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install | 126 | $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(KBUILD_IMAGE) install |
131 | 127 | ||
132 | archclean: | 128 | archclean: |