diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 14:23:06 -0400 |
commit | 821f3eff7cdb9d6c7076effabd46c96c322daed1 (patch) | |
tree | 60f13155196fd6c84424c8aebc133ca4a5f56749 /arch/powerpc/Makefile | |
parent | ebc283118ee448dcb6e6cae74a8a43f17a1ccc3f (diff) | |
parent | f77bf01425b11947eeb3b5b54685212c302741b8 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild
* git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild: (40 commits)
kbuild: introduce ccflags-y, asflags-y and ldflags-y
kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
kbuild: enable use of AFLAGS and CFLAGS on commandline
kbuild: enable 'make AFLAGS=...' to add additional options to AS
kbuild: fix AFLAGS use in h8300 and m68knommu
kbuild: check for wrong use of CFLAGS
kbuild: enable 'make CFLAGS=...' to add additional options to CC
kbuild: fix up CFLAGS usage
kbuild: make modpost detect unterminated device id lists
kbuild: call export_report from the Makefile
kbuild: move Kai Germaschewski to CREDITS
kconfig/menuconfig: distinguish between selected-by-another options and comments
kconfig: tristate choices with mixed tristate and boolean values
include/linux/Kbuild: remove duplicate entries
kbuild: kill backward compatibility checks
kbuild: kill EXTRA_ARFLAGS
kbuild: fix documentation in makefiles.txt
kbuild: call make once for all targets when O=.. is used
kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
kbuild: update _shipped files for kconfig syntax cleanup
...
Fix up conflicts in arch/um/sys-{x86_64,i386}/Makefile manually.
Diffstat (limited to 'arch/powerpc/Makefile')
-rw-r--r-- | arch/powerpc/Makefile | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 643839a3f5d8..4e165342210a 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -75,10 +75,10 @@ CPPFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) | |||
75 | AFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) | 75 | AFLAGS-$(CONFIG_PPC32) := -Iarch/$(ARCH) |
76 | CFLAGS-$(CONFIG_PPC64) := -mminimal-toc -mtraceback=none -mcall-aixdesc | 76 | 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 | KBUILD_CPPFLAGS += $(CPPFLAGS-y) |
79 | AFLAGS += $(AFLAGS-y) | 79 | KBUILD_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 |
@@ -125,8 +125,8 @@ cpu-as-$(CONFIG_POWER4) += -Wa,-maltivec | |||
125 | cpu-as-$(CONFIG_E500) += -Wa,-me500 | 125 | 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 | KBUILD_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 |