Blame view
arch/arm/Makefile
12.5 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 |
091bb549f ARM: 8819/1: Remo... |
12 |
LDFLAGS_vmlinux := --no-undefined -X --pic-veneer |
26584853a Add core support ... |
13 14 |
ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) LDFLAGS_vmlinux += --be8 |
336303ae7 arm/kbuild: repla... |
15 |
KBUILD_LDFLAGS_MODULE += --be8 |
26584853a Add core support ... |
16 |
endif |
51b563fc9 arm, cris, mips, ... |
17 |
|
1da177e4c Linux-2.6.12-rc2 |
18 |
GZFLAGS :=-9 |
a0f97e06a kbuild: enable 'm... |
19 |
#KBUILD_CFLAGS +=-pipe |
1da177e4c Linux-2.6.12-rc2 |
20 |
|
bd365591d ARM: 6328/1: Buil... |
21 22 |
# Never generate .eh_frame KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) |
32872c04f ARM: default to m... |
23 24 |
# This should work on most of the modern platforms KBUILD_DEFCONFIG := multi_v7_defconfig |
1da177e4c Linux-2.6.12-rc2 |
25 |
|
3dbda77e6 trivial: fix typo... |
26 |
# defines filename extension depending memory management type. |
f8c07de6b [ARM] nommu: add ... |
27 28 |
ifeq ($(CONFIG_MMU),) MMUEXT := -nommu |
e91b36efe ARM: 7592/1: nomm... |
29 |
KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) |
f8c07de6b [ARM] nommu: add ... |
30 |
endif |
1da177e4c Linux-2.6.12-rc2 |
31 |
ifeq ($(CONFIG_FRAME_POINTER),y) |
6dc5fd93b ARM: 8900/1: UNWI... |
32 33 34 35 |
KBUILD_CFLAGS +=-fno-omit-frame-pointer ifeq ($(CONFIG_CC_IS_GCC),y) KBUILD_CFLAGS += -mapcs -mno-sched-prolog endif |
1da177e4c Linux-2.6.12-rc2 |
36 37 38 |
endif ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) |
06c5040cd kbuild: enable 'm... |
39 |
KBUILD_CPPFLAGS += -mbig-endian |
ff0c6eece ARM: 8716/1: pass... |
40 |
CHECKFLAGS += -D__ARMEB__ |
d503ac531 kbuild: rename LD... |
41 |
KBUILD_LDFLAGS += -EB |
1da177e4c Linux-2.6.12-rc2 |
42 |
else |
06c5040cd kbuild: enable 'm... |
43 |
KBUILD_CPPFLAGS += -mlittle-endian |
ff0c6eece ARM: 8716/1: pass... |
44 |
CHECKFLAGS += -D__ARMEL__ |
d503ac531 kbuild: rename LD... |
45 |
KBUILD_LDFLAGS += -EL |
1da177e4c Linux-2.6.12-rc2 |
46 |
endif |
a077224fd ARM: 8429/1: disa... |
47 48 49 50 51 52 53 |
# # 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 |
54 55 56 57 |
# 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... |
58 |
arch-$(CONFIG_CPU_32v7M) =-D__LINUX_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m |
1b21376a7 ARM: 7777/1: Avoi... |
59 60 |
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 ... |
61 62 63 |
# 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... |
64 |
arch-$(CONFIG_CPU_32v6K) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k) |
23688e999 [ARM] armv7: add ... |
65 |
endif |
1b21376a7 ARM: 7777/1: Avoi... |
66 67 68 |
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 |
8403bcb77 ARM: 8801/1: make... |
69 |
arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3m |
1b21376a7 ARM: 7777/1: Avoi... |
70 71 72 |
# Evaluate arch cc-option calls now arch-y := $(arch-y) |
1da177e4c Linux-2.6.12-rc2 |
73 74 |
# This selects how we optimise for the processor. |
1b21376a7 ARM: 7777/1: Avoi... |
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
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 |
96 |
|
704bdda03 [ARM] 3107/3: ARM... |
97 |
ifeq ($(CONFIG_AEABI),y) |
22905a243 ARM: 8766/1: drop... |
98 |
CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp |
704bdda03 [ARM] 3107/3: ARM... |
99 |
else |
c28a814f2 [PATCH] ARM: 2778... |
100 |
CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) |
704bdda03 [ARM] 3107/3: ARM... |
101 |
endif |
adf8b37ba [ARM] 5386/2: unw... |
102 103 104 |
ifeq ($(CONFIG_ARM_UNWIND),y) CFLAGS_ABI +=-funwind-tables endif |
b0fe66cf0 ARM: 8905/1: Emit... |
105 106 107 |
ifeq ($(CONFIG_CC_IS_CLANG),y) CFLAGS_ABI += -meabi gnu endif |
75fea300d ARM: 8723/2: alwa... |
108 109 |
# Accept old syntax despite ".syntax unified" AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) |
16c79651a Thumb-2: Add Thum... |
110 |
ifeq ($(CONFIG_THUMB2_KERNEL),y) |
b752bb405 Revert "ARM: 8846... |
111 |
CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always $(AFLAGS_NOWARN) |
91802a8ef ARM: pass -marm t... |
112 |
AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb |
91802a8ef ARM: pass -marm t... |
113 |
else |
75fea300d ARM: 8723/2: alwa... |
114 |
CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) |
91802a8ef ARM: pass -marm t... |
115 |
AFLAGS_ISA :=$(CFLAGS_ISA) |
16c79651a Thumb-2: Add Thum... |
116 |
endif |
704bdda03 [ARM] 3107/3: ARM... |
117 |
# Need -Uarm for gcc < 3.x |
91802a8ef ARM: pass -marm t... |
118 119 |
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 |
120 |
|
1f2f01b12 kbuild: add machi... |
121 |
CHECKFLAGS += -D__arm__ |
1da177e4c Linux-2.6.12-rc2 |
122 123 |
#Default value |
5290dc292 arm: Use generic ... |
124 |
head-y := arch/arm/kernel/head$(MMUEXT).o |
10508b204 ARM: 8096/1: Desc... |
125 126 127 |
# Text offset. This list is sorted numerically by address in order to # provide a means to avoid/resolve conflicts in multi-arch kernels. |
83dfeedb6 ARM: add TEXT_OFF... |
128 129 130 |
# Note: the 32kB below this value is reserved for use by the kernel # during boot, and this offset is critical to the functioning of # kexec-tools. |
9d4f13e53 [ARM] Make kernel... |
131 |
textofs-y := 0x00008000 |
c4761b69f ARM: S3C24XX: Loc... |
132 133 |
# We don't want the htc bootloader to corrupt kernel during resume textofs-$(CONFIG_PM_H1940) := 0x00108000 |
86aeee4d0 ARM: Prepare Real... |
134 135 |
# RTD1195 has Boot ROM at start of address space textofs-$(CONFIG_ARCH_REALTEK) := 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 |
f125e2d43 ARM: qcom: Add su... |
140 |
textofs-$(CONFIG_ARCH_IPQ40XX) := 0x00208000 |
9e775ad19 ARM: 7012/1: Set ... |
141 142 |
textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 |
d850f3e5d ARM: meson: Add S... |
143 |
textofs-$(CONFIG_ARCH_MESON) := 0x00208000 |
1d22924e1 ARM: Add platform... |
144 |
textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 |
b4175b899 [ARM] sort machin... |
145 146 147 |
# Machine directory name. This list is sorted alphanumerically # by CONFIG_* macro name. |
6bb8536cb ARM: Prepare Acti... |
148 |
machine-$(CONFIG_ARCH_ACTIONS) += actions |
445d9b306 ARM: Alpine: Init... |
149 |
machine-$(CONFIG_ARCH_ALPINE) += alpine |
590b460c3 arm: initial mach... |
150 |
machine-$(CONFIG_ARCH_ARTPEC) += artpec |
87dfe4969 ARM: aspeed: Enab... |
151 |
machine-$(CONFIG_ARCH_ASPEED) += aspeed |
387798b37 ARM: initial mult... |
152 |
machine-$(CONFIG_ARCH_AT91) += at91 |
1d22924e1 ARM: Add platform... |
153 |
machine-$(CONFIG_ARCH_AXXIA) += axxia |
8ac49e048 Add support for g... |
154 |
machine-$(CONFIG_ARCH_BCM) += bcm |
1c37fa10b ARM: add initial ... |
155 |
machine-$(CONFIG_ARCH_BERLIN) += berlin |
387798b37 ARM: initial mult... |
156 157 158 |
machine-$(CONFIG_ARCH_CLPS711X) += clps711x machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx machine-$(CONFIG_ARCH_DAVINCI) += davinci |
16083d457 ARM: digicolor: a... |
159 |
machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor |
387798b37 ARM: initial mult... |
160 161 |
machine-$(CONFIG_ARCH_DOVE) += dove machine-$(CONFIG_ARCH_EBSA110) += ebsa110 |
6d85e2b0b ARM: new platform... |
162 |
machine-$(CONFIG_ARCH_EFM32) += efm32 |
387798b37 ARM: initial mult... |
163 |
machine-$(CONFIG_ARCH_EP93XX) += ep93xx |
6eddacae3 ARM: Fix sorting ... |
164 |
machine-$(CONFIG_ARCH_EXYNOS) += exynos |
c3c963e1f ARM: 8161/1: foot... |
165 |
machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge |
387798b37 ARM: initial mult... |
166 |
machine-$(CONFIG_ARCH_GEMINI) += gemini |
387798b37 ARM: initial mult... |
167 |
machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
7685b125c ARM: hisi: add AR... |
168 |
machine-$(CONFIG_ARCH_HISI) += hisi |
387798b37 ARM: initial mult... |
169 |
machine-$(CONFIG_ARCH_INTEGRATOR) += integrator |
387798b37 ARM: initial mult... |
170 |
machine-$(CONFIG_ARCH_IOP32X) += iop32x |
387798b37 ARM: initial mult... |
171 |
machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx |
6eddacae3 ARM: Fix sorting ... |
172 |
machine-$(CONFIG_ARCH_KEYSTONE) += keystone |
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 |
9fb29c734 ARM: milbeaut: Ad... |
183 |
machine-$(CONFIG_ARCH_MILBEAUT) += milbeaut |
387798b37 ARM: initial mult... |
184 |
machine-$(CONFIG_ARCH_MXS) += mxs |
312b62b66 ARM: mstar: Add m... |
185 |
machine-$(CONFIG_ARCH_MSTARV7) += mstar |
387798b37 ARM: initial mult... |
186 |
machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
7bffa14c9 arm: npcm: add ba... |
187 |
machine-$(CONFIG_ARCH_NPCM) += npcm |
9851ca577 arm: Add Initial ... |
188 |
machine-$(CONFIG_ARCH_NSPIRE) += nspire |
e330ea5e8 ARM: oxnas: Add O... |
189 |
machine-$(CONFIG_ARCH_OXNAS) += oxnas |
387798b37 ARM: initial mult... |
190 191 192 193 |
machine-$(CONFIG_ARCH_OMAP1) += omap1 machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 machine-$(CONFIG_ARCH_ORION5X) += orion5x machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell |
387798b37 ARM: initial mult... |
194 |
machine-$(CONFIG_ARCH_PXA) += pxa |
8fc1b0f87 ARM: qcom: Split ... |
195 |
machine-$(CONFIG_ARCH_QCOM) += qcom |
78e3dbc16 ARM: Prepare RDA8... |
196 |
machine-$(CONFIG_ARCH_RDA) += rda |
86aeee4d0 ARM: Prepare Real... |
197 |
machine-$(CONFIG_ARCH_REALTEK) += realtek |
387798b37 ARM: initial mult... |
198 |
machine-$(CONFIG_ARCH_REALVIEW) += realview |
d63dc0514 arm: add basic su... |
199 |
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip |
387798b37 ARM: initial mult... |
200 |
machine-$(CONFIG_ARCH_RPC) += rpc |
71b9114d2 ARM: s3c: move in... |
201 |
machine-$(CONFIG_PLAT_SAMSUNG) += s3c |
387798b37 ARM: initial mult... |
202 |
machine-$(CONFIG_ARCH_S5PV210) += s5pv210 |
387798b37 ARM: initial mult... |
203 |
machine-$(CONFIG_ARCH_SA1100) += sa1100 |
d9be9ceb1 arm: shmobile: Ch... |
204 |
machine-$(CONFIG_ARCH_RENESAS) += shmobile |
6eddacae3 ARM: Fix sorting ... |
205 206 207 |
machine-$(CONFIG_ARCH_SIRF) += prima2 machine-$(CONFIG_ARCH_SOCFPGA) += socfpga machine-$(CONFIG_ARCH_STI) += sti |
9b799b783 ARM: Add STM32 fa... |
208 |
machine-$(CONFIG_ARCH_STM32) += stm32 |
6eddacae3 ARM: Fix sorting ... |
209 |
machine-$(CONFIG_ARCH_SUNXI) += sunxi |
d6de5b029 ARM: tango4: Init... |
210 |
machine-$(CONFIG_ARCH_TANGO) += tango |
387798b37 ARM: initial mult... |
211 212 213 214 215 216 |
machine-$(CONFIG_ARCH_TEGRA) += tegra machine-$(CONFIG_ARCH_U300) += u300 machine-$(CONFIG_ARCH_U8500) += ux500 machine-$(CONFIG_ARCH_VERSATILE) += versatile machine-$(CONFIG_ARCH_VEXPRESS) += vexpress machine-$(CONFIG_ARCH_VT8500) += vt8500 |
acede515b ARM: zx: add basi... |
217 |
machine-$(CONFIG_ARCH_ZX) += zx |
6eddacae3 ARM: Fix sorting ... |
218 |
machine-$(CONFIG_ARCH_ZYNQ) += zynq |
a7ed099ff ARM: spear: move ... |
219 |
machine-$(CONFIG_PLAT_SPEAR) += spear |
b4175b899 [ARM] sort machin... |
220 221 222 |
# Platform directory name. This list is sorted alphanumerically # by CONFIG_* macro name. |
387798b37 ARM: initial mult... |
223 |
plat-$(CONFIG_ARCH_OMAP) += omap |
387798b37 ARM: initial mult... |
224 225 |
plat-$(CONFIG_PLAT_ORION) += orion plat-$(CONFIG_PLAT_PXA) += pxa |
387798b37 ARM: initial mult... |
226 |
plat-$(CONFIG_PLAT_VERSATILE) += versatile |
1da177e4c Linux-2.6.12-rc2 |
227 228 229 230 231 232 233 |
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... |
234 235 |
# The byte offset of the kernel image in RAM from the start of RAM. TEXT_OFFSET := $(textofs-y) |
1da177e4c Linux-2.6.12-rc2 |
236 |
|
f44f82e8a [ARM] Add support... |
237 |
# The first directory contains additional information for the boot setup code |
1da177e4c Linux-2.6.12-rc2 |
238 |
ifneq ($(machine-y),) |
f44f82e8a [ARM] Add support... |
239 |
MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ |
1da177e4c Linux-2.6.12-rc2 |
240 241 242 |
else MACHINE := endif |
387798b37 ARM: initial mult... |
243 244 245 |
ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) MACHINE := endif |
a21765a70 [ARM] 4157/2: S3C... |
246 |
|
f44f82e8a [ARM] Add support... |
247 |
machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
aa42587a4 ARM: S5PV210: Ena... |
248 |
platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y))) |
f44f82e8a [ARM] Add support... |
249 |
|
387798b37 ARM: initial mult... |
250 |
ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) |
de8a06f67 ARM: hide mach-*/... |
251 |
ifneq ($(CONFIG_ARM_SINGLE_ARMV7M),y) |
f44f82e8a [ARM] Add support... |
252 253 |
KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) endif |
387798b37 ARM: initial mult... |
254 |
endif |
f44f82e8a [ARM] Add support... |
255 |
|
f8c07de6b [ARM] nommu: add ... |
256 |
export TEXT_OFFSET GZFLAGS MMUEXT |
1da177e4c Linux-2.6.12-rc2 |
257 |
|
846484ea7 ARM: 8981/1: add ... |
258 |
core-y += arch/arm/ |
c62d0f2ac ARM: link board s... |
259 |
# If we have a machine-specific directory, then include it in the build. |
c62d0f2ac ARM: link board s... |
260 |
core-y += $(machdirs) $(platdirs) |
2a58e142a ARM: 8895/1: visi... |
261 262 263 |
# For cleaning core- += $(patsubst %,arch/arm/mach-%/, $(machine-)) core- += $(patsubst %,arch/arm/plat-%/, $(plat-)) |
1da177e4c Linux-2.6.12-rc2 |
264 |
drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
1da177e4c Linux-2.6.12-rc2 |
265 |
|
30c2f90b6 [ARM] 3097/1: cha... |
266 |
libs-y := arch/arm/lib/ $(libs-y) |
1da177e4c Linux-2.6.12-rc2 |
267 268 |
# Default target when executing plain make |
152e6744e arm: Use full pat... |
269 |
boot := arch/arm/boot |
1da177e4c Linux-2.6.12-rc2 |
270 |
ifeq ($(CONFIG_XIP_KERNEL),y) |
152e6744e arm: Use full pat... |
271 |
KBUILD_IMAGE := $(boot)/xipImage |
1da177e4c Linux-2.6.12-rc2 |
272 |
else |
152e6744e arm: Use full pat... |
273 |
KBUILD_IMAGE := $(boot)/zImage |
1da177e4c Linux-2.6.12-rc2 |
274 |
endif |
189af4657 ARM: smp: add sup... |
275 276 277 |
ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y) prepare: stack_protector_prepare stack_protector_prepare: prepare0 |
89604523a ARM: 8961/2: Fix ... |
278 |
$(eval SSP_PLUGIN_CFLAGS := \ |
189af4657 ARM: smp: add sup... |
279 280 281 282 283 284 |
-fplugin-arg-arm_ssp_per_task_plugin-tso=$(shell \ awk '{if ($$2 == "THREAD_SZ_ORDER") print $$3;}'\ include/generated/asm-offsets.h) \ -fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \ awk '{if ($$2 == "TI_STACK_CANARY") print $$3;}'\ include/generated/asm-offsets.h)) |
89604523a ARM: 8961/2: Fix ... |
285 286 |
$(eval KBUILD_CFLAGS += $(SSP_PLUGIN_CFLAGS)) $(eval GCC_PLUGINS_CFLAGS += $(SSP_PLUGIN_CFLAGS)) |
189af4657 ARM: smp: add sup... |
287 |
endif |
37c8a5faf kbuild: consolida... |
288 |
all: $(notdir $(KBUILD_IMAGE)) |
51342d712 [ARM] Add KBUILD_... |
289 |
|
1da177e4c Linux-2.6.12-rc2 |
290 |
|
96a8fae0f ARM: convert to g... |
291 292 |
archheaders: $(Q)$(MAKE) $(build)=arch/arm/tools uapi |
66206536f arm: move mach-ty... |
293 |
archprepare: |
4e2648db9 ARM: remove indir... |
294 |
$(Q)$(MAKE) $(build)=arch/arm/tools kapi |
1da177e4c Linux-2.6.12-rc2 |
295 296 297 |
# Convert bzImage to zImage bzImage: zImage |
19514fc66 arm, kbuild: make... |
298 299 300 301 |
BOOT_TARGETS = zImage Image xipImage bootpImage uImage INSTALL_TARGETS = zinstall uinstall install PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) |
3939f3345 ARM: 8418/1: add ... |
302 303 |
bootpImage uImage: zImage zImage: Image |
19514fc66 arm, kbuild: make... |
304 |
$(BOOT_TARGETS): vmlinux |
1da177e4c Linux-2.6.12-rc2 |
305 |
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ |
c6bbfbb72 ARM: 8576/1: avoi... |
306 |
@$(kecho) ' Kernel: $(boot)/$@ is ready' |
1da177e4c Linux-2.6.12-rc2 |
307 |
|
19514fc66 arm, kbuild: make... |
308 |
$(INSTALL_TARGETS): |
1da177e4c Linux-2.6.12-rc2 |
309 |
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
e5b61deb3 ARM: 8332/1: add ... |
310 311 312 313 314 |
PHONY += vdso_install vdso_install: ifeq ($(CONFIG_VDSO),y) $(Q)$(MAKE) $(build)=arch/arm/vdso $@ endif |
1da177e4c Linux-2.6.12-rc2 |
315 316 317 318 319 320 |
# 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 |
321 |
|
1da177e4c Linux-2.6.12-rc2 |
322 323 324 325 326 |
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... |
327 |
echo ' uImage - U-Boot wrapped zImage' |
c01c5a506 ARM: 7712/1: Remo... |
328 |
echo ' bootpImage - Combined zImage and initial RAM disk' |
1da177e4c Linux-2.6.12-rc2 |
329 330 331 |
echo ' (supply initrd image via make variable INITRD=<path>)' echo ' install - Install uncompressed kernel' echo ' zinstall - Install compressed kernel' |
a65d29225 ARM: add 'uinstal... |
332 |
echo ' uinstall - Install U-Boot wrapped compressed kernel' |
caa27b66b kbuild: use INSTA... |
333 334 |
echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' echo ' (distribution) /sbin/$(INSTALLKERNEL) or' |
1da177e4c Linux-2.6.12-rc2 |
335 |
echo ' install to $$(INSTALL_PATH) and run lilo' |
e5b61deb3 ARM: 8332/1: add ... |
336 |
echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso' |
1da177e4c Linux-2.6.12-rc2 |
337 |
endef |