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 245636810dSGeorge G. Davis# Explicitly specifiy 32-bit ARM ISA since toolchain default can be -mthumb: 25a0f97e06SSam RavnborgKBUILD_CFLAGS +=$(call cc-option,-marm,) 261da177e4SLinus Torvalds 27bd365591SMichal Marek# Never generate .eh_frame 28bd365591SMichal MarekKBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) 29bd365591SMichal Marek 301da177e4SLinus Torvalds# Do not use arch/arm/defconfig - it's always outdated. 311da177e4SLinus Torvalds# Select a platform tht is kept up-to-date 321da177e4SLinus TorvaldsKBUILD_DEFCONFIG := versatile_defconfig 331da177e4SLinus Torvalds 343dbda77eSUwe Kleine-Koenig# defines filename extension depending memory management type. 35f8c07de6SHyok S. Choiifeq ($(CONFIG_MMU),) 36f8c07de6SHyok S. ChoiMMUEXT := -nommu 37f8c07de6SHyok S. Choiendif 38f8c07de6SHyok S. Choi 391da177e4SLinus Torvaldsifeq ($(CONFIG_FRAME_POINTER),y) 40a0f97e06SSam RavnborgKBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog 411da177e4SLinus Torvaldsendif 421da177e4SLinus Torvalds 43c743f380SNicolas Pitreifeq ($(CONFIG_CC_STACKPROTECTOR),y) 44c743f380SNicolas PitreKBUILD_CFLAGS +=-fstack-protector 45c743f380SNicolas Pitreendif 46c743f380SNicolas Pitre 471da177e4SLinus Torvaldsifeq ($(CONFIG_CPU_BIG_ENDIAN),y) 4806c5040cSSam RavnborgKBUILD_CPPFLAGS += -mbig-endian 491da177e4SLinus TorvaldsAS += -EB 501da177e4SLinus TorvaldsLD += -EB 511da177e4SLinus Torvaldselse 5206c5040cSSam RavnborgKBUILD_CPPFLAGS += -mlittle-endian 531da177e4SLinus TorvaldsAS += -EL 541da177e4SLinus TorvaldsLD += -EL 551da177e4SLinus Torvaldsendif 561da177e4SLinus Torvalds 571da177e4SLinus Torvaldscomma = , 581da177e4SLinus Torvalds 591da177e4SLinus Torvalds# This selects which instruction set is used. 601da177e4SLinus Torvalds# Note that GCC does not numerically define an architecture version 611da177e4SLinus Torvalds# macro, but instead defines a whole series of macros which makes 621da177e4SLinus Torvalds# testing for a specific architecture or later rather impossible. 6376ebc6a4SCatalin Marinasarch-$(CONFIG_CPU_32v7) :=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a) 641da177e4SLinus Torvaldsarch-$(CONFIG_CPU_32v6) :=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6) 6523688e99SCatalin Marinas# Only override the compiler option if ARMv6. The ARMv6K extensions are 6623688e99SCatalin Marinas# always available in ARMv7 6723688e99SCatalin Marinasifeq ($(CONFIG_CPU_32v6),y) 684a5f79e7SRussell Kingarch-$(CONFIG_CPU_32v6K) :=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6k,-march=armv5t -Wa$(comma)-march=armv6k) 6923688e99SCatalin Marinasendif 70260e98edSLennert Buytenhekarch-$(CONFIG_CPU_32v5) :=-D__LINUX_ARM_ARCH__=5 $(call cc-option,-march=armv5te,-march=armv4t) 71260e98edSLennert Buytenhekarch-$(CONFIG_CPU_32v4T) :=-D__LINUX_ARM_ARCH__=4 -march=armv4t 721da177e4SLinus Torvaldsarch-$(CONFIG_CPU_32v4) :=-D__LINUX_ARM_ARCH__=4 -march=armv4 731da177e4SLinus Torvaldsarch-$(CONFIG_CPU_32v3) :=-D__LINUX_ARM_ARCH__=3 -march=armv3 741da177e4SLinus Torvalds 751da177e4SLinus Torvalds# This selects how we optimise for the processor. 7607e0da78SHyok S. Choitune-$(CONFIG_CPU_ARM7TDMI) :=-mtune=arm7tdmi 771da177e4SLinus Torvaldstune-$(CONFIG_CPU_ARM720T) :=-mtune=arm7tdmi 78b731c311SHyok S. Choitune-$(CONFIG_CPU_ARM740T) :=-mtune=arm7tdmi 7943f5f014SHyok S. Choitune-$(CONFIG_CPU_ARM9TDMI) :=-mtune=arm9tdmi 80d60674ebSHyok S. Choitune-$(CONFIG_CPU_ARM940T) :=-mtune=arm9tdmi 81e6bb83fdSAdrian Bunktune-$(CONFIG_CPU_ARM946E) :=$(call cc-option,-mtune=arm9e,-mtune=arm9tdmi) 821da177e4SLinus Torvaldstune-$(CONFIG_CPU_ARM920T) :=-mtune=arm9tdmi 831da177e4SLinus Torvaldstune-$(CONFIG_CPU_ARM922T) :=-mtune=arm9tdmi 841da177e4SLinus Torvaldstune-$(CONFIG_CPU_ARM925T) :=-mtune=arm9tdmi 851da177e4SLinus Torvaldstune-$(CONFIG_CPU_ARM926T) :=-mtune=arm9tdmi 8628853ac8SPaulius Zaleckastune-$(CONFIG_CPU_FA526) :=-mtune=arm9tdmi 871da177e4SLinus Torvaldstune-$(CONFIG_CPU_SA110) :=-mtune=strongarm110 881da177e4SLinus Torvaldstune-$(CONFIG_CPU_SA1100) :=-mtune=strongarm1100 891da177e4SLinus Torvaldstune-$(CONFIG_CPU_XSCALE) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale 9023bdf86aSLennert Buytenhektune-$(CONFIG_CPU_XSC3) :=$(call cc-option,-mtune=xscale,-mtune=strongarm110) -Wa,-mcpu=xscale 91b71b9effSNicolas Pitretune-$(CONFIG_CPU_FEROCEON) :=$(call cc-option,-mtune=marvell-f,-mtune=xscale) 92cd26f45bSGeorge G. Davistune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) 93e399b1a4SRussell Kingtune-$(CONFIG_CPU_V6K) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm) 941da177e4SLinus Torvalds 95704bdda0SNicolas Pitreifeq ($(CONFIG_AEABI),y) 96c7fd8442SRichard PurdieCFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork 97704bdda0SNicolas Pitreelse 98c28a814fSCatalin MarinasCFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,) 99704bdda0SNicolas Pitreendif 100704bdda0SNicolas Pitre 101adf8b37bSCatalin Marinasifeq ($(CONFIG_ARM_UNWIND),y) 102adf8b37bSCatalin MarinasCFLAGS_ABI +=-funwind-tables 103adf8b37bSCatalin Marinasendif 104adf8b37bSCatalin Marinas 10516c79651SCatalin Marinasifeq ($(CONFIG_THUMB2_KERNEL),y) 106c540b9ffSCatalin MarinasAFLAGS_AUTOIT :=$(call as-option,-Wa$(comma)-mimplicit-it=always,-Wa$(comma)-mauto-it) 10716c79651SCatalin MarinasAFLAGS_NOWARN :=$(call as-option,-Wa$(comma)-mno-warn-deprecated,-Wa$(comma)-W) 10816c79651SCatalin MarinasCFLAGS_THUMB2 :=-mthumb $(AFLAGS_AUTOIT) $(AFLAGS_NOWARN) 10916c79651SCatalin MarinasAFLAGS_THUMB2 :=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb 1106f685c5cSDave Martin# Work around buggy relocation from gas if requested: 1116f685c5cSDave Martinifeq ($(CONFIG_THUMB2_AVOID_R_ARM_THM_JUMP11),y) 1126f685c5cSDave MartinCFLAGS_MODULE +=-fno-optimize-sibling-calls 1136f685c5cSDave Martinendif 11416c79651SCatalin Marinasendif 11516c79651SCatalin Marinas 116704bdda0SNicolas Pitre# Need -Uarm for gcc < 3.x 11716c79651SCatalin MarinasKBUILD_CFLAGS +=$(CFLAGS_ABI) $(CFLAGS_THUMB2) $(arch-y) $(tune-y) $(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uarm 11816c79651SCatalin MarinasKBUILD_AFLAGS +=$(CFLAGS_ABI) $(AFLAGS_THUMB2) $(arch-y) $(tune-y) -include asm/unified.h -msoft-float 1191da177e4SLinus Torvalds 1201da177e4SLinus TorvaldsCHECKFLAGS += -D__arm__ 1211da177e4SLinus Torvalds 1221da177e4SLinus Torvalds#Default value 1235290dc29SThomas Gleixnerhead-y := arch/arm/kernel/head$(MMUEXT).o 1249d4f13e5SRussell Kingtextofs-y := 0x00008000 125b4175b89SRussell Kingtextofs-$(CONFIG_ARCH_CLPS711X) := 0x00028000 126c4761b69SVasily Khoruzhick# We don't want the htc bootloader to corrupt kernel during resume 127c4761b69SVasily Khoruzhicktextofs-$(CONFIG_PM_H1940) := 0x00108000 1281da177e4SLinus Torvalds# SA1111 DMA bug: we don't want the kernel to live in precious DMA-able memory 129b4175b89SRussell Kingifeq ($(CONFIG_ARCH_SA1100),y) 1309d4f13e5SRussell Kingtextofs-$(CONFIG_SA1111) := 0x00208000 1311da177e4SLinus Torvaldsendif 1329e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM7X30) := 0x00208000 1339e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000 1349e775ad1SStephen Boydtextofs-$(CONFIG_ARCH_MSM8960) := 0x00208000 135b4175b89SRussell King 136b4175b89SRussell King# Machine directory name. This list is sorted alphanumerically 137b4175b89SRussell King# by CONFIG_* macro name. 138*387798b3SRob Herringmachine-$(CONFIG_ARCH_AT91) += at91 139*387798b3SRob Herringmachine-$(CONFIG_ARCH_BCMRING) += bcmring 140*387798b3SRob Herringmachine-$(CONFIG_ARCH_CLPS711X) += clps711x 141*387798b3SRob Herringmachine-$(CONFIG_ARCH_CNS3XXX) += cns3xxx 142*387798b3SRob Herringmachine-$(CONFIG_ARCH_DAVINCI) += davinci 143*387798b3SRob Herringmachine-$(CONFIG_ARCH_DOVE) += dove 144*387798b3SRob Herringmachine-$(CONFIG_ARCH_EBSA110) += ebsa110 145*387798b3SRob Herringmachine-$(CONFIG_ARCH_EP93XX) += ep93xx 146*387798b3SRob Herringmachine-$(CONFIG_ARCH_GEMINI) += gemini 147*387798b3SRob Herringmachine-$(CONFIG_ARCH_H720X) += h720x 148*387798b3SRob Herringmachine-$(CONFIG_ARCH_HIGHBANK) += highbank 149*387798b3SRob Herringmachine-$(CONFIG_ARCH_INTEGRATOR) += integrator 150*387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP13XX) += iop13xx 151*387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP32X) += iop32x 152*387798b3SRob Herringmachine-$(CONFIG_ARCH_IOP33X) += iop33x 153*387798b3SRob Herringmachine-$(CONFIG_ARCH_IXP4XX) += ixp4xx 154*387798b3SRob Herringmachine-$(CONFIG_ARCH_KIRKWOOD) += kirkwood 155*387798b3SRob Herringmachine-$(CONFIG_ARCH_KS8695) += ks8695 156*387798b3SRob Herringmachine-$(CONFIG_ARCH_LPC32XX) += lpc32xx 157*387798b3SRob Herringmachine-$(CONFIG_ARCH_MMP) += mmp 158*387798b3SRob Herringmachine-$(CONFIG_ARCH_MSM) += msm 159*387798b3SRob Herringmachine-$(CONFIG_ARCH_MV78XX0) += mv78xx0 160*387798b3SRob Herringmachine-$(CONFIG_ARCH_MXC) += imx 161*387798b3SRob Herringmachine-$(CONFIG_ARCH_MXS) += mxs 162*387798b3SRob Herringmachine-$(CONFIG_ARCH_MVEBU) += mvebu 163*387798b3SRob Herringmachine-$(CONFIG_ARCH_NETX) += netx 164*387798b3SRob Herringmachine-$(CONFIG_ARCH_NOMADIK) += nomadik 165*387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP1) += omap1 166*387798b3SRob Herringmachine-$(CONFIG_ARCH_OMAP2PLUS) += omap2 167*387798b3SRob Herringmachine-$(CONFIG_ARCH_ORION5X) += orion5x 168*387798b3SRob Herringmachine-$(CONFIG_ARCH_PICOXCELL) += picoxcell 169*387798b3SRob Herringmachine-$(CONFIG_ARCH_PNX4008) += pnx4008 170*387798b3SRob Herringmachine-$(CONFIG_ARCH_PRIMA2) += prima2 171*387798b3SRob Herringmachine-$(CONFIG_ARCH_PXA) += pxa 172*387798b3SRob Herringmachine-$(CONFIG_ARCH_REALVIEW) += realview 173*387798b3SRob Herringmachine-$(CONFIG_ARCH_RPC) += rpc 174*387798b3SRob Herringmachine-$(CONFIG_ARCH_S3C24XX) += s3c24xx s3c2412 s3c2440 175*387798b3SRob Herringmachine-$(CONFIG_ARCH_S3C64XX) += s3c64xx 176*387798b3SRob Herringmachine-$(CONFIG_ARCH_S5P64X0) += s5p64x0 177*387798b3SRob Herringmachine-$(CONFIG_ARCH_S5PC100) += s5pc100 178*387798b3SRob Herringmachine-$(CONFIG_ARCH_S5PV210) += s5pv210 179*387798b3SRob Herringmachine-$(CONFIG_ARCH_EXYNOS) += exynos 180*387798b3SRob Herringmachine-$(CONFIG_ARCH_SA1100) += sa1100 181*387798b3SRob Herringmachine-$(CONFIG_ARCH_SHARK) += shark 182*387798b3SRob Herringmachine-$(CONFIG_ARCH_SHMOBILE) += shmobile 183*387798b3SRob Herringmachine-$(CONFIG_ARCH_TEGRA) += tegra 184*387798b3SRob Herringmachine-$(CONFIG_ARCH_U300) += u300 185*387798b3SRob Herringmachine-$(CONFIG_ARCH_U8500) += ux500 186*387798b3SRob Herringmachine-$(CONFIG_ARCH_VERSATILE) += versatile 187*387798b3SRob Herringmachine-$(CONFIG_ARCH_VEXPRESS) += vexpress 188*387798b3SRob Herringmachine-$(CONFIG_ARCH_VT8500) += vt8500 189*387798b3SRob Herringmachine-$(CONFIG_ARCH_W90X900) += w90x900 190*387798b3SRob Herringmachine-$(CONFIG_FOOTBRIDGE) += footbridge 191*387798b3SRob Herringmachine-$(CONFIG_ARCH_SOCFPGA) += socfpga 192*387798b3SRob Herringmachine-$(CONFIG_ARCH_SPEAR13XX) += spear13xx 193*387798b3SRob Herringmachine-$(CONFIG_ARCH_SPEAR3XX) += spear3xx 194*387798b3SRob Herringmachine-$(CONFIG_MACH_SPEAR600) += spear6xx 195*387798b3SRob Herringmachine-$(CONFIG_ARCH_ZYNQ) += zynq 196b4175b89SRussell King 197b4175b89SRussell King# Platform directory name. This list is sorted alphanumerically 198b4175b89SRussell King# by CONFIG_* macro name. 199*387798b3SRob Herringplat-$(CONFIG_ARCH_MXC) += mxc 200*387798b3SRob Herringplat-$(CONFIG_ARCH_OMAP) += omap 201*387798b3SRob Herringplat-$(CONFIG_ARCH_S3C64XX) += samsung 202*387798b3SRob Herringplat-$(CONFIG_ARCH_ZYNQ) += versatile 203*387798b3SRob Herringplat-$(CONFIG_PLAT_IOP) += iop 204*387798b3SRob Herringplat-$(CONFIG_PLAT_NOMADIK) += nomadik 205*387798b3SRob Herringplat-$(CONFIG_PLAT_ORION) += orion 206*387798b3SRob Herringplat-$(CONFIG_PLAT_PXA) += pxa 207*387798b3SRob Herringplat-$(CONFIG_PLAT_S3C24XX) += s3c24xx samsung 208*387798b3SRob Herringplat-$(CONFIG_PLAT_S5P) += samsung 209*387798b3SRob Herringplat-$(CONFIG_PLAT_SPEAR) += spear 210*387798b3SRob Herringplat-$(CONFIG_PLAT_VERSATILE) += versatile 2111da177e4SLinus Torvalds 2121da177e4SLinus Torvaldsifeq ($(CONFIG_ARCH_EBSA110),y) 2131da177e4SLinus Torvalds# This is what happens if you forget the IOCS16 line. 2141da177e4SLinus Torvalds# PCMCIA cards stop working. 2151da177e4SLinus TorvaldsCFLAGS_3c589_cs.o :=-DISA_SIXTEEN_BIT_PERIPHERAL 2161da177e4SLinus Torvaldsexport CFLAGS_3c589_cs.o 2171da177e4SLinus Torvaldsendif 2181da177e4SLinus Torvalds 2199d4f13e5SRussell King# The byte offset of the kernel image in RAM from the start of RAM. 2209d4f13e5SRussell KingTEXT_OFFSET := $(textofs-y) 2211da177e4SLinus Torvalds 222f44f82e8SRussell King# The first directory contains additional information for the boot setup code 2231da177e4SLinus Torvaldsifneq ($(machine-y),) 224f44f82e8SRussell KingMACHINE := arch/arm/mach-$(word 1,$(machine-y))/ 2251da177e4SLinus Torvaldselse 2261da177e4SLinus TorvaldsMACHINE := 2271da177e4SLinus Torvaldsendif 228*387798b3SRob Herringifeq ($(CONFIG_ARCH_MULTIPLATFORM),y) 229*387798b3SRob HerringMACHINE := 230*387798b3SRob Herringendif 2311da177e4SLinus Torvalds 232f44f82e8SRussell Kingmachdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y)) 233f44f82e8SRussell Kingplatdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y)) 234f44f82e8SRussell King 235*387798b3SRob Herringifneq ($(CONFIG_ARCH_MULTIPLATFORM),y) 236f44f82e8SRussell Kingifeq ($(KBUILD_SRC),) 237f44f82e8SRussell KingKBUILD_CPPFLAGS += $(patsubst %,-I%include,$(machdirs) $(platdirs)) 238f44f82e8SRussell Kingelse 239f44f82e8SRussell KingKBUILD_CPPFLAGS += $(patsubst %,-I$(srctree)/%include,$(machdirs) $(platdirs)) 240f44f82e8SRussell Kingendif 241*387798b3SRob Herringendif 242f44f82e8SRussell King 243f8c07de6SHyok S. Choiexport TEXT_OFFSET GZFLAGS MMUEXT 2441da177e4SLinus Torvalds 2451da177e4SLinus Torvalds# Do we have FASTFPE? 2461da177e4SLinus TorvaldsFASTFPE :=arch/arm/fastfpe 2471da177e4SLinus Torvaldsifeq ($(FASTFPE),$(wildcard $(FASTFPE))) 2481da177e4SLinus TorvaldsFASTFPE_OBJ :=$(FASTFPE)/ 2491da177e4SLinus Torvaldsendif 2501da177e4SLinus Torvalds 2511da177e4SLinus Torvaldscore-$(CONFIG_FPE_NWFPE) += arch/arm/nwfpe/ 2521da177e4SLinus Torvaldscore-$(CONFIG_FPE_FASTFPE) += $(FASTFPE_OBJ) 2531da177e4SLinus Torvaldscore-$(CONFIG_VFP) += arch/arm/vfp/ 2541da177e4SLinus Torvalds 255c62d0f2aSNicolas Pitre# If we have a machine-specific directory, then include it in the build. 256c62d0f2aSNicolas Pitrecore-y += arch/arm/kernel/ arch/arm/mm/ arch/arm/common/ 257ddecdfceSMircea Gherzancore-y += arch/arm/net/ 258c62d0f2aSNicolas Pitrecore-y += $(machdirs) $(platdirs) 259c62d0f2aSNicolas Pitre 2601da177e4SLinus Torvaldsdrivers-$(CONFIG_OPROFILE) += arch/arm/oprofile/ 2611da177e4SLinus Torvalds 26230c2f90bSNicolas Pitrelibs-y := arch/arm/lib/ $(libs-y) 2631da177e4SLinus Torvalds 2641da177e4SLinus Torvalds# Default target when executing plain make 2651da177e4SLinus Torvaldsifeq ($(CONFIG_XIP_KERNEL),y) 26651342d71SRussell KingKBUILD_IMAGE := xipImage 2671da177e4SLinus Torvaldselse 26851342d71SRussell KingKBUILD_IMAGE := zImage 2691da177e4SLinus Torvaldsendif 2701da177e4SLinus Torvalds 27151342d71SRussell Kingall: $(KBUILD_IMAGE) 27251342d71SRussell King 2731da177e4SLinus Torvaldsboot := arch/arm/boot 2741da177e4SLinus Torvalds 27566206536SSam Ravnborgarchprepare: 27666206536SSam Ravnborg $(Q)$(MAKE) $(build)=arch/arm/tools include/generated/mach-types.h 2771da177e4SLinus Torvalds 2781da177e4SLinus Torvalds# Convert bzImage to zImage 2791da177e4SLinus TorvaldsbzImage: zImage 2801da177e4SLinus Torvalds 2811da177e4SLinus TorvaldszImage Image xipImage bootpImage uImage: vmlinux 2821da177e4SLinus Torvalds $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 2831da177e4SLinus Torvalds 284a65d2922SRussell Kingzinstall uinstall install: vmlinux 2851da177e4SLinus Torvalds $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 2861da177e4SLinus Torvalds 2875fd1a2edSRob Herring%.dtb: 2885fd1a2edSRob Herring $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 2895fd1a2edSRob Herring 2905fd1a2edSRob Herringdtbs: 2915fd1a2edSRob Herring $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ 2925fd1a2edSRob Herring 2931da177e4SLinus Torvalds# We use MRPROPER_FILES and CLEAN_FILES now 2941da177e4SLinus Torvaldsarchclean: 2951da177e4SLinus Torvalds $(Q)$(MAKE) $(clean)=$(boot) 2961da177e4SLinus Torvalds 2971da177e4SLinus Torvalds# My testing targets (bypasses dependencies) 2981da177e4SLinus Torvaldsbp:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/bootpImage 2991da177e4SLinus Torvaldsi zi:; $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ 3001da177e4SLinus Torvalds 3011da177e4SLinus Torvalds 3021da177e4SLinus Torvaldsdefine archhelp 3031da177e4SLinus Torvalds echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' 3041da177e4SLinus Torvalds echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' 3051da177e4SLinus Torvalds echo '* xipImage - XIP kernel image, if configured (arch/$(ARCH)/boot/xipImage)' 306a4f14bacSUwe Kleine-König echo ' uImage - U-Boot wrapped zImage' 3071da177e4SLinus Torvalds echo ' bootpImage - Combined zImage and initial RAM disk' 3081da177e4SLinus Torvalds echo ' (supply initrd image via make variable INITRD=<path>)' 3095fd1a2edSRob Herring echo ' dtbs - Build device tree blobs for enabled boards' 3101da177e4SLinus Torvalds echo ' install - Install uncompressed kernel' 3111da177e4SLinus Torvalds echo ' zinstall - Install compressed kernel' 312a65d2922SRussell King echo ' uinstall - Install U-Boot wrapped compressed kernel' 313caa27b66SSam Ravnborg echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' 314caa27b66SSam Ravnborg echo ' (distribution) /sbin/$(INSTALLKERNEL) or' 3151da177e4SLinus Torvalds echo ' install to $$(INSTALL_PATH) and run lilo' 3161da177e4SLinus Torvaldsendef 317