11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# arch/arm/Makefile 31da177e4SLinus Torvalds# 44f193362SPaul Smith# This file is included by the global makefile so that you can add your own 54f193362SPaul Smith# architecture-specific flags and dependencies. 64f193362SPaul Smith# 71da177e4SLinus Torvalds# This file is subject to the terms and conditions of the GNU General Public 81da177e4SLinus Torvalds# License. See the file "COPYING" in the main directory of this archive 91da177e4SLinus Torvalds# for more details. 101da177e4SLinus Torvalds# 111da177e4SLinus Torvalds# Copyright (C) 1995-2001 by Russell King 121da177e4SLinus Torvalds 130cda9bc1SNathan ChancellorLDFLAGS_vmlinux := --no-undefined -X --pic-veneer -z norelro 1426584853SCatalin Marinasifeq ($(CONFIG_CPU_ENDIAN_BE8),y) 1526584853SCatalin MarinasLDFLAGS_vmlinux += --be8 16336303aeSCao jinKBUILD_LDFLAGS_MODULE += --be8 1726584853SCatalin Marinasendif 1851b563fcSSam Ravnborg 191da177e4SLinus TorvaldsGZFLAGS :=-9 20a0f97e06SSam Ravnborg#KBUILD_CFLAGS +=-pipe 211da177e4SLinus Torvalds 22bd365591SMichal Marek# Never generate .eh_frame 23bd365591SMichal MarekKBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 24bd365591SMichal Marek 253d47ff25SBen Wolsieffer# Disable FDPIC ABI 263d47ff25SBen WolsiefferKBUILD_CFLAGS += $(call cc-option,-mno-fdpic) 273d47ff25SBen Wolsieffer 2832872c04SArnd Bergmann# This should work on most of the modern platforms 2932872c04SArnd BergmannKBUILD_DEFCONFIG := multi_v7_defconfig 301da177e4SLinus Torvalds 313dbda77eSUwe Kleine-Koenig# defines filename extension depending memory management type. 32f8c07de6SHyok S. Choiifeq ($(CONFIG_MMU),) 33f8c07de6SHyok S. ChoiMMUEXT := -nommu 34e91b36efSWill DeaconKBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) 35f8c07de6SHyok S. Choiendif 36f8c07de6SHyok S. Choi 371da177e4SLinus Torvaldsifeq ($(CONFIG_FRAME_POINTER),y) 386dc5fd93SNathan HuckleberryKBUILD_CFLAGS +=-fno-omit-frame-pointer 396dc5fd93SNathan Huckleberryifeq ($(CONFIG_CC_IS_GCC),y) 406dc5fd93SNathan HuckleberryKBUILD_CFLAGS += -mapcs -mno-sched-prolog 416dc5fd93SNathan Huckleberryendif 421da177e4SLinus Torvaldsendif 431da177e4SLinus Torvalds 441da177e4SLinus Torvaldsifeq ($(CONFIG_CPU_BIG_ENDIAN),y) 4506c5040cSSam RavnborgKBUILD_CPPFLAGS += -mbig-endian 46ff0c6eecSLuc Van OostenryckCHECKFLAGS += -D__ARMEB__ 47d503ac53SMasahiro YamadaKBUILD_LDFLAGS += -EB 481da177e4SLinus Torvaldselse 4906c5040cSSam RavnborgKBUILD_CPPFLAGS += -mlittle-endian 50ff0c6eecSLuc Van OostenryckCHECKFLAGS += -D__ARMEL__ 51d503ac53SMasahiro YamadaKBUILD_LDFLAGS += -EL 521da177e4SLinus Torvaldsendif 531da177e4SLinus Torvalds 54a077224fSArd Biesheuvel# 55a077224fSArd Biesheuvel# The Scalar Replacement of Aggregates (SRA) optimization pass in GCC 4.9 and 56a077224fSArd Biesheuvel# later may result in code being generated that handles signed short and signed 57a077224fSArd Biesheuvel# char struct members incorrectly. So disable it. 58a077224fSArd Biesheuvel# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65932) 59a077224fSArd Biesheuvel# 60a077224fSArd BiesheuvelKBUILD_CFLAGS += $(call cc-option,-fno-ipa-sra) 61a077224fSArd Biesheuvel 621da177e4SLinus Torvalds# This selects which instruction set is used. 631d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v7M) :=-march=armv7-m 641d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v7) :=-march=armv7-a 651d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v6) :=-march=armv6 6623688e99SCatalin Marinas# Only override the compiler option if ARMv6. The ARMv6K extensions are 6723688e99SCatalin Marinas# always available in ARMv7 6823688e99SCatalin Marinasifeq ($(CONFIG_CPU_32v6),y) 691d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v6K) :=-march=armv6k 7023688e99SCatalin Marinasendif 711d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v5) :=-march=armv5te 721d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v4T) :=-march=armv4t 731d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v4) :=-march=armv4 741d2e9b67SNick Desaulniersarch-$(CONFIG_CPU_32v3) :=-march=armv3m 751b21376aSDouglas Anderson 761da177e4SLinus Torvalds# Note that GCC does not numerically define an architecture version 771da177e4SLinus Torvalds# macro, but instead defines a whole series of macros which makes 781da177e4SLinus Torvalds# testing for a specific architecture or later rather impossible. 791d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v7M) :=-D__LINUX_ARM_ARCH__=7 801d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 811d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v6) :=-D__LINUX_ARM_ARCH__=6 821d2e9b67SNick Desaulniers# Only override the compiler option if ARMv6. The ARMv6K extensions are 83260e98edSLennert Buytenhek# always available in ARMv7 841da177e4SLinus Torvaldsifeq ($(CONFIG_CPU_32v6),y) 851d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v6K) :=-D__LINUX_ARM_ARCH__=6 861da177e4SLinus Torvaldsendif 871d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v5) :=-D__LINUX_ARM_ARCH__=5 881d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v4T) :=-D__LINUX_ARM_ARCH__=4 891d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v4) :=-D__LINUX_ARM_ARCH__=4 901d2e9b67SNick Desaulnierscpp-$(CONFIG_CPU_32v3) :=-D__LINUX_ARM_ARCH__=3 911da177e4SLinus Torvalds 921da177e4SLinus Torvalds# This selects how we optimise for the processor. 935aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM7TDMI) :=-mtune=arm7tdmi 945aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM720T) :=-mtune=arm7tdmi 955aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi 965aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi 975aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi 985aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM946E) :=-mtune=arm9e 995aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi 1005aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi 1015aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi 1025aa4860eSNick Desaulnierstune-$(CONFIG_CPU_ARM926T) :=-mtune=arm9tdmi 1035aa4860eSNick Desaulnierstune-$(CONFIG_CPU_FA526) :=-mtune=arm9tdmi 1045aa4860eSNick Desaulnierstune-$(CONFIG_CPU_SA110) :=-mtune=strongarm110 1055aa4860eSNick Desaulnierstune-$(CONFIG_CPU_SA1100) :=-mtune=strongarm1100 1065aa4860eSNick Desaulnierstune-$(CONFIG_CPU_XSCALE) :=-mtune=xscale 1075aa4860eSNick Desaulnierstune-$(CONFIG_CPU_XSC3) :=-mtune=xscale 1085aa4860eSNick Desaulnierstune-$(CONFIG_CPU_FEROCEON) :=-mtune=xscale 1095aa4860eSNick Desaulnierstune-$(CONFIG_CPU_V6) :=-mtune=arm1136j-s 1105aa4860eSNick Desaulnierstune-$(CONFIG_CPU_V6K) :=-mtune=arm1136j-s 1111da177e4SLinus Torvalds 112704bdda0SNicolas Pitreifeq ($(CONFIG_AEABI),y) 11322905a24SStefan AgnerCFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp 114704bdda0SNicolas Pitreelse 115c28a814fSCatalin MarinasCFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) 116704bdda0SNicolas Pitreendif 117704bdda0SNicolas Pitre 118adf8b37bSCatalin Marinasifeq ($(CONFIG_ARM_UNWIND),y) 119adf8b37bSCatalin MarinasCFLAGS_ABI +=-funwind-tables 120adf8b37bSCatalin Marinasendif 121adf8b37bSCatalin Marinas 122b0fe66cfSNathan Chancellorifeq ($(CONFIG_CC_IS_CLANG),y) 123b0fe66cfSNathan ChancellorCFLAGS_ABI += -meabi gnu 124b0fe66cfSNathan Chancellorendif 125b0fe66cfSNathan Chancellor 12650596b75SArd Biesheuvelifeq ($(CONFIG_CURRENT_POINTER_IN_TPIDRURO),y) 12726b12e08SNick DesaulniersKBUILD_CFLAGS += -mtp=cp15 12850596b75SArd Biesheuvelendif 12950596b75SArd Biesheuvel 13075fea300SNicolas Pitre# Accept old syntax despite ".syntax unified" 13175fea300SNicolas PitreAFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) 13275fea300SNicolas Pitre 133cb2b7b7dSSamuel Holland# The GCC option -ffreestanding is required in order to compile code containing 134cb2b7b7dSSamuel Holland# ARM/NEON intrinsics in a non C99-compliant environment (such as the kernel) 135cb2b7b7dSSamuel HollandCC_FLAGS_FPU := -ffreestanding 136cb2b7b7dSSamuel Holland# Enable <arm_neon.h> 137cb2b7b7dSSamuel HollandCC_FLAGS_FPU += -isystem $(shell $(CC) -print-file-name=include) 138cb2b7b7dSSamuel HollandCC_FLAGS_FPU += -march=armv7-a -mfloat-abi=softfp -mfpu=neon 139cb2b7b7dSSamuel Holland 14016c79651SCatalin Marinasifeq ($(CONFIG_THUMB2_KERNEL),y) 14159e2cf8dSNathan ChancellorCFLAGS_ISA :=-Wa,-mimplicit-it=always $(AFLAGS_NOWARN) 1422f62847cSNathan ChancellorAFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb 14359e2cf8dSNathan ChancellorCFLAGS_ISA +=-mthumb 14491802a8eSArnd Bergmannelse 14575fea300SNicolas PitreCFLAGS_ISA :=$(call cc-option,-marm,) $(AFLAGS_NOWARN) 14691802a8eSArnd BergmannAFLAGS_ISA :=$(CFLAGS_ISA) 14716c79651SCatalin Marinasendif 14816c79651SCatalin Marinas 149704bdda0SNicolas Pitre# Need -Uarm for gcc < 3.x 1501d2e9b67SNick DesaulniersKBUILD_CPPFLAGS +=$(cpp-y) 15191802a8eSArnd BergmannKBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm 1521d2e9b67SNick DesaulniersKBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) -Wa,$(arch-y) $(tune-y) -include asm/unified.h -msoft-float 1531da177e4SLinus Torvalds 1541f2f01b1SLuc Van OostenryckCHECKFLAGS += -D__arm__ 1551da177e4SLinus Torvalds 15610508b20SDaniel Thompson# Text offset. This list is sorted numerically by address in order to 15710508b20SDaniel Thompson# provide a means to avoid/resolve conflicts in multi-arch kernels. 15883dfeedbSRussell King# Note: the 32kB below this value is reserved for use by the kernel 15983dfeedbSRussell King# during boot, and this offset is critical to the functioning of 16083dfeedbSRussell King# kexec-tools. 1619d4f13e5SRussell Kingtextofs-y := 0x00008000 16286aeee4dSAndreas Färber# RTD1195 has Boot ROM at start of address space 16386aeee4dSAndreas Färbertextofs-$(CONFIG_ARCH_REALTEK) := 0x00108000 1641da177e4SLinus Torvalds# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory 165b4175b89SRussell Kingifeq ($(CONFIG_ARCH_SA1100),y) 1669d4f13e5SRussell Kingtextofs-$(CONFIG_SA1111) := 0x00208000 1671da177e4SLinus Torvaldsendif 16899497df5SDmitry Baryshkovtextofs-$(CONFIG_ARCH_QCOM_RESERVE_SMEM) := 0x00208000 169d850f3e5SMartin Blumenstingltextofs-$(CONFIG_ARCH_MESON) := 0x00208000 1701d22924eSAnders Bergtextofs-$(CONFIG_ARCH_AXXIA) := 0x00308000 171b4175b89SRussell King 172b4175b89SRussell King# Machine directory name. This list is sorted alphanumerically 173b4175b89SRussell King# by CONFIG_* macro name. 1746bb8536cSAndreas Färbermachine-$(CONFIG_ARCH_ACTIONS) += actions 175445d9b30STsahee Zidenbergmachine-$(CONFIG_ARCH_ALPINE) += alpine 176590b460cSLars Perssonmachine-$(CONFIG_ARCH_ARTPEC) += artpec 17787dfe496SJoel Stanleymachine-$(CONFIG_ARCH_ASPEED) += aspeed 178387798b3SRob Herringmachine-$(CONFIG_ARCH_AT91) += at91 1791d22924eSAnders Bergmachine-$(CONFIG_ARCH_AXXIA) += axxia 1808ac49e04SChristian Daudtmachine-$(CONFIG_ARCH_BCM) += bcm 1811c37fa10SSebastian Hesselbarthmachine-$(CONFIG_ARCH_BERLIN) += berlin 182387798b3SRob Herringmachine-$(CONFIG_ARCH_CLPS711X) += clps711x 183387798b3SRob Herringmachine-$(CONFIG_ARCH_DAVINCI) += davinci 18416083d45SBaruch Siachmachine-$(CONFIG_ARCH_DIGICOLOR) += digicolor 185387798b3SRob Herringmachine-$(CONFIG_ARCH_DOVE) += dove 1866eddacaeSRussell Kingmachine-$(CONFIG_ARCH_EXYNOS) += exynos 187c3c963e1SUwe Kleine-Königmachine-$(CONFIG_ARCH_FOOTBRIDGE) += footbridge 188387798b3SRob Herringmachine-$(CONFIG_ARCH_GEMINI) += gemini 189387798b3SRob Herringmachine-$(CONFIG_ARCH_HIGHBANK) += highbank 1907685b125SHaojian Zhuangmachine-$(CONFIG_ARCH_HISI) += hisi 19111d89440SNick Hawkinsmachine-$(CONFIG_ARCH_HPE) += hpe 192387798b3SRob Herringmachine-$(CONFIG_ARCH_IXP4XX) += ixp4xx 1936eddacaeSRussell Kingmachine-$(CONFIG_ARCH_KEYSTONE) += keystone 194e8d235d4SJoachim Eastwoodmachine-$(CONFIG_ARCH_LPC18XX) += lpc18xx 195387798b3SRob Herringmachine-$(CONFIG_ARCH_LPC32XX) += lpc32xx 1963b8f5030SCarlo Caionemachine-$(CONFIG_ARCH_MESON) += meson 197387798b3SRob Herringmachine-$(CONFIG_ARCH_MMP) += mmp 198387798b3SRob Herringmachine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 1996eddacaeSRussell Kingmachine-$(CONFIG_ARCH_MVEBU) += mvebu 200387798b3SRob Herringmachine-$(CONFIG_ARCH_MXC) += imx 201f682a218SMatthias Bruggermachine-$(CONFIG_ARCH_MEDIATEK) += mediatek 2029fb29c73SSugaya Taichimachine-$(CONFIG_ARCH_MILBEAUT) += milbeaut 203387798b3SRob Herringmachine-$(CONFIG_ARCH_MXS) += mxs 204312b62b6SDaniel Palmermachine-$(CONFIG_ARCH_MSTARV7) += mstar 205387798b3SRob Herringmachine-$(CONFIG_ARCH_NOMADIK) += nomadik 2067bffa14cSBrendan Higginsmachine-$(CONFIG_ARCH_NPCM) += npcm 207387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP1) += omap1 208387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 209387798b3SRob Herringmachine-$(CONFIG_ARCH_ORION5X) += orion5x 210387798b3SRob Herringmachine-$(CONFIG_ARCH_PXA) += pxa 2118fc1b0f8SKumar Galamachine-$(CONFIG_ARCH_QCOM) += qcom 21286aeee4dSAndreas Färbermachine-$(CONFIG_ARCH_REALTEK) += realtek 213d63dc051SHeiko Stuebnermachine-$(CONFIG_ARCH_ROCKCHIP) += rockchip 214387798b3SRob Herringmachine-$(CONFIG_ARCH_RPC) += rpc 21571b9114dSArnd Bergmannmachine-$(CONFIG_PLAT_SAMSUNG) += s3c 216387798b3SRob Herringmachine-$(CONFIG_ARCH_S5PV210) += s5pv210 217387798b3SRob Herringmachine-$(CONFIG_ARCH_SA1100) += sa1100 218d9be9cebSGeert Uytterhoevenmachine-$(CONFIG_ARCH_RENESAS) += shmobile 219910499e1SKrzysztof Kozlowskimachine-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga 2206eddacaeSRussell Kingmachine-$(CONFIG_ARCH_STI) += sti 2219b799b78SMaxime Coquelinmachine-$(CONFIG_ARCH_STM32) += stm32 2226eddacaeSRussell Kingmachine-$(CONFIG_ARCH_SUNXI) += sunxi 223387798b3SRob Herringmachine-$(CONFIG_ARCH_TEGRA) += tegra 224387798b3SRob Herringmachine-$(CONFIG_ARCH_U8500) += ux500 225387798b3SRob Herringmachine-$(CONFIG_ARCH_VT8500) += vt8500 226387798b3SRob Herringmachine-$(CONFIG_ARCH_ZYNQ) += zynq 227d7445676SArnd Bergmannmachine-$(CONFIG_PLAT_VERSATILE) += versatile 2286eddacaeSRussell Kingmachine-$(CONFIG_PLAT_SPEAR) += spear 229b4175b89SRussell King 2308c7d29a7SArnd Bergmann# legacy platforms provide their own mach/*.h headers globally, 2318c7d29a7SArnd Bergmann# these three are mutually exclusive 2328c7d29a7SArnd Bergmannmachdirs-$(CONFIG_ARCH_FOOTBRIDGE) += arch/arm/mach-footbridge 2338c7d29a7SArnd Bergmannmachdirs-$(CONFIG_ARCH_RPC) += arch/arm/mach-rpc 2348c7d29a7SArnd Bergmannmachdirs-$(CONFIG_ARCH_SA1100) += arch/arm/mach-sa1100 2358c7d29a7SArnd BergmannKBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%/include,$(machdirs-y)) 2361da177e4SLinus Torvalds 2379d4f13e5SRussell King# The byte offset of the kernel image in RAM from the start of RAM. 2389d4f13e5SRussell KingTEXT_OFFSET := $(textofs-y) 2391da177e4SLinus Torvalds 240f8c07de6SHyok S. Choiexport TEXT_OFFSET GZFLAGS MMUEXT 2411da177e4SLinus Torvalds 242c62d0f2aSNicolas Pitre# If we have a machine-specific directory, then include it in the build. 2438c7d29a7SArnd Bergmanncore-y += $(patsubst %,arch/arm/mach-%/,$(machine-y)) 2442a58e142SMasahiro Yamada# For cleaning 2452a58e142SMasahiro Yamadacore- += $(patsubst %,arch/arm/mach-%/,$(machine-)) 2468c7d29a7SArnd Bergmann 2478c7d29a7SArnd Bergmanncore-$(CONFIG_PLAT_ORION) += arch/arm/plat-orion/ 2482a58e142SMasahiro Yamada 24930c2f90bSNicolas Pitrelibs-y := arch/arm/lib/ $(libs-y) 2501da177e4SLinus Torvalds 2511da177e4SLinus Torvalds# Default target when executing plain make 252152e6744SMichal Marekboot := arch/arm/boot 2531da177e4SLinus Torvaldsifeq ($(CONFIG_XIP_KERNEL),y) 254152e6744SMichal MarekKBUILD_IMAGE := $(boot)/xipImage 2551da177e4SLinus Torvaldselse 256152e6744SMichal MarekKBUILD_IMAGE := $(boot)/zImage 2571da177e4SLinus Torvaldsendif 2581da177e4SLinus Torvalds 259189af465SArd Biesheuvelifeq ($(CONFIG_STACKPROTECTOR_PER_TASK),y) 260189af465SArd Biesheuvelprepare: stack_protector_prepare 261f05eb1d2SArd Biesheuvelifeq ($(CONFIG_CC_HAVE_STACKPROTECTOR_TLS),y) 262f05eb1d2SArd Biesheuvelstack_protector_prepare: prepare0 263f05eb1d2SArd Biesheuvel $(eval KBUILD_CFLAGS += \ 264f05eb1d2SArd Biesheuvel -mstack-protector-guard=tls \ 265f05eb1d2SArd Biesheuvel -mstack-protector-guard-offset=$(shell \ 266f05eb1d2SArd Biesheuvel awk '{if ($$2 == "TSK_STACK_CANARY") print $$3;}'\ 267*214c0eeaSMasahiro Yamada $(objtree)/include/generated/asm-offsets.h)) 268f05eb1d2SArd Biesheuvelelse 269189af465SArd Biesheuvelstack_protector_prepare: prepare0 27089604523SArd Biesheuvel $(eval SSP_PLUGIN_CFLAGS := \ 271189af465SArd Biesheuvel -fplugin-arg-arm_ssp_per_task_plugin-offset=$(shell \ 272dfbdcda2SArd Biesheuvel awk '{if ($$2 == "TSK_STACK_CANARY") print $$3;}'\ 273*214c0eeaSMasahiro Yamada $(objtree)/include/generated/asm-offsets.h)) 27489604523SArd Biesheuvel $(eval KBUILD_CFLAGS += $(SSP_PLUGIN_CFLAGS)) 27589604523SArd Biesheuvel $(eval GCC_PLUGINS_CFLAGS += $(SSP_PLUGIN_CFLAGS)) 276189af465SArd Biesheuvelendif 277f05eb1d2SArd Biesheuvelendif 278189af465SArd Biesheuvel 27937c8a5faSRob Herringall: $(notdir $(KBUILD_IMAGE)) 28051342d71SRussell King 2811da177e4SLinus Torvalds 28296a8fae0SRussell Kingarchheaders: 28396a8fae0SRussell King $(Q)$(MAKE) $(build)=arch/arm/tools uapi 28496a8fae0SRussell King 28566206536SSam Ravnborgarchprepare: 2864e2648dbSRussell King $(Q)$(MAKE) $(build)=arch/arm/tools kapi 2871da177e4SLinus Torvalds 2881da177e4SLinus Torvalds# Convert bzImage to zImage 2891da177e4SLinus TorvaldsbzImage: zImage 2901da177e4SLinus Torvalds 29119514fc6SRobert RichterBOOT_TARGETS = zImage Image xipImage bootpImage uImage 29219514fc6SRobert RichterINSTALL_TARGETS = zinstall uinstall install 29319514fc6SRobert Richter 29419514fc6SRobert RichterPHONY += bzImage $(BOOT_TARGETS) $(INSTALL_TARGETS) 29519514fc6SRobert Richter 2963939f334SMasahiro YamadabootpImage uImage: zImage 2973939f334SMasahiro YamadazImage: Image 2983939f334SMasahiro Yamada 29919514fc6SRobert Richter$(BOOT_TARGETS): vmlinux 30092481c7dSArnd Bergmann $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ 301c6bbfbb7SMasahiro Yamada @$(kecho) ' Kernel: $(boot)/$@ is ready' 3021da177e4SLinus Torvalds 303f774f5bbSMasahiro Yamada$(INSTALL_TARGETS): KBUILD_IMAGE = $(boot)/$(patsubst %install,%Image,$@) 30419514fc6SRobert Richter$(INSTALL_TARGETS): 305f774f5bbSMasahiro Yamada $(call cmd,install) 3061da177e4SLinus Torvalds 30756769ba4SMasahiro Yamadavdso-install-$(CONFIG_VDSO) += arch/arm/vdso/vdso.so.dbg 308e5b61debSNathan Lynch 3091da177e4SLinus Torvalds# My testing targets (bypasses dependencies) 31092481c7dSArnd Bergmannbp:; $(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage 3111da177e4SLinus Torvalds 312e9faf9b0SNicolas Saenz Julienneinclude $(srctree)/scripts/Makefile.defconf 313e9faf9b0SNicolas Saenz JuliennePHONY += multi_v7_lpae_defconfig 314e9faf9b0SNicolas Saenz Juliennemulti_v7_lpae_defconfig: 315e9faf9b0SNicolas Saenz Julienne $(call merge_into_defconfig,multi_v7_defconfig,lpae) 3161da177e4SLinus Torvalds 3171da177e4SLinus Torvaldsdefine archhelp 3181da177e4SLinus Torvalds echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' 3191da177e4SLinus Torvalds echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' 3201da177e4SLinus Torvalds echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)' 321a4f14bacSUwe Kleine-König echo ' uImage - U-Boot wrapped zImage' 3221da177e4SLinus Torvalds echo ' bootpImage - Combined zImage and initial RAM disk' 3231da177e4SLinus Torvalds echo ' (supply initrd image via make variable INITRD=<path>)' 3241da177e4SLinus Torvalds echo ' install - Install uncompressed kernel' 3251da177e4SLinus Torvalds echo ' zinstall - Install compressed kernel' 326a65d2922SRussell King echo ' uinstall - Install U-Boot wrapped compressed kernel' 327caa27b66SSam Ravnborg echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' 328caa27b66SSam Ravnborg echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 3291da177e4SLinus Torvalds echo ' install to $$(INSTALL_PATH) and run lilo' 330e9faf9b0SNicolas Saenz Julienne echo 331e9faf9b0SNicolas Saenz Julienne echo ' multi_v7_lpae_defconfig - multi_v7_defconfig with CONFIG_ARM_LPAE enabled' 3321da177e4SLinus Torvaldsendef 333