]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | # |
2 | # arch/arm/Makefile | |
3 | # | |
4f193362 PS |
4 | # This file is included by the global makefile so that you can add your own |
5 | # architecture-specific flags and dependencies. | |
6 | # | |
1da177e4 LT |
7 | # This file is subject to the terms and conditions of the GNU General Public |
8 | # License. See the file "COPYING" in the main directory of this archive | |
9 | # for more details. | |
10 | # | |
11 | # Copyright (C) 1995-2001 by Russell King | |
12 | ||
091bb549 | 13 | LDFLAGS_vmlinux := --no-undefined -X --pic-veneer |
26584853 CM |
14 | ifeq ($(CONFIG_CPU_ENDIAN_BE8),y) |
15 | LDFLAGS_vmlinux += --be8 | |
336303ae | 16 | KBUILD_LDFLAGS_MODULE += --be8 |
26584853 | 17 | endif |
51b563fc | 18 | |
7d485f64 | 19 | ifeq ($(CONFIG_ARM_MODULE_PLTS),y) |
10df0638 | 20 | KBUILD_LDS_MODULE += $(srctree)/arch/arm/kernel/module.lds |
7d485f64 AB |
21 | endif |
22 | ||
1da177e4 | 23 | GZFLAGS :=-9 |
a0f97e06 | 24 | #KBUILD_CFLAGS +=-pipe |
1da177e4 | 25 | |
bd365591 MM |
26 | # Never generate .eh_frame |
27 | KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) | |
28 | ||
32872c04 AB |
29 | # This should work on most of the modern platforms |
30 | KBUILD_DEFCONFIG := multi_v7_defconfig | |
1da177e4 | 31 | |
3dbda77e | 32 | # defines filename extension depending memory management type. |
f8c07de6 HC |
33 | ifeq ($(CONFIG_MMU),) |
34 | MMUEXT := -nommu | |
e91b36ef | 35 | KBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) |
f8c07de6 HC |
36 | endif |
37 | ||
1da177e4 | 38 | ifeq ($(CONFIG_FRAME_POINTER),y) |
6dc5fd93 NH |
39 | KBUILD_CFLAGS +=-fno-omit-frame-pointer |
40 | ifeq ($(CONFIG_CC_IS_GCC),y) | |
41 | KBUILD_CFLAGS += -mapcs -mno-sched-prolog | |
42 | endif | |
1da177e4 LT |
43 | endif |
44 | ||
45 | ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) | |
06c5040c | 46 | KBUILD_CPPFLAGS += -mbig-endian |
ff0c6eec | 47 | CHECKFLAGS += -D__ARMEB__ |
d503ac53 | 48 | KBUILD_LDFLAGS += -EB |
1da177e4 | 49 | else |
06c5040c | 50 | KBUILD_CPPFLAGS += -mlittle-endian |
ff0c6eec | 51 | CHECKFLAGS += -D__ARMEL__ |
d503ac53 | 52 | KBUILD_LDFLAGS += -EL |
1da177e4 LT |
53 | endif |
54 | ||
a077224f AB |
55 | # |
56 | # The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and | |
57 | # later may result in code being generated that handles signed short and signed | |
58 | # char struct members incorrectly. So disable it. | |
59 | # (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) | |
60 | # | |
61 | KBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) | |
62 | ||
1da177e4 LT |
63 | # This selects which instruction set is used. |
64 | # Note that GCC does not numerically define an architecture version | |
65 | # macro, but instead defines a whole series of macros which makes | |
66 | # testing for a specific architecture or later rather impossible. | |
3c0c01ab | 67 | arch-$(CONFIG_CPU_32v7M) =-D__LINUX_ARM_ARCH__=7 -march=armv7-m -Wa,-march=armv7-m |
1b21376a DA |
68 | arch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) |
69 | arch-$(CONFIG_CPU_32v6) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6) | |
23688e99 CM |
70 | # Only override the compiler option if ARMv6. The ARMv6K extensions are |
71 | # always available in ARMv7 | |
72 | ifeq ($(CONFIG_CPU_32v6),y) | |
1b21376a | 73 | arch-$(CONFIG_CPU_32v6K) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k) |
23688e99 | 74 | endif |
1b21376a DA |
75 | arch-$(CONFIG_CPU_32v5) =-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) |
76 | arch-$(CONFIG_CPU_32v4T) =-D__LINUX_ARM_ARCH__=4 -march=armv4t | |
77 | arch-$(CONFIG_CPU_32v4) =-D__LINUX_ARM_ARCH__=4 -march=armv4 | |
8403bcb7 | 78 | arch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3m |
1b21376a DA |
79 | |
80 | # Evaluate arch cc-option calls now | |
81 | arch-y := $(arch-y) | |
1da177e4 LT |
82 | |
83 | # This selects how we optimise for the processor. | |
1b21376a DA |
84 | tune-$(CONFIG_CPU_ARM7TDMI) =-mtune=arm7tdmi |
85 | tune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi | |
86 | tune-$(CONFIG_CPU_ARM740T) =-mtune=arm7tdmi | |
87 | tune-$(CONFIG_CPU_ARM9TDMI) =-mtune=arm9tdmi | |
88 | tune-$(CONFIG_CPU_ARM940T) =-mtune=arm9tdmi | |
89 | tune-$(CONFIG_CPU_ARM946E) =$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) | |
90 | tune-$(CONFIG_CPU_ARM920T) =-mtune=arm9tdmi | |
91 | tune-$(CONFIG_CPU_ARM922T) =-mtune=arm9tdmi | |
92 | tune-$(CONFIG_CPU_ARM925T) =-mtune=arm9tdmi | |
93 | tune-$(CONFIG_CPU_ARM926T) =-mtune=arm9tdmi | |
94 | tune-$(CONFIG_CPU_FA526) =-mtune=arm9tdmi | |
95 | tune-$(CONFIG_CPU_SA110) =-mtune=strongarm110 | |
96 | tune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100 | |
97 | tune-$(CONFIG_CPU_XSCALE) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale | |
98 | tune-$(CONFIG_CPU_XSC3) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale | |
99 | tune-$(CONFIG_CPU_FEROCEON) =$(call cc-option,-mtune=marvell-f,-mtune=xscale) | |
100 | tune-$(CONFIG_CPU_V6) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) | |
101 | tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) | |
102 | ||
103 | # Evaluate tune cc-option calls now | |
104 | tune-y := $(tune-y) | |
1da177e4 | 105 | |
704bdda0 | 106 | ifeq ($(CONFIG_AEABI),y) |
22905a24 | 107 | CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp |
704bdda0 | 108 | else |
c28a814f | 109 | CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) |
704bdda0 NP |
110 | endif |
111 | ||
adf8b37b CM |
112 | ifeq ($(CONFIG_ARM_UNWIND),y) |
113 | CFLAGS_ABI +=-funwind-tables | |
114 | endif | |
115 | ||
b0fe66cf NC |
116 | ifeq ($(CONFIG_CC_IS_CLANG),y) |
117 | CFLAGS_ABI += -meabi gnu | |
118 | endif | |
119 | ||
75fea300 NP |
120 | # Accept old syntax despite ".syntax unified" |
121 | AFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) | |
122 | ||
16c79651 | 123 | ifeq ($(CONFIG_THUMB2_KERNEL),y) |
b752bb40 | 124 | CFLAGS_ISA :=-mthumb -Wa,-mimplicit-it=always $(AFLAGS_NOWARN) |
91802a8e | 125 | AFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb |
6f685c5c DM |
126 | # Work around buggy relocation from gas if requested: |
127 | ifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) | |
336303ae | 128 | KBUILD_CFLAGS_MODULE +=-fno-optimize-sibling-calls |
6f685c5c | 129 | endif |
91802a8e | 130 | else |
75fea300 | 131 | CFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) |
91802a8e | 132 | AFLAGS_ISA :=$(CFLAGS_ISA) |
16c79651 CM |
133 | endif |
134 | ||
704bdda0 | 135 | # Need -Uarm for gcc < 3.x |
91802a8e AB |
136 | KBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm |
137 | KBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float | |
1da177e4 | 138 | |
1f2f01b1 | 139 | CHECKFLAGS += -D__arm__ |
1da177e4 LT |
140 | |
141 | #Default value | |
5290dc29 | 142 | head-y := arch/arm/kernel/head$(MMUEXT).o |
10508b20 DT |
143 | |
144 | # Text offset. This list is sorted numerically by address in order to | |
145 | # provide a means to avoid/resolve conflicts in multi-arch kernels. | |
9d4f13e5 | 146 | textofs-y := 0x00008000 |
c4761b69 VK |
147 | # We don't want the htc bootloader to corrupt kernel during resume |
148 | textofs-$(CONFIG_PM_H1940) := 0x00108000 | |
86aeee4d AF |
149 | # RTD1195 has Boot ROM at start of address space |
150 | textofs-$(CONFIG_ARCH_REALTEK) := 0x00108000 | |
1da177e4 | 151 | # SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory |
b4175b89 RK |
152 | ifeq ($(CONFIG_ARCH_SA1100),y) |
153 | textofs-$(CONFIG_SA1111) := 0x00208000 | |
1da177e4 | 154 | endif |
f125e2d4 | 155 | textofs-$(CONFIG_ARCH_IPQ40XX) := 0x00208000 |
9e775ad1 SB |
156 | textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 |
157 | textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 | |
d850f3e5 | 158 | textofs-$(CONFIG_ARCH_MESON) := 0x00208000 |
1d22924e | 159 | textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 |
b4175b89 RK |
160 | |
161 | # Machine directory name. This list is sorted alphanumerically | |
162 | # by CONFIG_* macro name. | |
6bb8536c | 163 | machine-$(CONFIG_ARCH_ACTIONS) += actions |
445d9b30 | 164 | machine-$(CONFIG_ARCH_ALPINE) += alpine |
590b460c | 165 | machine-$(CONFIG_ARCH_ARTPEC) += artpec |
87dfe496 | 166 | machine-$(CONFIG_ARCH_ASPEED) += aspeed |
387798b3 | 167 | machine-$(CONFIG_ARCH_AT91) += at91 |
1d22924e | 168 | machine-$(CONFIG_ARCH_AXXIA) += axxia |
8ac49e04 | 169 | machine-$(CONFIG_ARCH_BCM) += bcm |
1c37fa10 | 170 | machine-$(CONFIG_ARCH_BERLIN) += berlin |
387798b3 RH |
171 | machine-$(CONFIG_ARCH_CLPS711X) += clps711x |
172 | machine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx | |
173 | machine-$(CONFIG_ARCH_DAVINCI) += davinci | |
16083d45 | 174 | machine-$(CONFIG_ARCH_DIGICOLOR) += digicolor |
387798b3 RH |
175 | machine-$(CONFIG_ARCH_DOVE) += dove |
176 | machine-$(CONFIG_ARCH_EBSA110) += ebsa110 | |
6d85e2b0 | 177 | machine-$(CONFIG_ARCH_EFM32) += efm32 |
387798b3 | 178 | machine-$(CONFIG_ARCH_EP93XX) += ep93xx |
6eddacae | 179 | machine-$(CONFIG_ARCH_EXYNOS) += exynos |
c3c963e1 | 180 | machine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge |
387798b3 | 181 | machine-$(CONFIG_ARCH_GEMINI) += gemini |
387798b3 | 182 | machine-$(CONFIG_ARCH_HIGHBANK) += highbank |
7685b125 | 183 | machine-$(CONFIG_ARCH_HISI) += hisi |
387798b3 | 184 | machine-$(CONFIG_ARCH_INTEGRATOR) += integrator |
387798b3 | 185 | machine-$(CONFIG_ARCH_IOP32X) += iop32x |
387798b3 | 186 | machine-$(CONFIG_ARCH_IXP4XX) += ixp4xx |
6eddacae | 187 | machine-$(CONFIG_ARCH_KEYSTONE) += keystone |
e8d235d4 | 188 | machine-$(CONFIG_ARCH_LPC18XX) += lpc18xx |
387798b3 | 189 | machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx |
3b8f5030 | 190 | machine-$(CONFIG_ARCH_MESON) += meson |
387798b3 | 191 | machine-$(CONFIG_ARCH_MMP) += mmp |
1847119d | 192 | machine-$(CONFIG_ARCH_MPS2) += vexpress |
17723fd3 | 193 | machine-$(CONFIG_ARCH_MOXART) += moxart |
387798b3 | 194 | machine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 |
6eddacae | 195 | machine-$(CONFIG_ARCH_MVEBU) += mvebu |
387798b3 | 196 | machine-$(CONFIG_ARCH_MXC) += imx |
f682a218 | 197 | machine-$(CONFIG_ARCH_MEDIATEK) += mediatek |
9fb29c73 | 198 | machine-$(CONFIG_ARCH_MILBEAUT) += milbeaut |
387798b3 | 199 | machine-$(CONFIG_ARCH_MXS) += mxs |
387798b3 | 200 | machine-$(CONFIG_ARCH_NOMADIK) += nomadik |
7bffa14c | 201 | machine-$(CONFIG_ARCH_NPCM) += npcm |
9851ca57 | 202 | machine-$(CONFIG_ARCH_NSPIRE) += nspire |
e330ea5e | 203 | machine-$(CONFIG_ARCH_OXNAS) += oxnas |
387798b3 RH |
204 | machine-$(CONFIG_ARCH_OMAP1) += omap1 |
205 | machine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 | |
206 | machine-$(CONFIG_ARCH_ORION5X) += orion5x | |
207 | machine-$(CONFIG_ARCH_PICOXCELL) += picoxcell | |
387798b3 | 208 | machine-$(CONFIG_ARCH_PXA) += pxa |
8fc1b0f8 | 209 | machine-$(CONFIG_ARCH_QCOM) += qcom |
78e3dbc1 | 210 | machine-$(CONFIG_ARCH_RDA) += rda |
86aeee4d | 211 | machine-$(CONFIG_ARCH_REALTEK) += realtek |
387798b3 | 212 | machine-$(CONFIG_ARCH_REALVIEW) += realview |
d63dc051 | 213 | machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip |
387798b3 | 214 | machine-$(CONFIG_ARCH_RPC) += rpc |
acf2d41d | 215 | machine-$(CONFIG_ARCH_S3C24XX) += s3c24xx |
387798b3 | 216 | machine-$(CONFIG_ARCH_S3C64XX) += s3c64xx |
387798b3 | 217 | machine-$(CONFIG_ARCH_S5PV210) += s5pv210 |
387798b3 | 218 | machine-$(CONFIG_ARCH_SA1100) += sa1100 |
d9be9ceb | 219 | machine-$(CONFIG_ARCH_RENESAS) += shmobile |
6eddacae RK |
220 | machine-$(CONFIG_ARCH_SIRF) += prima2 |
221 | machine-$(CONFIG_ARCH_SOCFPGA) += socfpga | |
222 | machine-$(CONFIG_ARCH_STI) += sti | |
9b799b78 | 223 | machine-$(CONFIG_ARCH_STM32) += stm32 |
6eddacae | 224 | machine-$(CONFIG_ARCH_SUNXI) += sunxi |
d6de5b02 | 225 | machine-$(CONFIG_ARCH_TANGO) += tango |
387798b3 RH |
226 | machine-$(CONFIG_ARCH_TEGRA) += tegra |
227 | machine-$(CONFIG_ARCH_U300) += u300 | |
228 | machine-$(CONFIG_ARCH_U8500) += ux500 | |
229 | machine-$(CONFIG_ARCH_VERSATILE) += versatile | |
230 | machine-$(CONFIG_ARCH_VEXPRESS) += vexpress | |
231 | machine-$(CONFIG_ARCH_VT8500) += vt8500 | |
acede515 | 232 | machine-$(CONFIG_ARCH_ZX) += zx |
6eddacae | 233 | machine-$(CONFIG_ARCH_ZYNQ) += zynq |
a7ed099f | 234 | machine-$(CONFIG_PLAT_SPEAR) += spear |
b4175b89 RK |
235 | |
236 | # Platform directory name. This list is sorted alphanumerically | |
237 | # by CONFIG_* macro name. | |
e245f969 | 238 | plat-$(CONFIG_ARCH_EXYNOS) += samsung |
387798b3 RH |
239 | plat-$(CONFIG_ARCH_OMAP) += omap |
240 | plat-$(CONFIG_ARCH_S3C64XX) += samsung | |
aa42587a | 241 | plat-$(CONFIG_ARCH_S5PV210) += samsung |
387798b3 RH |
242 | plat-$(CONFIG_PLAT_ORION) += orion |
243 | plat-$(CONFIG_PLAT_PXA) += pxa | |
09ec1d7e | 244 | plat-$(CONFIG_PLAT_S3C24XX) += samsung |
387798b3 | 245 | plat-$(CONFIG_PLAT_VERSATILE) += versatile |
1da177e4 LT |
246 | |
247 | ifeq ($(CONFIG_ARCH_EBSA110),y) | |
248 | # This is what happens if you forget the IOCS16 line. | |
249 | # PCMCIA cards stop working. | |
250 | CFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL | |
251 | export CFLAGS_3c589_cs.o | |
252 | endif | |
253 | ||
9d4f13e5 RK |
254 | # The byte offset of the kernel image in RAM from the start of RAM. |
255 | TEXT_OFFSET := $(textofs-y) | |
1da177e4 | 256 | |
f44f82e8 | 257 | # The first directory contains additional information for the boot setup code |
1da177e4 | 258 | ifneq ($(machine-y),) |
f44f82e8 | 259 | MACHINE := arch/arm/mach-$(word 1,$(machine-y))/ |
1da177e4 LT |
260 | else |
261 | MACHINE := | |
262 | endif | |
387798b3 RH |
263 | ifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) |
264 | MACHINE := | |
265 | endif | |
a21765a7 | 266 | |
f44f82e8 | 267 | machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) |
aa42587a | 268 | platdirs := $(patsubst %,arch/arm/plat-%/,$(sort $(plat-y))) |
f44f82e8 | 269 | |
387798b3 | 270 | ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) |
de8a06f6 | 271 | ifneq ($(CONFIG_ARM_SINGLE_ARMV7M),y) |
f44f82e8 RK |
272 | KBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) |
273 | endif | |
387798b3 | 274 | endif |
f44f82e8 | 275 | |
f8c07de6 | 276 | export TEXT_OFFSET GZFLAGS MMUEXT |
1da177e4 | 277 | |
1da177e4 | 278 | core-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ |
3c86889b MY |
279 | # Put arch/arm/fastfpe/ to use this. |
280 | core-$(CONFIG_FPE_FASTFPE) += $(patsubst $(srctree)/%,%,$(wildcard $(srctree)/arch/arm/fastfpe/)) | |
1da177e4 | 281 | core-$(CONFIG_VFP) += arch/arm/vfp/ |
4c071ee5 | 282 | core-$(CONFIG_XEN) += arch/arm/xen/ |
e5b61deb | 283 | core-$(CONFIG_VDSO) += arch/arm/vdso/ |
1da177e4 | 284 | |
c62d0f2a NP |
285 | # If we have a machine-specific directory, then include it in the build. |
286 | core-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ | |
fca08f32 | 287 | core-y += arch/arm/probes/ |
ddecdfce | 288 | core-y += arch/arm/net/ |
f0be44f4 | 289 | core-y += arch/arm/crypto/ |
c62d0f2a NP |
290 | core-y += $(machdirs) $(platdirs) |
291 | ||
2a58e142 MY |
292 | # For cleaning |
293 | core- += $(patsubst %,arch/arm/mach-%/, $(machine-)) | |
294 | core- += $(patsubst %,arch/arm/plat-%/, $(plat-)) | |
295 | ||
1da177e4 | 296 | drivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ |
1da177e4 | 297 | |
30c2f90b | 298 | libs-y := arch/arm/lib/ $(libs-y) |
1da177e4 LT |
299 | |
300 | # Default target when executing plain make | |
152e6744 | 301 | boot := arch/arm/boot |
1da177e4 | 302 | ifeq ($(CONFIG_XIP_KERNEL),y) |
152e6744 | 303 | KBUILD_IMAGE := $(boot)/xipImage |
1da177e4 | 304 | else |
152e6744 | 305 | KBUILD_IMAGE := $(boot)/zImage |
1da177e4 LT |
306 | endif |
307 | ||
189af465 AB |
308 | ifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y) |
309 | prepare: stack_protector_prepare | |
310 | stack_protector_prepare: prepare0 | |
89604523 | 311 | $(eval SSP_PLUGIN_CFLAGS := \ |
189af465 AB |
312 | -fplugin-arg-arm_ssp_per_task_plugin-tso=$(shell \ |
313 | awk '{if ($$2 == "THREAD_SZ_ORDER") print $$3;}'\ | |
314 | include/generated/asm-offsets.h) \ | |
315 | -fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \ | |
316 | awk '{if ($$2 == "TI_STACK_CANARY") print $$3;}'\ | |
317 | include/generated/asm-offsets.h)) | |
89604523 AB |
318 | $(eval KBUILD_CFLAGS += $(SSP_PLUGIN_CFLAGS)) |
319 | $(eval GCC_PLUGINS_CFLAGS += $(SSP_PLUGIN_CFLAGS)) | |
189af465 AB |
320 | endif |
321 | ||
37c8a5fa | 322 | all: $(notdir $(KBUILD_IMAGE)) |
51342d71 | 323 | |
1da177e4 | 324 | |
96a8fae0 RK |
325 | archheaders: |
326 | $(Q)$(MAKE) $(build)=arch/arm/tools uapi | |
327 | ||
66206536 | 328 | archprepare: |
4e2648db | 329 | $(Q)$(MAKE) $(build)=arch/arm/tools kapi |
1da177e4 LT |
330 | |
331 | # Convert bzImage to zImage | |
332 | bzImage: zImage | |
333 | ||
19514fc6 RR |
334 | BOOT_TARGETS = zImage Image xipImage bootpImage uImage |
335 | INSTALL_TARGETS = zinstall uinstall install | |
336 | ||
337 | PHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) | |
338 | ||
3939f334 MY |
339 | bootpImage uImage: zImage |
340 | zImage: Image | |
341 | ||
19514fc6 | 342 | $(BOOT_TARGETS): vmlinux |
1da177e4 | 343 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ |
c6bbfbb7 | 344 | @$(kecho) ' Kernel: $(boot)/$@ is ready' |
1da177e4 | 345 | |
19514fc6 | 346 | $(INSTALL_TARGETS): |
1da177e4 LT |
347 | $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ |
348 | ||
e5b61deb NL |
349 | PHONY += vdso_install |
350 | vdso_install: | |
351 | ifeq ($(CONFIG_VDSO),y) | |
352 | $(Q)$(MAKE) $(build)=arch/arm/vdso $@ | |
353 | endif | |
354 | ||
1da177e4 LT |
355 | # We use MRPROPER_FILES and CLEAN_FILES now |
356 | archclean: | |
357 | $(Q)$(MAKE) $(clean)=$(boot) | |
358 | ||
359 | # My testing targets (bypasses dependencies) | |
360 | bp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage | |
1da177e4 | 361 | |
1da177e4 LT |
362 | |
363 | define archhelp | |
364 | echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' | |
365 | echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' | |
366 | echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)' | |
a4f14bac | 367 | echo ' uImage - U-Boot wrapped zImage' |
c01c5a50 | 368 | echo ' bootpImage - Combined zImage and initial RAM disk' |
1da177e4 LT |
369 | echo ' (supply initrd image via make variable INITRD=<path>)' |
370 | echo ' install - Install uncompressed kernel' | |
371 | echo ' zinstall - Install compressed kernel' | |
a65d2922 | 372 | echo ' uinstall - Install U-Boot wrapped compressed kernel' |
caa27b66 SR |
373 | echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' |
374 | echo ' (distribution) /sbin/$(INSTALLKERNEL) or' | |
1da177e4 | 375 | echo ' install to $$(INSTALL_PATH) and run lilo' |
e5b61deb | 376 | echo ' vdso_install - Install unstripped vdso.so to $$(INSTALL_MOD_PATH)/vdso' |
1da177e4 | 377 | endef |