diff options
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 643839a3f5d8..51309848c11d 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -77,8 +77,8 @@ CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc | |||
77 | CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple | 77 | CFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) -ffixed-r2 -mmultiple |
78 | CPPFLAGS += $(CPPFLAGS-y) | 78 | CPPFLAGS += $(CPPFLAGS-y) |
79 | AFLAGS += $(AFLAGS-y) | 79 | AFLAGS += $(AFLAGS-y) |
80 | CFLAGS += -msoft-float -pipe $(CFLAGS-y) | 80 | KBUILD_CFLAGS += -msoft-float -pipe $(CFLAGS-y) |
81 | CPP = $(CC) -E $(CFLAGS) | 81 | CPP = $(CC) -E $(KBUILD_CFLAGS) |
82 | 82 | ||
83 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ | 83 | CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ -D__powerpc$(CONFIG_WORD_SIZE)__ |
84 | 84 | ||
@@ -88,35 +88,35 @@ GCC_BROKEN_VEC := $(shell if [ $(call cc-version) -lt 0400 ] ; then echo "y"; fi | |||
88 | ifeq ($(CONFIG_POWER4_ONLY),y) | 88 | ifeq ($(CONFIG_POWER4_ONLY),y) |
89 | ifeq ($(CONFIG_ALTIVEC),y) | 89 | ifeq ($(CONFIG_ALTIVEC),y) |
90 | ifeq ($(GCC_BROKEN_VEC),y) | 90 | ifeq ($(GCC_BROKEN_VEC),y) |
91 | CFLAGS += $(call cc-option,-mcpu=970) | 91 | KBUILD_CFLAGS += $(call cc-option,-mcpu=970) |
92 | else | 92 | else |
93 | CFLAGS += $(call cc-option,-mcpu=power4) | 93 | KBUILD_CFLAGS += $(call cc-option,-mcpu=power4) |
94 | endif | 94 | endif |
95 | else | 95 | else |
96 | CFLAGS += $(call cc-option,-mcpu=power4) | 96 | KBUILD_CFLAGS += $(call cc-option,-mcpu=power4) |
97 | endif | 97 | endif |
98 | else | 98 | else |
99 | CFLAGS += $(call cc-option,-mtune=power4) | 99 | KBUILD_CFLAGS += $(call cc-option,-mtune=power4) |
100 | endif | 100 | endif |
101 | endif | 101 | endif |
102 | 102 | ||
103 | ifeq ($(CONFIG_TUNE_CELL),y) | 103 | ifeq ($(CONFIG_TUNE_CELL),y) |
104 | CFLAGS += $(call cc-option,-mtune=cell) | 104 | KBUILD_CFLAGS += $(call cc-option,-mtune=cell) |
105 | endif | 105 | endif |
106 | 106 | ||
107 | # No AltiVec instruction when building kernel | 107 | # No AltiVec instruction when building kernel |
108 | CFLAGS += $(call cc-option,-mno-altivec) | 108 | KBUILD_CFLAGS += $(call cc-option,-mno-altivec) |
109 | 109 | ||
110 | # Enable unit-at-a-time mode when possible. It shrinks the | 110 | # Enable unit-at-a-time mode when possible. It shrinks the |
111 | # kernel considerably. | 111 | # kernel considerably. |
112 | CFLAGS += $(call cc-option,-funit-at-a-time) | 112 | KBUILD_CFLAGS += $(call cc-option,-funit-at-a-time) |
113 | 113 | ||
114 | # Never use string load/store instructions as they are | 114 | # Never use string load/store instructions as they are |
115 | # often slow when they are implemented at all | 115 | # often slow when they are implemented at all |
116 | CFLAGS += -mno-string | 116 | KBUILD_CFLAGS += -mno-string |
117 | 117 | ||
118 | ifeq ($(CONFIG_6xx),y) | 118 | ifeq ($(CONFIG_6xx),y) |
119 | CFLAGS += -mcpu=powerpc | 119 | KBUILD_CFLAGS += -mcpu=powerpc |
120 | endif | 120 | endif |
121 | 121 | ||
122 | cpu-as-$(CONFIG_4xx) += -Wa,-m405 | 122 | cpu-as-$(CONFIG_4xx) += -Wa,-m405 |
@@ -126,7 +126,7 @@ cpu-as-$(CONFIG_E500) += -Wa,-me500 | |||
126 | cpu-as-$(CONFIG_E200) += -Wa,-me200 | 126 | cpu-as-$(CONFIG_E200) += -Wa,-me200 |
127 | 127 | ||
128 | AFLAGS += $(cpu-as-y) | 128 | AFLAGS += $(cpu-as-y) |
129 | CFLAGS += $(cpu-as-y) | 129 | KBUILD_CFLAGS += $(cpu-as-y) |
130 | 130 | ||
131 | head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o | 131 | head-y := arch/powerpc/kernel/head_$(CONFIG_WORD_SIZE).o |
132 | head-$(CONFIG_8xx) := arch/powerpc/kernel/head_8xx.o | 132 | head-$(CONFIG_8xx) := arch/powerpc/kernel/head_8xx.o |