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 13bcccc50cSVincent Sanders# Ensure linker flags are correct 14bcccc50cSVincent SandersLDFLAGS := 15bcccc50cSVincent Sanders 161da177e4SLinus TorvaldsLDFLAGS_vmlinux :=-p --no-undefined -X 1726584853SCatalin Marinasifeq ($(CONFIG_CPU_ENDIAN_BE8),y) 1826584853SCatalin MarinasLDFLAGS_vmlinux += --be8 1926584853SCatalin Marinasendif 2051b563fcSSam Ravnborg 21dc810efbSPawel MollOBJCOPYFLAGS :=-O binary -R .comment -S 221da177e4SLinus TorvaldsGZFLAGS :=-9 23a0f97e06SSam Ravnborg#KBUILD_CFLAGS +=-pipe 241da177e4SLinus Torvalds 25bd365591SMichal Marek# Never generate .eh_frame 26bd365591SMichal MarekKBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 27bd365591SMichal Marek 281da177e4SLinus Torvalds# Do not use arch/arm/defconfig - it's always outdated. 291da177e4SLinus Torvalds# Select a platform tht is kept up-to-date 301da177e4SLinus TorvaldsKBUILD_DEFCONFIG := versatile_defconfig 311da177e4SLinus Torvalds 323dbda77eSUwe Kleine-Koenig# defines filename extension depending memory management type. 33f8c07de6SHyok S. Choiifeq ($(CONFIG_MMU),) 34f8c07de6SHyok S. ChoiMMUEXT := -nommu 35e91b36efSWill DeaconKBUILD_CFLAGS += $(call cc-option,-mno-unaligned-access) 36f8c07de6SHyok S. Choiendif 37f8c07de6SHyok S. Choi 381da177e4SLinus Torvaldsifeq ($(CONFIG_FRAME_POINTER),y) 39a0f97e06SSam RavnborgKBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog 401da177e4SLinus Torvaldsendif 411da177e4SLinus Torvalds 42c743f380SNicolas Pitreifeq ($(CONFIG_CC_STACKPROTECTOR),y) 43c743f380SNicolas PitreKBUILD_CFLAGS +=-fstack-protector 44c743f380SNicolas Pitreendif 45c743f380SNicolas Pitre 461da177e4SLinus Torvaldsifeq ($(CONFIG_CPU_BIG_ENDIAN),y) 4706c5040cSSam RavnborgKBUILD_CPPFLAGS += -mbig-endian 481da177e4SLinus TorvaldsAS += -EB 491da177e4SLinus TorvaldsLD += -EB 501da177e4SLinus Torvaldselse 5106c5040cSSam RavnborgKBUILD_CPPFLAGS += -mlittle-endian 521da177e4SLinus TorvaldsAS += -EL 531da177e4SLinus TorvaldsLD += -EL 541da177e4SLinus Torvaldsendif 551da177e4SLinus Torvalds 561da177e4SLinus Torvaldscomma = , 571da177e4SLinus Torvalds 581da177e4SLinus Torvalds# This selects which instruction set is used. 591da177e4SLinus Torvalds# Note that GCC does not numerically define an architecture version 601da177e4SLinus Torvalds# macro, but instead defines a whole series of macros which makes 611da177e4SLinus Torvalds# testing for a specific architecture or later rather impossible. 62*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v7) =-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) 63*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v6) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6) 6423688e99SCatalin Marinas# Only override the compiler option if ARMv6. The ARMv6K extensions are 6523688e99SCatalin Marinas# always available in ARMv7 6623688e99SCatalin Marinasifeq ($(CONFIG_CPU_32v6),y) 67*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v6K) =-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k) 6823688e99SCatalin Marinasendif 69*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v5) =-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) 70*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v4T) =-D__LINUX_ARM_ARCH__=4 -march=armv4t 71*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v4) =-D__LINUX_ARM_ARCH__=4 -march=armv4 72*1b21376aSDouglas Andersonarch-$(CONFIG_CPU_32v3) =-D__LINUX_ARM_ARCH__=3 -march=armv3 73*1b21376aSDouglas Anderson 74*1b21376aSDouglas Anderson# Evaluate arch cc-option calls now 75*1b21376aSDouglas Andersonarch-y := $(arch-y) 761da177e4SLinus Torvalds 771da177e4SLinus Torvalds# This selects how we optimise for the processor. 78*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM7TDMI) =-mtune=arm7tdmi 79*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM720T) =-mtune=arm7tdmi 80*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM740T) =-mtune=arm7tdmi 81*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM9TDMI) =-mtune=arm9tdmi 82*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM940T) =-mtune=arm9tdmi 83*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM946E) =$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) 84*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM920T) =-mtune=arm9tdmi 85*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM922T) =-mtune=arm9tdmi 86*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM925T) =-mtune=arm9tdmi 87*1b21376aSDouglas Andersontune-$(CONFIG_CPU_ARM926T) =-mtune=arm9tdmi 88*1b21376aSDouglas Andersontune-$(CONFIG_CPU_FA526) =-mtune=arm9tdmi 89*1b21376aSDouglas Andersontune-$(CONFIG_CPU_SA110) =-mtune=strongarm110 90*1b21376aSDouglas Andersontune-$(CONFIG_CPU_SA1100) =-mtune=strongarm1100 91*1b21376aSDouglas Andersontune-$(CONFIG_CPU_XSCALE) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale 92*1b21376aSDouglas Andersontune-$(CONFIG_CPU_XSC3) =$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale 93*1b21376aSDouglas Andersontune-$(CONFIG_CPU_FEROCEON) =$(call cc-option,-mtune=marvell-f,-mtune=xscale) 94*1b21376aSDouglas Andersontune-$(CONFIG_CPU_V6) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) 95*1b21376aSDouglas Andersontune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) 96*1b21376aSDouglas Anderson 97*1b21376aSDouglas Anderson# Evaluate tune cc-option calls now 98*1b21376aSDouglas Andersontune-y := $(tune-y) 991da177e4SLinus Torvalds 100704bdda0SNicolas Pitreifeq ($(CONFIG_AEABI),y) 101c7fd8442SRichard PurdieCFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork 102704bdda0SNicolas Pitreelse 103c28a814fSCatalin MarinasCFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) 104704bdda0SNicolas Pitreendif 105704bdda0SNicolas Pitre 106adf8b37bSCatalin Marinasifeq ($(CONFIG_ARM_UNWIND),y) 107adf8b37bSCatalin MarinasCFLAGS_ABI +=-funwind-tables 108adf8b37bSCatalin Marinasendif 109adf8b37bSCatalin Marinas 11016c79651SCatalin Marinasifeq ($(CONFIG_THUMB2_KERNEL),y) 111c540b9ffSCatalin MarinasAFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) 11216c79651SCatalin MarinasAFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) 11391802a8eSArnd BergmannCFLAGS_ISA :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) 11491802a8eSArnd BergmannAFLAGS_ISA :=$(CFLAGS_ISA) -Wa$(comma)-mthumb 1156f685c5cSDave Martin# Work around buggy relocation from gas if requested: 1166f685c5cSDave Martinifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) 1176f685c5cSDave MartinCFLAGS_MODULE +=-fno-optimize-sibling-calls 1186f685c5cSDave Martinendif 11991802a8eSArnd Bergmannelse 12091802a8eSArnd BergmannCFLAGS_ISA :=$(call cc-option,-marm,) 12191802a8eSArnd BergmannAFLAGS_ISA :=$(CFLAGS_ISA) 12216c79651SCatalin Marinasendif 12316c79651SCatalin Marinas 124704bdda0SNicolas Pitre# Need -Uarm for gcc < 3.x 12591802a8eSArnd BergmannKBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_ISA) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm 12691802a8eSArnd BergmannKBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_ISA) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float 1271da177e4SLinus Torvalds 1281da177e4SLinus TorvaldsCHECKFLAGS += -D__arm__ 1291da177e4SLinus Torvalds 1301da177e4SLinus Torvalds#Default value 1315290dc29SThomas Gleixnerhead-y := arch/arm/kernel/head$(MMUEXT).o 1329d4f13e5SRussell Kingtextofs-y := 0x00008000 133b4175b89SRussell Kingtextofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000 134c4761b69SVasily Khoruzhick# We don't want the htc bootloader to corrupt kernel during resume 135c4761b69SVasily Khoruzhicktextofs-$(CONFIG_PM_H1940) := 0x00108000 1361da177e4SLinus Torvalds# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory 137b4175b89SRussell Kingifeq ($(CONFIG_ARCH_SA1100),y) 1389d4f13e5SRussell Kingtextofs-$(CONFIG_SA1111) := 0x00208000 1391da177e4SLinus Torvaldsendif 1409e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM7X30) := 0x00208000 1419e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 1429e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 143b4175b89SRussell King 144b4175b89SRussell King# Machine directory name. This list is sorted alphanumerically 145b4175b89SRussell King# by CONFIG_* macro name. 146387798b3SRob Herringmachine-$(CONFIG_ARCH_AT91) += at91 1478ac49e04SChristian Daudtmachine-$(CONFIG_ARCH_BCM) += bcm 1485ae8d15fSOlof Johanssonmachine-$(CONFIG_ARCH_BCM2835) += bcm2835 149387798b3SRob Herringmachine-$(CONFIG_ARCH_CLPS711X) += clps711x 150387798b3SRob Herringmachine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx 151387798b3SRob Herringmachine-$(CONFIG_ARCH_DAVINCI) += davinci 152387798b3SRob Herringmachine-$(CONFIG_ARCH_DOVE) += dove 153387798b3SRob Herringmachine-$(CONFIG_ARCH_EBSA110) += ebsa110 154387798b3SRob Herringmachine-$(CONFIG_ARCH_EP93XX) += ep93xx 155387798b3SRob Herringmachine-$(CONFIG_ARCH_GEMINI) += gemini 156387798b3SRob Herringmachine-$(CONFIG_ARCH_HIGHBANK) += highbank 157387798b3SRob Herringmachine-$(CONFIG_ARCH_INTEGRATOR) += integrator 158387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP13XX) += iop13xx 159387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP32X) += iop32x 160387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP33X) += iop33x 161387798b3SRob Herringmachine-$(CONFIG_ARCH_IXP4XX) += ixp4xx 162387798b3SRob Herringmachine-$(CONFIG_ARCH_KIRKWOOD) += kirkwood 163387798b3SRob Herringmachine-$(CONFIG_ARCH_KS8695) += ks8695 164387798b3SRob Herringmachine-$(CONFIG_ARCH_LPC32XX) += lpc32xx 165387798b3SRob Herringmachine-$(CONFIG_ARCH_MMP) += mmp 166387798b3SRob Herringmachine-$(CONFIG_ARCH_MSM) += msm 167387798b3SRob Herringmachine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 168387798b3SRob Herringmachine-$(CONFIG_ARCH_MXC) += imx 169387798b3SRob Herringmachine-$(CONFIG_ARCH_MXS) += mxs 170387798b3SRob Herringmachine-$(CONFIG_ARCH_MVEBU) += mvebu 171387798b3SRob Herringmachine-$(CONFIG_ARCH_NETX) += netx 172387798b3SRob Herringmachine-$(CONFIG_ARCH_NOMADIK) += nomadik 173387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP1) += omap1 174387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 175387798b3SRob Herringmachine-$(CONFIG_ARCH_ORION5X) += orion5x 176387798b3SRob Herringmachine-$(CONFIG_ARCH_PICOXCELL) += picoxcell 177387798b3SRob Herringmachine-$(CONFIG_ARCH_PRIMA2) += prima2 178387798b3SRob Herringmachine-$(CONFIG_ARCH_PXA) += pxa 179387798b3SRob Herringmachine-$(CONFIG_ARCH_REALVIEW) += realview 180387798b3SRob Herringmachine-$(CONFIG_ARCH_RPC) += rpc 181acf2d41dSKukjin Kimmachine-$(CONFIG_ARCH_S3C24XX) += s3c24xx 182387798b3SRob Herringmachine-$(CONFIG_ARCH_S3C64XX) += s3c64xx 183387798b3SRob Herringmachine-$(CONFIG_ARCH_S5P64X0) += s5p64x0 184387798b3SRob Herringmachine-$(CONFIG_ARCH_S5PC100) += s5pc100 185387798b3SRob Herringmachine-$(CONFIG_ARCH_S5PV210) += s5pv210 186387798b3SRob Herringmachine-$(CONFIG_ARCH_EXYNOS) += exynos 187387798b3SRob Herringmachine-$(CONFIG_ARCH_SA1100) += sa1100 188387798b3SRob Herringmachine-$(CONFIG_ARCH_SHARK) += shark 189387798b3SRob Herringmachine-$(CONFIG_ARCH_SHMOBILE) += shmobile 190387798b3SRob Herringmachine-$(CONFIG_ARCH_TEGRA) += tegra 191387798b3SRob Herringmachine-$(CONFIG_ARCH_U300) += u300 192387798b3SRob Herringmachine-$(CONFIG_ARCH_U8500) += ux500 193387798b3SRob Herringmachine-$(CONFIG_ARCH_VERSATILE) += versatile 194387798b3SRob Herringmachine-$(CONFIG_ARCH_VEXPRESS) += vexpress 195387798b3SRob Herringmachine-$(CONFIG_ARCH_VT8500) += vt8500 196387798b3SRob Herringmachine-$(CONFIG_ARCH_W90X900) += w90x900 197387798b3SRob Herringmachine-$(CONFIG_FOOTBRIDGE) += footbridge 198387798b3SRob Herringmachine-$(CONFIG_ARCH_SOCFPGA) += socfpga 199a7ed099fSArnd Bergmannmachine-$(CONFIG_PLAT_SPEAR) += spear 2002a0ba738SMarc Zyngiermachine-$(CONFIG_ARCH_VIRT) += virt 201387798b3SRob Herringmachine-$(CONFIG_ARCH_ZYNQ) += zynq 2023b52634fSMaxime Ripardmachine-$(CONFIG_ARCH_SUNXI) += sunxi 203b4175b89SRussell King 204b4175b89SRussell King# Platform directory name. This list is sorted alphanumerically 205b4175b89SRussell King# by CONFIG_* macro name. 206387798b3SRob Herringplat-$(CONFIG_ARCH_OMAP) += omap 207387798b3SRob Herringplat-$(CONFIG_ARCH_S3C64XX) += samsung 208387798b3SRob Herringplat-$(CONFIG_PLAT_IOP) += iop 209387798b3SRob Herringplat-$(CONFIG_PLAT_ORION) += orion 210387798b3SRob Herringplat-$(CONFIG_PLAT_PXA) += pxa 21109ec1d7eSKukjin Kimplat-$(CONFIG_PLAT_S3C24XX) += samsung 212387798b3SRob Herringplat-$(CONFIG_PLAT_S5P) += samsung 213387798b3SRob Herringplat-$(CONFIG_PLAT_VERSATILE) += versatile 2141da177e4SLinus Torvalds 2151da177e4SLinus Torvaldsifeq ($(CONFIG_ARCH_EBSA110),y) 2161da177e4SLinus Torvalds# This is what happens if you forget the IOCS16 line. 2171da177e4SLinus Torvalds# PCMCIA cards stop working. 2181da177e4SLinus TorvaldsCFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL 2191da177e4SLinus Torvaldsexport CFLAGS_3c589_cs.o 2201da177e4SLinus Torvaldsendif 2211da177e4SLinus Torvalds 2229d4f13e5SRussell King# The byte offset of the kernel image in RAM from the start of RAM. 2239d4f13e5SRussell KingTEXT_OFFSET := $(textofs-y) 2241da177e4SLinus Torvalds 225f44f82e8SRussell King# The first directory contains additional information for the boot setup code 2261da177e4SLinus Torvaldsifneq ($(machine-y),) 227f44f82e8SRussell KingMACHINE := arch/arm/mach-$(word 1,$(machine-y))/ 2281da177e4SLinus Torvaldselse 2291da177e4SLinus TorvaldsMACHINE := 2301da177e4SLinus Torvaldsendif 231387798b3SRob Herringifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) 232387798b3SRob HerringMACHINE := 233387798b3SRob Herringendif 2341da177e4SLinus Torvalds 235f44f82e8SRussell Kingmachdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) 236f44f82e8SRussell Kingplatdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) 237f44f82e8SRussell King 238387798b3SRob Herringifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) 239f44f82e8SRussell Kingifeq ($(KBUILD_SRC),) 240f44f82e8SRussell KingKBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) 241f44f82e8SRussell Kingelse 242f44f82e8SRussell KingKBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) 243f44f82e8SRussell Kingendif 244387798b3SRob Herringendif 245f44f82e8SRussell King 246f8c07de6SHyok S. Choiexport TEXT_OFFSET GZFLAGS MMUEXT 2471da177e4SLinus Torvalds 2481da177e4SLinus Torvalds# Do we have FASTFPE? 2491da177e4SLinus TorvaldsFASTFPE :=arch/arm/fastfpe 2501da177e4SLinus Torvaldsifeq ($(FASTFPE),$(wildcard $(FASTFPE))) 2511da177e4SLinus TorvaldsFASTFPE_OBJ :=$(FASTFPE)/ 2521da177e4SLinus Torvaldsendif 2531da177e4SLinus Torvalds 2541da177e4SLinus Torvaldscore-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ 2551da177e4SLinus Torvaldscore-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) 2561da177e4SLinus Torvaldscore-$(CONFIG_VFP) += arch/arm/vfp/ 2574c071ee5SStefano Stabellinicore-$(CONFIG_XEN) += arch/arm/xen/ 258749cf76cSChristoffer Dallcore-$(CONFIG_KVM_ARM_HOST) += arch/arm/kvm/ 2591da177e4SLinus Torvalds 260c62d0f2aSNicolas Pitre# If we have a machine-specific directory, then include it in the build. 261c62d0f2aSNicolas Pitrecore-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ 262ddecdfceSMircea Gherzancore-y += arch/arm/net/ 263f0be44f4SDavid McCulloughcore-y += arch/arm/crypto/ 264c62d0f2aSNicolas Pitrecore-y += $(machdirs) $(platdirs) 265c62d0f2aSNicolas Pitre 2661da177e4SLinus Torvaldsdrivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ 2671da177e4SLinus Torvalds 26830c2f90bSNicolas Pitrelibs-y := arch/arm/lib/ $(libs-y) 2691da177e4SLinus Torvalds 2701da177e4SLinus Torvalds# Default target when executing plain make 2711da177e4SLinus Torvaldsifeq ($(CONFIG_XIP_KERNEL),y) 27251342d71SRussell KingKBUILD_IMAGE := xipImage 2731da177e4SLinus Torvaldselse 27451342d71SRussell KingKBUILD_IMAGE := zImage 2751da177e4SLinus Torvaldsendif 2761da177e4SLinus Torvalds 277e50a622dSAndrew Lunn# Build the DT binary blobs if we have OF configured 278e50a622dSAndrew Lunnifeq ($(CONFIG_USE_OF),y) 279e50a622dSAndrew LunnKBUILD_DTBS := dtbs 280e50a622dSAndrew Lunnendif 281e50a622dSAndrew Lunn 282e50a622dSAndrew Lunnall: $(KBUILD_IMAGE) $(KBUILD_DTBS) 28351342d71SRussell King 2841da177e4SLinus Torvaldsboot := arch/arm/boot 2851da177e4SLinus Torvalds 28666206536SSam Ravnborgarchprepare: 28766206536SSam Ravnborg $(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h 2881da177e4SLinus Torvalds 2891da177e4SLinus Torvalds# Convert bzImage to zImage 2901da177e4SLinus TorvaldsbzImage: zImage 2911da177e4SLinus Torvalds 2921da177e4SLinus TorvaldszImage Image xipImage bootpImage uImage: vmlinux 2931da177e4SLinus Torvalds $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 2941da177e4SLinus Torvalds 295a65d2922SRussell Kingzinstall uinstall install: vmlinux 2961da177e4SLinus Torvalds $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 2971da177e4SLinus Torvalds 29881793babSDouglas Anderson%.dtb: | scripts 299499cd829SGrant Likely $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@ 3005fd1a2edSRob Herring 30181793babSDouglas AndersonPHONY += dtbs 30270b0476aSDavid Browndtbs: scripts 303499cd829SGrant Likely $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) dtbs 3045fd1a2edSRob Herring 3051da177e4SLinus Torvalds# We use MRPROPER_FILES and CLEAN_FILES now 3061da177e4SLinus Torvaldsarchclean: 3071da177e4SLinus Torvalds $(Q)$(MAKE) $(clean)=$(boot) 3081da177e4SLinus Torvalds 3091da177e4SLinus Torvalds# My testing targets (bypasses dependencies) 3101da177e4SLinus Torvaldsbp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage 3111da177e4SLinus Torvaldsi zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 3121da177e4SLinus Torvalds 3131da177e4SLinus Torvalds 3141da177e4SLinus Torvaldsdefine archhelp 3151da177e4SLinus Torvalds echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' 3161da177e4SLinus Torvalds echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' 3171da177e4SLinus Torvalds echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)' 318a4f14bacSUwe Kleine-König echo ' uImage - U-Boot wrapped zImage' 3191da177e4SLinus Torvalds echo ' bootpImage - Combined zImage and initial RAM disk' 3201da177e4SLinus Torvalds echo ' (supply initrd image via make variable INITRD=<path>)' 321e50a622dSAndrew Lunn echo '* dtbs - Build device tree blobs for enabled boards' 3221da177e4SLinus Torvalds echo ' install - Install uncompressed kernel' 3231da177e4SLinus Torvalds echo ' zinstall - Install compressed kernel' 324a65d2922SRussell King echo ' uinstall - Install U-Boot wrapped compressed kernel' 325caa27b66SSam Ravnborg echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' 326caa27b66SSam Ravnborg echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 3271da177e4SLinus Torvalds echo ' install to $$(INSTALL_PATH) and run lilo' 3281da177e4SLinus Torvaldsendef 329