···113113# Default target when executing plain make114114boot := arch/arm64/boot115115KBUILD_IMAGE := $(boot)/Image.gz116116-KBUILD_DTBS := dtbs117116118118-all: Image.gz $(KBUILD_DTBS)117117+all: Image.gz119118120119121120Image: vmlinux···126127zinstall install:127128 $(Q)$(MAKE) $(build)=$(boot) $@128129129129-%.dtb: scripts130130- $(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@131131-132132-PHONY += dtbs dtbs_install133133-134134-dtbs: prepare scripts135135- $(Q)$(MAKE) $(build)=$(boot)/dts136136-137137-dtbs_install:138138- $(Q)$(MAKE) $(dtbinst)=$(boot)/dts139139-140130PHONY += vdso_install141131vdso_install:142132 $(Q)$(MAKE) $(build)=arch/arm64/kernel/vdso $@···133145# We use MRPROPER_FILES and CLEAN_FILES now134146archclean:135147 $(Q)$(MAKE) $(clean)=$(boot)136136- $(Q)$(MAKE) $(clean)=$(boot)/dts137148138149# We need to generate vdso-offsets.h before compiling certain files in kernel/.139150# In order to do that, we should use the archprepare target, but we can't since···147160define archhelp148161 echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'149162 echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'150150- echo '* dtbs - Build device tree blobs for enabled boards'151151- echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'152163 echo ' install - Install uncompressed kernel'153164 echo ' zinstall - Install compressed kernel'154165 echo ' Install using (your) ~/bin/installkernel or'
-2
arch/c6x/Makefile
···4040DTB:=$(subst dtbImage.,,$(filter dtbImage.%, $(MAKECMDGOALS)))4141export DTB42424343-ifneq ($(DTB),)4443core-y += $(boot)/dts/4545-endif46444745# With make 3.82 we cannot mix normal and wildcard targets4846
···6565# Are we making a simpleImage.<boardname> target? If so, crack out the boardname6666DTB:=$(subst simpleImage.,,$(filter simpleImage.%, $(MAKECMDGOALS)))67676868-ifneq ($(DTB),)6969- core-y += $(boot)/dts/7070-endif6868+core-y += $(boot)/dts/71697270# defines filename extension depending memory management type7371ifeq ($(CONFIG_MMU),)
···11-/*22- * Copyright (C) 2011 Thomas Chou <thomas@wytron.com.tw>33- *44- * This program is free software; you can redistribute it and/or modify55- * it under the terms of the GNU General Public License as published by66- * the Free Software Foundation; either version 2 of the License, or77- * (at your option) any later version.88- *99- * This program is distributed in the hope that it will be useful,1010- * but WITHOUT ANY WARRANTY; without even the implied warranty of1111- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1212- * GNU General Public License for more details.1313- *1414- * You should have received a copy of the GNU General Public License1515- * along with this program. If not, see <http://www.gnu.org/licenses/>.1616- *1717- */1818-.section .dtb.init.rodata,"a"1919-.incbin "arch/nios2/boot/system.dtb"
-3
arch/powerpc/Makefile
···293293bootwrapper_install:294294 $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)295295296296-%.dtb: scripts297297- $(Q)$(MAKE) $(build)=$(boot) $(patsubst %,$(boot)/%,$@)298298-299296# Used to create 'merged defconfigs'300297# To use it $(call) it with the first argument as the base defconfig301298# and the second argument as a space separated list of .config files to merge,
+26-29
arch/powerpc/boot/Makefile
···304304 dtbImage.adder875-redboot305305306306# Board ports in arch/powerpc/platform/52xx/Kconfig307307-image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200 lite5200.dtb308308-image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200b lite5200b.dtb309309-image-$(CONFIG_PPC_MEDIA5200) += cuImage.media5200 media5200.dtb307307+image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200308308+image-$(CONFIG_PPC_LITE5200) += cuImage.lite5200b309309+image-$(CONFIG_PPC_MEDIA5200) += cuImage.media5200310310311311# Board ports in arch/powerpc/platform/82xx/Kconfig312312image-$(CONFIG_MPC8272_ADS) += cuImage.mpc8272ads···381381 $(call if_changed,wrap,$(subst $(obj)/zImage.,,$@))382382383383# dtbImage% - a dtbImage is a zImage with an embedded device tree blob384384-$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/%.dtb FORCE385385- $(call if_changed,wrap,$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)384384+$(obj)/dtbImage.initrd.%: vmlinux $(wrapperbits) $(obj)/dts/%.dtb FORCE385385+ $(call if_changed,wrap,$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)386386387387-$(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/%.dtb FORCE388388- $(call if_changed,wrap,$*,,$(obj)/$*.dtb)387387+$(obj)/dtbImage.%: vmlinux $(wrapperbits) $(obj)/dts/%.dtb FORCE388388+ $(call if_changed,wrap,$*,,$(obj)/dts/$*.dtb)389389390390# This cannot be in the root of $(src) as the zImage rule always adds a $(obj)391391# prefix···395395$(obj)/uImage: vmlinux $(wrapperbits) FORCE396396 $(call if_changed,wrap,uboot)397397398398-$(obj)/uImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE399399- $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)398398+$(obj)/uImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE399399+ $(call if_changed,wrap,uboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)400400401401-$(obj)/uImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE402402- $(call if_changed,wrap,uboot-$*,,$(obj)/$*.dtb)401401+$(obj)/uImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE402402+ $(call if_changed,wrap,uboot-$*,,$(obj)/dts/$*.dtb)403403404404-$(obj)/cuImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE405405- $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)404404+$(obj)/cuImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE405405+ $(call if_changed,wrap,cuboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)406406407407-$(obj)/cuImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE408408- $(call if_changed,wrap,cuboot-$*,,$(obj)/$*.dtb)407407+$(obj)/cuImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE408408+ $(call if_changed,wrap,cuboot-$*,,$(obj)/dts/$*.dtb)409409410410-$(obj)/simpleImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE411411- $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)410410+$(obj)/simpleImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE411411+ $(call if_changed,wrap,simpleboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)412412413413-$(obj)/simpleImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE414414- $(call if_changed,wrap,simpleboot-$*,,$(obj)/$*.dtb)413413+$(obj)/simpleImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE414414+ $(call if_changed,wrap,simpleboot-$*,,$(obj)/dts/$*.dtb)415415416416-$(obj)/treeImage.initrd.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE417417- $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb,$(obj)/ramdisk.image.gz)416416+$(obj)/treeImage.initrd.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE417417+ $(call if_changed,wrap,treeboot-$*,,$(obj)/dts/$*.dtb,$(obj)/ramdisk.image.gz)418418419419-$(obj)/treeImage.%: vmlinux $(obj)/%.dtb $(wrapperbits) FORCE420420- $(call if_changed,wrap,treeboot-$*,,$(obj)/$*.dtb)419419+$(obj)/treeImage.%: vmlinux $(obj)/dts/%.dtb $(wrapperbits) FORCE420420+ $(call if_changed,wrap,treeboot-$*,,$(obj)/dts/$*.dtb)421421422422-# Rule to build device tree blobs423423-$(obj)/%.dtb: $(src)/dts/%.dts FORCE424424- $(call if_changed_dep,dtc)425425-426426-$(obj)/%.dtb: $(src)/dts/fsl/%.dts FORCE427427- $(call if_changed_dep,dtc)422422+# Needed for the above targets to work with dts/fsl/ files423423+$(obj)/dts/%.dtb: $(obj)/dts/fsl/%.dtb424424+ @cp $< $@428425429426# If there isn't a platform selected then just strip the vmlinux.430427ifeq (,$(image-y))