Blame view
arch/arm/Makefile
13.1 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 |
# # arch/arm/Makefile # |
4f1933620 kbuild: change kb... |
4 5 6 |
# This file is included by the global makefile so that you can add your own # architecture-specific flags and dependencies. # |
1da177e4c Linux-2.6.12-rc2 |
7 8 9 10 11 |
# This file is subject to the terms and conditions of the GNU General Public # License. See the file "COPYING" in the main directory of this archive # for more details. # # Copyright (C) 1995-2001 by Russell King |
bcccc50ce ARM: 7420/1: Impr... |
12 13 |
# Ensure linker flags are correct LDFLAGS := |
02e541db0 ARM: 8323/1: forc... |
14 |
LDFLAGS_vmlinux :=-p --no-undefined -X --pic-veneer |
26584853a Add core support ... |
15 16 |
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) LDFLAGS_vmlinux += --be8 |
0ab89d0bf ARM: set --be8 wh... |
17 |
LDFLAGS_MODULE += --be8 |
26584853a Add core support ... |
18 |
endif |
51b563fc9 arm, cris, mips, ... |
19 |
|
7d485f647 ARM: 8220/1: allo... |
20 21 22 |
ifeq ($(CONFIG_ARM_MODULE_PLTS),y) LDFLAGS_MODULE += -T $(srctree)/arch/arm/kernel/module.lds endif |
1da177e4c Linux-2.6.12-rc2 |
23 |
GZFLAGS :=-9 |
a0f97e06a kbuild: enable 'm... |
24 |
#KBUILD_CFLAGS +=-pipe |
1da177e4c Linux-2.6.12-rc2 |
25 |
|
bd365591d ARM: 6328/1: Buil... |
26 27 |
# Never generate .eh_frame KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) |
32872c04f ARM: default to m... |
28 29 |
# This should work on most of the modern platforms KBUILD_DEFCONFIG := multi_v7_defconfig |
1da177e4c Linux-2.6.12-rc2 |
30 |
|
3dbda77e6 trivial: fix typo... |
31 |
# defines filename extension depending memory management type. |
f8c07de6b [ARM] nommu: add ... |
32 33 |
ifeq ($(CONFIG_MMU),) MMUEXT := -nommu |
e91b36efe ARM: 7592/1: nomm... |
34 |
KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) |
f8c07de6b [ARM] nommu: add ... |
35 |
endif |
1da177e4c Linux-2.6.12-rc2 |
36 |
ifeq ($(CONFIG_FRAME_POINTER),y) |
a0f97e06a kbuild: enable 'm... |
37 |
KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog |
1da177e4c Linux-2.6.12-rc2 |
38 39 40 |
endif ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) |
06c5040cd kbuild: enable 'm... |
41 |
KBUILD_CPPFLAGS += -mbig-endian |
ff0c6eece ARM: 8716/1: pass... |
42 |
CHECKFLAGS += -D__ARMEB__ |
1da177e4c Linux-2.6.12-rc2 |
43 44 45 |
AS += -EB LD += -EB else |
06c5040cd kbuild: enable 'm... |
46 |
KBUILD_CPPFLAGS += -mlittle-endian |
ff0c6eece ARM: 8716/1: pass... |
47 |
CHECKFLAGS += -D__ARMEL__ |
1da177e4c Linux-2.6.12-rc2 |
48 49 50 |
AS += -EL LD += -EL endif |
a077224fd ARM: 8429/1: disa... |
51 52 53 54 55 56 57 |
# # The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and # later may result in code being generated that handles signed short and signed # char struct members incorrectly. So disable it. # (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) # KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) |
1da177e4c Linux-2.6.12-rc2 |
58 59 60 61 |
# This selects which instruction set is used. # Note that GCC does not numerically define an architecture version # macro, but instead defines a whole series of macros which makes # testing for a specific architecture or later rather impossible. |
3c0c01ab7 Merge branch 'dev... |
62 |
arch-$(CONFIG_CPU_32v7M) =-D__LINUX_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m |
1b21376a7 ARM: 7777/1: Avoi... |
63 64 |
arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) arch-$(CONFIG_CPU_32v6) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6) |
23688e999 [ARM] armv7: add ... |
65 66 67 |
# Only override the compiler option if ARMv6. The ARMv6K extensions are # always available in ARMv7 ifeq ($(CONFIG_CPU_32v6),y) |
1b21376a7 ARM: 7777/1: Avoi... |
68 |
arch-$(CONFIG_CPU_32v6K) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k) |
23688e999 [ARM] armv7: add ... |
69 |
endif |
1b21376a7 ARM: 7777/1: Avoi... |
70 71 72 73 74 75 76 |
arch-$(CONFIG_CPU_32v5) =-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) arch-$(CONFIG_CPU_32v4T) =-D__LINUX_ARM_ARCH__=4 -march=armv4t arch-$(CONFIG_CPU_32v4) =-D__LINUX_ARM_ARCH__=4 -march=armv4 arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3 # Evaluate arch cc-option calls now arch-y := $(arch-y) |
1da177e4c Linux-2.6.12-rc2 |
77 78 |
# This selects how we optimise for the processor. |
1b21376a7 ARM: 7777/1: Avoi... |
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
tune-$(CONFIG_CPU_ARM7TDMI) =-mtune=arm7tdmi tune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi tune-$(CONFIG_CPU_ARM740T) =-mtune=arm7tdmi tune-$(CONFIG_CPU_ARM9TDMI) =-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM940T) =-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM946E) =$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) tune-$(CONFIG_CPU_ARM920T) =-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM922T) =-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM925T) =-mtune=arm9tdmi tune-$(CONFIG_CPU_ARM926T) =-mtune=arm9tdmi tune-$(CONFIG_CPU_FA526) =-mtune=arm9tdmi tune-$(CONFIG_CPU_SA110) =-mtune=strongarm110 tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100 tune-$(CONFIG_CPU_XSCALE) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale tune-$(CONFIG_CPU_XSC3) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale tune-$(CONFIG_CPU_FEROCEON) =$(call cc-option,-mtune=marvell-f,-mtune=xscale) tune-$(CONFIG_CPU_V6) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) # Evaluate tune cc-option calls now tune-y := $(tune-y) |
1da177e4c Linux-2.6.12-rc2 |
100 |
|
704bdda03 [ARM] 3107/3: ARM... |
101 |
ifeq ($(CONFIG_AEABI),y) |
f1222c5f7 ARM: 8766/1: drop... |
102 |
CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp |
704bdda03 [ARM] 3107/3: ARM... |
103 |
else |
c28a814f2 [PATCH] ARM: 2778... |
104 |
CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) |
704bdda03 [ARM] 3107/3: ARM... |
105 |
endif |
adf8b37ba [ARM] 5386/2: unw... |
106 107 108 |
ifeq ($(CONFIG_ARM_UNWIND),y) CFLAGS_ABI +=-funwind-tables endif |
16c79651a Thumb-2: Add Thum... |
109 |
ifeq ($(CONFIG_THUMB2_KERNEL),y) |
c540b9ff0 ARM: 5904/1: ARM:... |
110 |
AFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) |
16c79651a Thumb-2: Add Thum... |
111 |
AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) |
91802a8ef ARM: pass -marm t... |
112 113 |
CFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb |
6f685c5cd ARM: 6781/1: Thum... |
114 115 116 117 |
# Work around buggy relocation from gas if requested: ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) CFLAGS_MODULE +=-fno-optimize-sibling-calls endif |
91802a8ef ARM: pass -marm t... |
118 119 120 |
else CFLAGS_ISA :=$(call cc-option,-marm,) AFLAGS_ISA :=$(CFLAGS_ISA) |
16c79651a Thumb-2: Add Thum... |
121 |
endif |
704bdda03 [ARM] 3107/3: ARM... |
122 |
# Need -Uarm for gcc < 3.x |
91802a8ef ARM: pass -marm t... |
123 124 |
KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float |
1da177e4c Linux-2.6.12-rc2 |
125 |
|
6042b8c7c ARM: 8701/1: fix ... |
126 |
CHECKFLAGS += -D__arm__ -m32 |
1da177e4c Linux-2.6.12-rc2 |
127 128 |
#Default value |
5290dc292 arm: Use generic ... |
129 |
head-y := arch/arm/kernel/head$(MMUEXT).o |
10508b204 ARM: 8096/1: Desc... |
130 131 132 |
# Text offset. This list is sorted numerically by address in order to # provide a means to avoid/resolve conflicts in multi-arch kernels. |
9d4f13e53 [ARM] Make kernel... |
133 |
textofs-y := 0x00008000 |
c4761b69f ARM: S3C24XX: Loc... |
134 135 |
# We don't want the htc bootloader to corrupt kernel during resume textofs-$(CONFIG_PM_H1940) := 0x00108000 |
1da177e4c Linux-2.6.12-rc2 |
136 |
# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory |
b4175b899 [ARM] sort machin... |
137 138 |
ifeq ($(CONFIG_ARCH_SA1100),y) textofs-$(CONFIG_SA1111) := 0x00208000 |
1da177e4c Linux-2.6.12-rc2 |
139 |
endif |
9e775ad19 ARM: 7012/1: Set ... |
140 141 |
textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 |
1d22924e1 ARM: Add platform... |
142 |
textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 |
b4175b899 [ARM] sort machin... |
143 144 145 |
# Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. |
6bb8536cb ARM: Prepare Acti... |
146 |
machine-$(CONFIG_ARCH_ACTIONS) += actions |
445d9b306 ARM: Alpine: Init... |
147 |
machine-$(CONFIG_ARCH_ALPINE) += alpine |
590b460c3 arm: initial mach... |
148 |
machine-$(CONFIG_ARCH_ARTPEC) += artpec |
387798b37 ARM: initial mult... |
149 |
machine-$(CONFIG_ARCH_AT91) += at91 |
1d22924e1 ARM: Add platform... |
150 |
machine-$(CONFIG_ARCH_AXXIA) += axxia |
8ac49e048 Add support for g... |
151 |
machine-$(CONFIG_ARCH_BCM) += bcm |
1c37fa10b ARM: add initial ... |
152 |
machine-$(CONFIG_ARCH_BERLIN) += berlin |
387798b37 ARM: initial mult... |
153 154 155 |
machine-$(CONFIG_ARCH_CLPS711X) += clps711x machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx machine-$(CONFIG_ARCH_DAVINCI) += davinci |
16083d457 ARM: digicolor: a... |
156 |
machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor |
387798b37 ARM: initial mult... |
157 158 |
machine-$(CONFIG_ARCH_DOVE) += dove machine-$(CONFIG_ARCH_EBSA110) += ebsa110 |
6d85e2b0b ARM: new platform... |
159 |
machine-$(CONFIG_ARCH_EFM32) += efm32 |
387798b37 ARM: initial mult... |
160 |
machine-$(CONFIG_ARCH_EP93XX) += ep93xx |
6eddacae3 ARM: Fix sorting ... |
161 |
machine-$(CONFIG_ARCH_EXYNOS) += exynos |
c3c963e1f ARM: 8161/1: foot... |
162 |
machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge |
387798b37 ARM: initial mult... |
163 |
machine-$(CONFIG_ARCH_GEMINI) += gemini |
387798b37 ARM: initial mult... |
164 |
machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
7685b125c ARM: hisi: add AR... |
165 |
machine-$(CONFIG_ARCH_HISI) += hisi |
387798b37 ARM: initial mult... |
166 167 168 169 170 |
machine-$(CONFIG_ARCH_INTEGRATOR) += integrator machine-$(CONFIG_ARCH_IOP13XX) += iop13xx machine-$(CONFIG_ARCH_IOP32X) += iop32x machine-$(CONFIG_ARCH_IOP33X) += iop33x machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx |
6eddacae3 ARM: Fix sorting ... |
171 |
machine-$(CONFIG_ARCH_KEYSTONE) += keystone |
387798b37 ARM: initial mult... |
172 |
machine-$(CONFIG_ARCH_KS8695) += ks8695 |
e8d235d4d ARM: lpc18xx: add... |
173 |
machine-$(CONFIG_ARCH_LPC18XX) += lpc18xx |
387798b37 ARM: initial mult... |
174 |
machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx |
3b8f5030d ARM: meson: add b... |
175 |
machine-$(CONFIG_ARCH_MESON) += meson |
387798b37 ARM: initial mult... |
176 |
machine-$(CONFIG_ARCH_MMP) += mmp |
1847119dc ARM: vexpress/mps... |
177 |
machine-$(CONFIG_ARCH_MPS2) += vexpress |
17723fd35 ARM: moxart: add ... |
178 |
machine-$(CONFIG_ARCH_MOXART) += moxart |
387798b37 ARM: initial mult... |
179 |
machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 |
6eddacae3 ARM: Fix sorting ... |
180 |
machine-$(CONFIG_ARCH_MVEBU) += mvebu |
387798b37 ARM: initial mult... |
181 |
machine-$(CONFIG_ARCH_MXC) += imx |
f682a2185 arm: add basic su... |
182 |
machine-$(CONFIG_ARCH_MEDIATEK) += mediatek |
387798b37 ARM: initial mult... |
183 |
machine-$(CONFIG_ARCH_MXS) += mxs |
387798b37 ARM: initial mult... |
184 185 |
machine-$(CONFIG_ARCH_NETX) += netx machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
9851ca577 arm: Add Initial ... |
186 |
machine-$(CONFIG_ARCH_NSPIRE) += nspire |
e330ea5e8 ARM: oxnas: Add O... |
187 |
machine-$(CONFIG_ARCH_OXNAS) += oxnas |
387798b37 ARM: initial mult... |
188 189 190 191 |
machine-$(CONFIG_ARCH_OMAP1) += omap1 machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 machine-$(CONFIG_ARCH_ORION5X) += orion5x machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell |
387798b37 ARM: initial mult... |
192 |
machine-$(CONFIG_ARCH_PXA) += pxa |
8fc1b0f87 ARM: qcom: Split ... |
193 |
machine-$(CONFIG_ARCH_QCOM) += qcom |
387798b37 ARM: initial mult... |
194 |
machine-$(CONFIG_ARCH_REALVIEW) += realview |
d63dc0514 arm: add basic su... |
195 |
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip |
387798b37 ARM: initial mult... |
196 |
machine-$(CONFIG_ARCH_RPC) += rpc |
acf2d41d8 ARM: S3C24XX: Mov... |
197 |
machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx |
387798b37 ARM: initial mult... |
198 |
machine-$(CONFIG_ARCH_S3C64XX) += s3c64xx |
387798b37 ARM: initial mult... |
199 |
machine-$(CONFIG_ARCH_S5PV210) += s5pv210 |
387798b37 ARM: initial mult... |
200 |
machine-$(CONFIG_ARCH_SA1100) += sa1100 |
387798b37 ARM: initial mult... |
201 |
machine-$(CONFIG_ARCH_SHMOBILE) += shmobile |
6eddacae3 ARM: Fix sorting ... |
202 203 204 |
machine-$(CONFIG_ARCH_SIRF) += prima2 machine-$(CONFIG_ARCH_SOCFPGA) += socfpga machine-$(CONFIG_ARCH_STI) += sti |
9b799b783 ARM: Add STM32 fa... |
205 |
machine-$(CONFIG_ARCH_STM32) += stm32 |
6eddacae3 ARM: Fix sorting ... |
206 |
machine-$(CONFIG_ARCH_SUNXI) += sunxi |
d6de5b029 ARM: tango4: Init... |
207 |
machine-$(CONFIG_ARCH_TANGO) += tango |
387798b37 ARM: initial mult... |
208 209 210 |
machine-$(CONFIG_ARCH_TEGRA) += tegra machine-$(CONFIG_ARCH_U300) += u300 machine-$(CONFIG_ARCH_U8500) += ux500 |
ba56a9876 ARM: UniPhier: ad... |
211 |
machine-$(CONFIG_ARCH_UNIPHIER) += uniphier |
387798b37 ARM: initial mult... |
212 213 214 215 |
machine-$(CONFIG_ARCH_VERSATILE) += versatile machine-$(CONFIG_ARCH_VEXPRESS) += vexpress machine-$(CONFIG_ARCH_VT8500) += vt8500 machine-$(CONFIG_ARCH_W90X900) += w90x900 |
acede515b ARM: zx: add basi... |
216 |
machine-$(CONFIG_ARCH_ZX) += zx |
6eddacae3 ARM: Fix sorting ... |
217 |
machine-$(CONFIG_ARCH_ZYNQ) += zynq |
a7ed099ff ARM: spear: move ... |
218 |
machine-$(CONFIG_PLAT_SPEAR) += spear |
b4175b899 [ARM] sort machin... |
219 220 221 |
# Platform directory name. This list is sorted alphanumerically # by CONFIG_* macro name. |
e245f9699 ARM: EXYNOS: Deco... |
222 |
plat-$(CONFIG_ARCH_EXYNOS) += samsung |
387798b37 ARM: initial mult... |
223 224 |
plat-$(CONFIG_ARCH_OMAP) += omap plat-$(CONFIG_ARCH_S3C64XX) += samsung |
aa42587a4 ARM: S5PV210: Ena... |
225 |
plat-$(CONFIG_ARCH_S5PV210) += samsung |
387798b37 ARM: initial mult... |
226 |
plat-$(CONFIG_PLAT_IOP) += iop |
387798b37 ARM: initial mult... |
227 228 |
plat-$(CONFIG_PLAT_ORION) += orion plat-$(CONFIG_PLAT_PXA) += pxa |
09ec1d7ea ARM: S3C24XX: Rem... |
229 |
plat-$(CONFIG_PLAT_S3C24XX) += samsung |
387798b37 ARM: initial mult... |
230 |
plat-$(CONFIG_PLAT_VERSATILE) += versatile |
1da177e4c Linux-2.6.12-rc2 |
231 232 233 234 235 236 237 |
ifeq ($(CONFIG_ARCH_EBSA110),y) # This is what happens if you forget the IOCS16 line. # PCMCIA cards stop working. CFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL export CFLAGS_3c589_cs.o endif |
9d4f13e53 [ARM] Make kernel... |
238 239 |
# The byte offset of the kernel image in RAM from the start of RAM. TEXT_OFFSET := $(textofs-y) |
1da177e4c Linux-2.6.12-rc2 |
240 |
|
f44f82e8a [ARM] Add support... |
241 |
# The first directory contains additional information for the boot setup code |
1da177e4c Linux-2.6.12-rc2 |
242 |
ifneq ($(machine-y),) |
f44f82e8a [ARM] Add support... |
243 |
MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ |
1da177e4c Linux-2.6.12-rc2 |
244 245 246 |
else MACHINE := endif |
387798b37 ARM: initial mult... |
247 248 249 |
ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) MACHINE := endif |
a21765a70 [ARM] 4157/2: S3C... |
250 |
|
f44f82e8a [ARM] Add support... |
251 |
machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
aa42587a4 ARM: S5PV210: Ena... |
252 |
platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y))) |
f44f82e8a [ARM] Add support... |
253 |
|
387798b37 ARM: initial mult... |
254 |
ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) |
de8a06f67 ARM: hide mach-*/... |
255 |
ifneq ($(CONFIG_ARM_SINGLE_ARMV7M),y) |
f44f82e8a [ARM] Add support... |
256 257 258 259 260 |
ifeq ($(KBUILD_SRC),) KBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) else KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) endif |
387798b37 ARM: initial mult... |
261 |
endif |
de8a06f67 ARM: hide mach-*/... |
262 |
endif |
f44f82e8a [ARM] Add support... |
263 |
|
f8c07de6b [ARM] nommu: add ... |
264 |
export TEXT_OFFSET GZFLAGS MMUEXT |
1da177e4c Linux-2.6.12-rc2 |
265 266 267 268 269 270 |
# Do we have FASTFPE? FASTFPE :=arch/arm/fastfpe ifeq ($(FASTFPE),$(wildcard $(FASTFPE))) FASTFPE_OBJ :=$(FASTFPE)/ endif |
1da177e4c Linux-2.6.12-rc2 |
271 272 273 |
core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ core-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) core-$(CONFIG_VFP) += arch/arm/vfp/ |
4c071ee52 arm: initial Xen ... |
274 |
core-$(CONFIG_XEN) += arch/arm/xen/ |
749cf76c5 KVM: ARM: Initial... |
275 |
core-$(CONFIG_KVM_ARM_HOST) += arch/arm/kvm/ |
e5b61deb3 ARM: 8332/1: add ... |
276 |
core-$(CONFIG_VDSO) += arch/arm/vdso/ |
1da177e4c Linux-2.6.12-rc2 |
277 |
|
c62d0f2ac ARM: link board s... |
278 279 |
# If we have a machine-specific directory, then include it in the build. core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ |
fca08f326 ARM: probes: move... |
280 |
core-y += arch/arm/probes/ |
ddecdfcea ARM: 7259/3: net:... |
281 |
core-y += arch/arm/net/ |
f0be44f4f arm/crypto: Add o... |
282 |
core-y += arch/arm/crypto/ |
d9a1beaa1 ARM: add basic su... |
283 |
core-y += arch/arm/firmware/ |
c62d0f2ac ARM: link board s... |
284 |
core-y += $(machdirs) $(platdirs) |
1da177e4c Linux-2.6.12-rc2 |
285 |
drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
1da177e4c Linux-2.6.12-rc2 |
286 |
|
30c2f90b6 [ARM] 3097/1: cha... |
287 |
libs-y := arch/arm/lib/ $(libs-y) |
1da177e4c Linux-2.6.12-rc2 |
288 289 |
# Default target when executing plain make |
152e6744e arm: Use full pat... |
290 |
boot := arch/arm/boot |
1da177e4c Linux-2.6.12-rc2 |
291 |
ifeq ($(CONFIG_XIP_KERNEL),y) |
152e6744e arm: Use full pat... |
292 |
KBUILD_IMAGE := $(boot)/xipImage |
1da177e4c Linux-2.6.12-rc2 |
293 |
else |
152e6744e arm: Use full pat... |
294 |
KBUILD_IMAGE := $(boot)/zImage |
1da177e4c Linux-2.6.12-rc2 |
295 |
endif |
e50a622de ARM: 7520/1: Buil... |
296 297 298 299 |
# Build the DT binary blobs if we have OF configured ifeq ($(CONFIG_USE_OF),y) KBUILD_DTBS := dtbs endif |
152e6744e arm: Use full pat... |
300 |
all: $(notdir $(KBUILD_IMAGE)) $(KBUILD_DTBS) |
51342d712 [ARM] Add KBUILD_... |
301 |
|
1da177e4c Linux-2.6.12-rc2 |
302 |
|
96a8fae0f ARM: convert to g... |
303 304 |
archheaders: $(Q)$(MAKE) $(build)=arch/arm/tools uapi |
66206536f arm: move mach-ty... |
305 |
archprepare: |
4e2648db9 ARM: remove indir... |
306 |
$(Q)$(MAKE) $(build)=arch/arm/tools kapi |
1da177e4c Linux-2.6.12-rc2 |
307 308 309 |
# Convert bzImage to zImage bzImage: zImage |
19514fc66 arm, kbuild: make... |
310 311 312 313 |
BOOT_TARGETS = zImage Image xipImage bootpImage uImage INSTALL_TARGETS = zinstall uinstall install PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) |
3939f3345 ARM: 8418/1: add ... |
314 315 |
bootpImage uImage: zImage zImage: Image |
19514fc66 arm, kbuild: make... |
316 |
$(BOOT_TARGETS): vmlinux |
1da177e4c Linux-2.6.12-rc2 |
317 |
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ |
c6bbfbb72 ARM: 8576/1: avoi... |
318 |
@$(kecho) ' Kernel: $(boot)/$@ is ready' |
1da177e4c Linux-2.6.12-rc2 |
319 |
|
19514fc66 arm, kbuild: make... |
320 |
$(INSTALL_TARGETS): |
1da177e4c Linux-2.6.12-rc2 |
321 |
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
81793bab5 ARM: 7774/1: Fix ... |
322 |
%.dtb: | scripts |
499cd8298 ARM: dt: change .... |
323 |
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ |
5fd1a2ed0 arm/dt: Add dtb m... |
324 |
|
f4d4ffc03 kbuild: dtbs_inst... |
325 |
PHONY += dtbs dtbs_install |
9fb5e5372 dts, kbuild: Fact... |
326 327 |
dtbs: prepare scripts |
6f889d8ba dts, arm: Remove ... |
328 |
$(Q)$(MAKE) $(build)=$(boot)/dts |
5fd1a2ed0 arm/dt: Add dtb m... |
329 |
|
9fb5e5372 dts, kbuild: Fact... |
330 |
dtbs_install: |
6f889d8ba dts, arm: Remove ... |
331 |
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts |
9fb5e5372 dts, kbuild: Fact... |
332 |
|
e5b61deb3 ARM: 8332/1: add ... |
333 334 335 336 337 |
PHONY += vdso_install vdso_install: ifeq ($(CONFIG_VDSO),y) $(Q)$(MAKE) $(build)=arch/arm/vdso $@ endif |
1da177e4c Linux-2.6.12-rc2 |
338 339 340 341 342 343 |
# We use MRPROPER_FILES and CLEAN_FILES now archclean: $(Q)$(MAKE) $(clean)=$(boot) # My testing targets (bypasses dependencies) bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage |
1da177e4c Linux-2.6.12-rc2 |
344 |
|
1da177e4c Linux-2.6.12-rc2 |
345 346 347 348 349 |
define archhelp echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)' |
a4f14bace [ARM] 4853/1: inc... |
350 |
echo ' uImage - U-Boot wrapped zImage' |
c01c5a506 ARM: 7712/1: Remo... |
351 |
echo ' bootpImage - Combined zImage and initial RAM disk' |
1da177e4c Linux-2.6.12-rc2 |
352 |
echo ' (supply initrd image via make variable INITRD=<path>)' |
e50a622de ARM: 7520/1: Buil... |
353 |
echo '* dtbs - Build device tree blobs for enabled boards' |
f4d4ffc03 kbuild: dtbs_inst... |
354 |
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)' |
1da177e4c Linux-2.6.12-rc2 |
355 356 |
echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' |
a65d29225 ARM: add 'uinstal... |
357 |
echo ' uinstall - Install U-Boot wrapped compressed kernel' |
caa27b66b kbuild: use INSTA... |
358 359 |
echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' echo ' (distribution) /sbin/$(INSTALLKERNEL) or' |
1da177e4c Linux-2.6.12-rc2 |
360 |
echo ' install to $$(INSTALL_PATH) and run lilo' |
e5b61deb3 ARM: 8332/1: add ... |
361 |
echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso' |
1da177e4c Linux-2.6.12-rc2 |
362 |
endef |