diff options
-rw-r--r-- | arch/arm/Makefile | 35 | ||||
-rw-r--r-- | arch/arm/tools/Makefile | 1 |
2 files changed, 20 insertions, 16 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index 2f0747744236..359d224c8c3e 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile | |||
@@ -114,13 +114,16 @@ endif | |||
114 | machine-$(CONFIG_ARCH_IOP32X) := iop32x | 114 | machine-$(CONFIG_ARCH_IOP32X) := iop32x |
115 | machine-$(CONFIG_ARCH_IOP33X) := iop33x | 115 | machine-$(CONFIG_ARCH_IOP33X) := iop33x |
116 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx | 116 | machine-$(CONFIG_ARCH_IOP13XX) := iop13xx |
117 | plat-$(CONFIG_PLAT_IOP) := iop | ||
117 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx | 118 | machine-$(CONFIG_ARCH_IXP4XX) := ixp4xx |
118 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 | 119 | machine-$(CONFIG_ARCH_IXP2000) := ixp2000 |
119 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx | 120 | machine-$(CONFIG_ARCH_IXP23XX) := ixp23xx |
120 | machine-$(CONFIG_ARCH_OMAP1) := omap1 | 121 | machine-$(CONFIG_ARCH_OMAP1) := omap1 |
121 | machine-$(CONFIG_ARCH_OMAP2) := omap2 | 122 | machine-$(CONFIG_ARCH_OMAP2) := omap2 |
122 | incdir-$(CONFIG_ARCH_OMAP) := omap | 123 | incdir-$(CONFIG_ARCH_OMAP) := omap |
123 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 | 124 | plat-$(CONFIG_ARCH_OMAP) := omap |
125 | machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2440 s3c2442 s3c2443 | ||
126 | plat-$(CONFIG_PLAT_S3C24XX) := s3c24xx | ||
124 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x | 127 | machine-$(CONFIG_ARCH_LH7A40X) := lh7a40x |
125 | machine-$(CONFIG_ARCH_VERSATILE) := versatile | 128 | machine-$(CONFIG_ARCH_VERSATILE) := versatile |
126 | machine-$(CONFIG_ARCH_IMX) := imx | 129 | machine-$(CONFIG_ARCH_IMX) := imx |
@@ -136,9 +139,11 @@ endif | |||
136 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood | 139 | machine-$(CONFIG_ARCH_KIRKWOOD) := kirkwood |
137 | machine-$(CONFIG_ARCH_KS8695) := ks8695 | 140 | machine-$(CONFIG_ARCH_KS8695) := ks8695 |
138 | incdir-$(CONFIG_ARCH_MXC) := mxc | 141 | incdir-$(CONFIG_ARCH_MXC) := mxc |
142 | plat-$(CONFIG_ARCH_MXC) := mxc | ||
139 | machine-$(CONFIG_ARCH_MX2) := mx2 | 143 | machine-$(CONFIG_ARCH_MX2) := mx2 |
140 | machine-$(CONFIG_ARCH_MX3) := mx3 | 144 | machine-$(CONFIG_ARCH_MX3) := mx3 |
141 | machine-$(CONFIG_ARCH_ORION5X) := orion5x | 145 | machine-$(CONFIG_ARCH_ORION5X) := orion5x |
146 | plat-$(CONFIG_PLAT_ORION) := orion | ||
142 | machine-$(CONFIG_ARCH_MSM7X00A) := msm | 147 | machine-$(CONFIG_ARCH_MSM7X00A) := msm |
143 | machine-$(CONFIG_ARCH_LOKI) := loki | 148 | machine-$(CONFIG_ARCH_LOKI) := loki |
144 | machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 | 149 | machine-$(CONFIG_ARCH_MV78XX0) := mv78xx0 |
@@ -154,16 +159,26 @@ endif | |||
154 | TEXT_OFFSET := $(textofs-y) | 159 | TEXT_OFFSET := $(textofs-y) |
155 | 160 | ||
156 | ifeq ($(incdir-y),) | 161 | ifeq ($(incdir-y),) |
157 | incdir-y := $(machine-y) | 162 | incdir-y := $(word 1,$(machine-y)) |
158 | endif | 163 | endif |
159 | INCDIR := arch-$(incdir-y) | 164 | INCDIR := arch-$(incdir-y) |
160 | 165 | ||
166 | # The first directory contains additional information for the boot setup code | ||
161 | ifneq ($(machine-y),) | 167 | ifneq ($(machine-y),) |
162 | MACHINE := arch/arm/mach-$(machine-y)/ | 168 | MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ |
163 | else | 169 | else |
164 | MACHINE := | 170 | MACHINE := |
165 | endif | 171 | endif |
166 | 172 | ||
173 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) | ||
174 | platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) | ||
175 | |||
176 | ifeq ($(KBUILD_SRC),) | ||
177 | KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) | ||
178 | else | ||
179 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) | ||
180 | endif | ||
181 | |||
167 | export TEXT_OFFSET GZFLAGS MMUEXT | 182 | export TEXT_OFFSET GZFLAGS MMUEXT |
168 | 183 | ||
169 | # Do we have FASTFPE? | 184 | # Do we have FASTFPE? |
@@ -174,23 +189,11 @@ endif | |||
174 | 189 | ||
175 | # If we have a machine-specific directory, then include it in the build. | 190 | # 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/ | 191 | core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ |
177 | core-y += $(MACHINE) | 192 | 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/ | 193 | core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ |
184 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) | 194 | core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) |
185 | core-$(CONFIG_VFP) += arch/arm/vfp/ | 195 | core-$(CONFIG_VFP) += arch/arm/vfp/ |
186 | 196 | ||
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/ | 197 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
195 | 198 | ||
196 | libs-y := arch/arm/lib/ $(libs-y) | 199 | libs-y := arch/arm/lib/ $(libs-y) |
diff --git a/arch/arm/tools/Makefile b/arch/arm/tools/Makefile index c2a4993a724c..1dbaa29ac4d7 100644 --- a/arch/arm/tools/Makefile +++ b/arch/arm/tools/Makefile | |||
@@ -6,4 +6,5 @@ | |||
6 | 6 | ||
7 | include/asm-arm/mach-types.h: $(src)/gen-mach-types $(src)/mach-types | 7 | include/asm-arm/mach-types.h: $(src)/gen-mach-types $(src)/mach-types |
8 | @echo ' Generating $@' | 8 | @echo ' Generating $@' |
9 | @mkdir -p $(dir $@) | ||
9 | $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; } | 10 | $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; } |