aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/Makefile
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2008-08-08 16:10:12 -0400
committerBen Dooks <ben-linux@fluff.org>2008-08-08 16:10:12 -0400
commitaf7a535688a758d15f06a98833e6a143b29af9de (patch)
treebac5ab210bbbbe276f0e44ed84194d7c8bb16aae /arch/arm/Makefile
parent0c17e4ceedd35c78b1c7413dbd16279a350be6bc (diff)
parentc41107c2d4fd31924533f4dbc4c3428acc2b5894 (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/Makefile56
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
67tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi 67tune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi
68tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi 68tune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi
69tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi 69tune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi
70tune-$(CONFIG_CPU_ARM946T) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) 70tune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi)
71tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi 71tune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi
72tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi 72tune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi
73tune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi 73tune-$(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
105ifeq ($(CONFIG_ARCH_SA1100),y) 103ifeq ($(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.
154TEXT_OFFSET := $(textofs-y) 155TEXT_OFFSET := $(textofs-y)
155 156
156ifeq ($(incdir-y),) 157# The first directory contains additional information for the boot setup code
157incdir-y := $(machine-y)
158endif
159INCDIR := arch-$(incdir-y)
160
161ifneq ($(machine-y),) 158ifneq ($(machine-y),)
162MACHINE := arch/arm/mach-$(machine-y)/ 159MACHINE := arch/arm/mach-$(word 1,$(machine-y))/
163else 160else
164MACHINE := 161MACHINE :=
165endif 162endif
166 163
164machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
165platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y))
166
167ifeq ($(KBUILD_SRC),)
168KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs))
169else
170KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs))
171endif
172
167export TEXT_OFFSET GZFLAGS MMUEXT 173export 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.
176core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ 182core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/
177core-y += $(MACHINE) 183core-y += $(machdirs) $(platdirs)
178core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2400/
179core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2412/
180core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2440/
181core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2442/
182core-$(CONFIG_ARCH_S3C2410) += arch/arm/mach-s3c2443/
183core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ 184core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/
184core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) 185core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ)
185core-$(CONFIG_VFP) += arch/arm/vfp/ 186core-$(CONFIG_VFP) += arch/arm/vfp/
186 187
187# If we have a common platform directory, then include it in the build.
188core-$(CONFIG_PLAT_IOP) += arch/arm/plat-iop/
189core-$(CONFIG_PLAT_ORION) += arch/arm/plat-orion/
190core-$(CONFIG_ARCH_OMAP) += arch/arm/plat-omap/
191core-$(CONFIG_PLAT_S3C24XX) += arch/arm/plat-s3c24xx/
192core-$(CONFIG_ARCH_MXC) += arch/arm/plat-mxc/
193
194drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ 188drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/
195 189
196libs-y := arch/arm/lib/ $(libs-y) 190libs-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
213include/asm-arm/.arch: $(wildcard include/config/arch/*.h) include/config/auto.conf
214 @echo ' SYMLINK include/asm-arm/arch -> include/asm-arm/$(INCDIR)'
215ifneq ($(KBUILD_SRC),)
216 $(Q)mkdir -p include/asm-arm
217 $(Q)ln -fsn $(srctree)/include/asm-arm/$(INCDIR) include/asm-arm/arch
218else
219 $(Q)ln -fsn $(INCDIR) include/asm-arm/arch
220endif
221 @touch $@
222
223archprepare: maketools 207archprepare: maketools
224 208
225PHONY += maketools FORCE 209PHONY += maketools FORCE
226maketools: include/linux/version.h include/asm-arm/.arch FORCE 210maketools: 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