diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-08-08 16:10:12 -0400 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-08-08 16:10:12 -0400 |
commit | af7a535688a758d15f06a98833e6a143b29af9de (patch) | |
tree | bac5ab210bbbbe276f0e44ed84194d7c8bb16aae /arch/arm/Makefile | |
parent | 0c17e4ceedd35c78b1c7413dbd16279a350be6bc (diff) | |
parent | c41107c2d4fd31924533f4dbc4c3428acc2b5894 (diff) |
Merge http://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm into for-rmk
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 56 |
1 files changed, 20 insertions, 36 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index b20995a82e04..703a44fa0f9b 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -67,7 +67,7 @@ tune-$(CONFIG_CPU_ARM720T) :=-mtune=arm7tdmi | |||
67 | tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi | 67 | tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi |
68 | tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi | 68 | tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi |
69 | tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi | 69 | tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi |
70 | tune-$(CONFIG_CPU_ARM946T) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) | 70 | tune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) |
71 | tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi | 71 | tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi |
72 | tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi | 72 | tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi |
73 | tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi | 73 | tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi |
@@ -97,9 +97,7 @@ textofs-y := 0x00008000 | |||
97 | machine-$(CONFIG_ARCH_RPC) := rpc | 97 | machine-$(CONFIG_ARCH_RPC) := rpc |
98 | machine-$(CONFIG_ARCH_EBSA110) := ebsa110 | 98 | machine-$(CONFIG_ARCH_EBSA110) := ebsa110 |
99 | machine-$(CONFIG_ARCH_CLPS7500) := clps7500 | 99 | machine-$(CONFIG_ARCH_CLPS7500) := clps7500 |
100 | incdir-$(CONFIG_ARCH_CLPS7500) := cl7500 | ||
101 | machine-$(CONFIG_FOOTBRIDGE) := footbridge | 100 | machine-$(CONFIG_FOOTBRIDGE) := footbridge |
102 | incdir-$(CONFIG_FOOTBRIDGE) := ebsa285 | ||
103 | machine-$(CONFIG_ARCH_SHARK) := shark | 101 | machine-$(CONFIG_ARCH_SHARK) := shark |
104 | machine-$(CONFIG_ARCH_SA1100) := sa1100 | 102 | machine-$(CONFIG_ARCH_SA1100) := sa1100 |
105 | ifeq ($(CONFIG_ARCH_SA1100),y) | 103 | ifeq ($(CONFIG_ARCH_SA1100),y) |
@@ -114,13 +112,15 @@ endif | |||
114 | machine-$(CONFIG_ARCH_IOP32X) := iop32x | 112 | machine-$(CONFIG_ARCH_IOP32X) := iop32x |
115 | machine-$(CONFIG_ARCH_IOP33X) := iop33x | 113 | machine-$(CONFIG_ARCH_IOP33X) := iop33x |
116 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx | 114 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx |
115 | plat-$(CONFIG_PLAT_IOP) := iop | ||
117 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 116 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
118 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 | 117 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 |
119 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx | 118 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx |
120 | machine-$(CONFIG_ARCH_OMAP1) := omap1 | 119 | machine-$(CONFIG_ARCH_OMAP1) := omap1 |
121 | machine-$(CONFIG_ARCH_OMAP2) := omap2 | 120 | machine-$(CONFIG_ARCH_OMAP2) := omap2 |
122 | incdir-$(CONFIG_ARCH_OMAP) := omap | 121 | plat-$(CONFIG_ARCH_OMAP) := omap |
123 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 | 122 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2442 s3c2443 |
123 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx | ||
124 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x | 124 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x |
125 | machine-$(CONFIG_ARCH_VERSATILE) := versatile | 125 | machine-$(CONFIG_ARCH_VERSATILE) := versatile |
126 | machine-$(CONFIG_ARCH_IMX) := imx | 126 | machine-$(CONFIG_ARCH_IMX) := imx |
@@ -135,10 +135,11 @@ endif | |||
135 | machine-$(CONFIG_ARCH_DAVINCI) := davinci | 135 | machine-$(CONFIG_ARCH_DAVINCI) := davinci |
136 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood | 136 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood |
137 | machine-$(CONFIG_ARCH_KS8695) := ks8695 | 137 | machine-$(CONFIG_ARCH_KS8695) := ks8695 |
138 | incdir-$(CONFIG_ARCH_MXC) := mxc | 138 | plat-$(CONFIG_ARCH_MXC) := mxc |
139 | machine-$(CONFIG_ARCH_MX2) := mx2 | 139 | machine-$(CONFIG_ARCH_MX2) := mx2 |
140 | machine-$(CONFIG_ARCH_MX3) := mx3 | 140 | machine-$(CONFIG_ARCH_MX3) := mx3 |
141 | machine-$(CONFIG_ARCH_ORION5X) := orion5x | 141 | machine-$(CONFIG_ARCH_ORION5X) := orion5x |
142 | plat-$(CONFIG_PLAT_ORION) := orion | ||
142 | machine-$(CONFIG_ARCH_MSM7X00A) := msm | 143 | machine-$(CONFIG_ARCH_MSM7X00A) := msm |
143 | machine-$(CONFIG_ARCH_LOKI) := loki | 144 | machine-$(CONFIG_ARCH_LOKI) := loki |
144 | machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 | 145 | machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 |
@@ -153,17 +154,22 @@ endif | |||
153 | # The byte offset of the kernel image in RAM from the start of RAM. | 154 | # The byte offset of the kernel image in RAM from the start of RAM. |
154 | TEXT_OFFSET := $(textofs-y) | 155 | TEXT_OFFSET := $(textofs-y) |
155 | 156 | ||
156 | ifeq ($(incdir-y),) | 157 | # The first directory contains additional information for the boot setup code |
157 | incdir-y := $(machine-y) | ||
158 | endif | ||
159 | INCDIR := arch-$(incdir-y) | ||
160 | |||
161 | ifneq ($(machine-y),) | 158 | ifneq ($(machine-y),) |
162 | MACHINE := arch/arm/mach-$(machine-y)/ | 159 | MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ |
163 | else | 160 | else |
164 | MACHINE := | 161 | MACHINE := |
165 | endif | 162 | endif |
166 | 163 | ||
164 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) | ||
165 | platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) | ||
166 | |||
167 | ifeq ($(KBUILD_SRC),) | ||
168 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) | ||
169 | else | ||
170 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) | ||
171 | endif | ||
172 | |||
167 | export TEXT_OFFSET GZFLAGS MMUEXT | 173 | export TEXT_OFFSET GZFLAGS MMUEXT |
168 | 174 | ||
169 | # Do we have FASTFPE? | 175 | # Do we have FASTFPE? |
@@ -174,23 +180,11 @@ endif | |||
174 | 180 | ||
175 | # If we have a machine-specific directory, then include it in the build. | 181 | # If we have a machine-specific directory, then include it in the build. |
176 | core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ | 182 | core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ |
177 | core-y += $(MACHINE) | 183 | core-y += $(machdirs) $(platdirs) |
178 | core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2400/ | ||
179 | core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2412/ | ||
180 | core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2440/ | ||
181 | core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2442/ | ||
182 | core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2443/ | ||
183 | core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ | 184 | core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ |
184 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) | 185 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) |
185 | core-$(CONFIG_VFP) += arch/arm/vfp/ | 186 | core-$(CONFIG_VFP) += arch/arm/vfp/ |
186 | 187 | ||
187 | # If we have a common platform directory, then include it in the build. | ||
188 | core-$(CONFIG_PLAT_IOP) += arch/arm/plat-iop/ | ||
189 | core-$(CONFIG_PLAT_ORION) += arch/arm/plat-orion/ | ||
190 | core-$(CONFIG_ARCH_OMAP) += arch/arm/plat-omap/ | ||
191 | core-$(CONFIG_PLAT_S3C24XX) += arch/arm/plat-s3c24xx/ | ||
192 | core-$(CONFIG_ARCH_MXC) += arch/arm/plat-mxc/ | ||
193 | |||
194 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ | 188 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
195 | 189 | ||
196 | libs-y := arch/arm/lib/ $(libs-y) | 190 | libs-y := arch/arm/lib/ $(libs-y) |
@@ -210,20 +204,10 @@ boot := arch/arm/boot | |||
210 | # them changed. We use .arch to indicate when they were updated | 204 | # them changed. We use .arch to indicate when they were updated |
211 | # last, otherwise make uses the target directory mtime. | 205 | # last, otherwise make uses the target directory mtime. |
212 | 206 | ||
213 | include/asm-arm/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf | ||
214 | @echo ' SYMLINK include/asm-arm/arch -> include/asm-arm/$(INCDIR)' | ||
215 | ifneq ($(KBUILD_SRC),) | ||
216 | $(Q)mkdir -p include/asm-arm | ||
217 | $(Q)ln -fsn $(srctree)/include/asm-arm/$(INCDIR) include/asm-arm/arch | ||
218 | else | ||
219 | $(Q)ln -fsn $(INCDIR) include/asm-arm/arch | ||
220 | endif | ||
221 | @touch $@ | ||
222 | |||
223 | archprepare: maketools | 207 | archprepare: maketools |
224 | 208 | ||
225 | PHONY += maketools FORCE | 209 | PHONY += maketools FORCE |
226 | maketools: include/linux/version.h include/asm-arm/.arch FORCE | 210 | maketools: include/linux/version.h FORCE |
227 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h | 211 | $(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h |
228 | 212 | ||
229 | # Convert bzImage to zImage | 213 | # Convert bzImage to zImage |