Merge branch 'cleanup/dts-subdirs' into next/arm64
Dependency for Juno support, from cleanup branch. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Коммит
8c123c9417
|
@ -312,8 +312,12 @@ $(INSTALL_TARGETS):
|
||||||
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
|
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
|
||||||
|
|
||||||
PHONY += dtbs dtbs_install
|
PHONY += dtbs dtbs_install
|
||||||
dtbs dtbs_install: prepare scripts
|
|
||||||
$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $@
|
dtbs: prepare scripts
|
||||||
|
$(Q)$(MAKE) $(build)=$(boot)/dts
|
||||||
|
|
||||||
|
dtbs_install:
|
||||||
|
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
|
||||||
|
|
||||||
# We use MRPROPER_FILES and CLEAN_FILES now
|
# We use MRPROPER_FILES and CLEAN_FILES now
|
||||||
archclean:
|
archclean:
|
||||||
|
|
|
@ -517,15 +517,7 @@ dtb-$(CONFIG_MACH_DOVE) += dove-cm-a510.dtb \
|
||||||
dove-dove-db.dtb
|
dove-dove-db.dtb
|
||||||
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb
|
dtb-$(CONFIG_ARCH_MEDIATEK) += mt6589-aquaris5.dtb
|
||||||
|
|
||||||
targets += dtbs dtbs_install
|
|
||||||
targets += $(dtb-y)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# *.dtb used to be generated in the directory above. Clean out the
|
always := $(dtb-y)
|
||||||
# old build results so people don't accidentally use them.
|
clean-files := *.dtb
|
||||||
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
||||||
$(Q)rm -f $(obj)/../*.dtb
|
|
||||||
|
|
||||||
clean-files := *.dtb
|
|
||||||
|
|
||||||
dtbs_install: $(addsuffix _dtbinst_, $(dtb-y))
|
|
||||||
|
|
|
@ -70,8 +70,13 @@ zinstall install: vmlinux
|
||||||
%.dtb: scripts
|
%.dtb: scripts
|
||||||
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
|
$(Q)$(MAKE) $(build)=$(boot)/dts $(boot)/dts/$@
|
||||||
|
|
||||||
dtbs: scripts
|
PHONY += dtbs dtbs_install
|
||||||
$(Q)$(MAKE) $(build)=$(boot)/dts dtbs
|
|
||||||
|
dtbs: prepare scripts
|
||||||
|
$(Q)$(MAKE) $(build)=$(boot)/dts
|
||||||
|
|
||||||
|
dtbs_install:
|
||||||
|
$(Q)$(MAKE) $(dtbinst)=$(boot)/dts
|
||||||
|
|
||||||
PHONY += vdso_install
|
PHONY += vdso_install
|
||||||
vdso_install:
|
vdso_install:
|
||||||
|
@ -85,6 +90,7 @@ define archhelp
|
||||||
echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
|
echo '* Image.gz - Compressed kernel image (arch/$(ARCH)/boot/Image.gz)'
|
||||||
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
|
echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
|
||||||
echo '* dtbs - Build device tree blobs for enabled boards'
|
echo '* dtbs - Build device tree blobs for enabled boards'
|
||||||
|
echo ' dtbs_install - Install dtbs to $(INSTALL_DTBS_PATH)'
|
||||||
echo ' install - Install uncompressed kernel'
|
echo ' install - Install uncompressed kernel'
|
||||||
echo ' zinstall - Install compressed kernel'
|
echo ' zinstall - Install compressed kernel'
|
||||||
echo ' Install using (your) ~/bin/installkernel or'
|
echo ' Install using (your) ~/bin/installkernel or'
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb
|
dts-dirs += apm
|
||||||
dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb
|
dts-dirs += arm
|
||||||
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb
|
dts-dirs += cavium
|
||||||
|
|
||||||
targets += dtbs
|
always := $(dtb-y)
|
||||||
targets += $(dtb-y)
|
subdir-y := $(dts-dirs)
|
||||||
|
clean-files := *.dtb
|
||||||
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
||||||
|
|
||||||
clean-files := *.dtb
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb
|
||||||
|
|
||||||
|
always := $(dtb-y)
|
||||||
|
subdir-y := $(dts-dirs)
|
||||||
|
clean-files := *.dtb
|
|
@ -0,0 +1,6 @@
|
||||||
|
dtb-$(CONFIG_ARCH_VEXPRESS) += foundation-v8.dtb
|
||||||
|
dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb
|
||||||
|
|
||||||
|
always := $(dtb-y)
|
||||||
|
subdir-y := $(dts-dirs)
|
||||||
|
clean-files := *.dtb
|
|
@ -0,0 +1,5 @@
|
||||||
|
dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb
|
||||||
|
|
||||||
|
always := $(dtb-y)
|
||||||
|
subdir-y := $(dts-dirs)
|
||||||
|
clean-files := *.dtb
|
|
@ -179,6 +179,12 @@ build := -f $(srctree)/scripts/Makefile.build obj
|
||||||
# $(Q)$(MAKE) $(modbuiltin)=dir
|
# $(Q)$(MAKE) $(modbuiltin)=dir
|
||||||
modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj
|
modbuiltin := -f $(srctree)/scripts/Makefile.modbuiltin obj
|
||||||
|
|
||||||
|
###
|
||||||
|
# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.dtbinst obj=
|
||||||
|
# Usage:
|
||||||
|
# $(Q)$(MAKE) $(dtbinst)=dir
|
||||||
|
dtbinst := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.dtbinst obj
|
||||||
|
|
||||||
# Prefix -I with $(srctree) if it is not an absolute path.
|
# Prefix -I with $(srctree) if it is not an absolute path.
|
||||||
# skip if -I has no parameter
|
# skip if -I has no parameter
|
||||||
addtree = $(if $(patsubst -I%,%,$(1)), \
|
addtree = $(if $(patsubst -I%,%,$(1)), \
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
# ==========================================================================
|
||||||
|
# Installing dtb files
|
||||||
|
#
|
||||||
|
# Installs all dtb files listed in $(dtb-y) either in the
|
||||||
|
# INSTALL_DTBS_PATH directory or the default location:
|
||||||
|
#
|
||||||
|
# $INSTALL_PATH/dtbs/$KERNELRELEASE
|
||||||
|
#
|
||||||
|
# Traverse through subdirectories listed in $(dts-dirs).
|
||||||
|
# ==========================================================================
|
||||||
|
|
||||||
|
src := $(obj)
|
||||||
|
|
||||||
|
PHONY := __dtbs_install
|
||||||
|
__dtbs_install:
|
||||||
|
|
||||||
|
export dtbinst-root ?= $(obj)
|
||||||
|
|
||||||
|
include include/config/auto.conf
|
||||||
|
include scripts/Kbuild.include
|
||||||
|
include $(srctree)/$(obj)/Makefile
|
||||||
|
|
||||||
|
PHONY += __dtbs_install_prep
|
||||||
|
__dtbs_install_prep:
|
||||||
|
ifeq ("$(dtbinst-root)", "$(obj)")
|
||||||
|
$(Q)if [ -d $(INSTALL_DTBS_PATH).old ]; then rm -rf $(INSTALL_DTBS_PATH).old; fi
|
||||||
|
$(Q)if [ -d $(INSTALL_DTBS_PATH) ]; then mv $(INSTALL_DTBS_PATH) $(INSTALL_DTBS_PATH).old; fi
|
||||||
|
$(Q)mkdir -p $(INSTALL_DTBS_PATH)
|
||||||
|
endif
|
||||||
|
|
||||||
|
dtbinst-files := $(dtb-y)
|
||||||
|
dtbinst-dirs := $(dts-dirs)
|
||||||
|
|
||||||
|
# Helper targets for Installing DTBs into the boot directory
|
||||||
|
quiet_cmd_dtb_install = INSTALL $<
|
||||||
|
cmd_dtb_install = mkdir -p $(2); cp $< $(2)
|
||||||
|
|
||||||
|
install-dir = $(patsubst $(dtbinst-root)%,$(INSTALL_DTBS_PATH)%,$(obj))
|
||||||
|
|
||||||
|
$(dtbinst-files) $(dtbinst-dirs): | __dtbs_install_prep
|
||||||
|
|
||||||
|
$(dtbinst-files): %.dtb: $(obj)/%.dtb
|
||||||
|
$(call cmd,dtb_install,$(install-dir))
|
||||||
|
|
||||||
|
$(dtbinst-dirs):
|
||||||
|
$(Q)$(MAKE) $(dtbinst)=$(obj)/$@
|
||||||
|
|
||||||
|
PHONY += $(dtbinst-files) $(dtbinst-dirs)
|
||||||
|
__dtbs_install: $(dtbinst-files) $(dtbinst-dirs)
|
||||||
|
|
||||||
|
.PHONY: $(PHONY)
|
|
@ -283,18 +283,6 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
|
||||||
|
|
||||||
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
|
dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp)
|
||||||
|
|
||||||
# Helper targets for Installing DTBs into the boot directory
|
|
||||||
quiet_cmd_dtb_install = INSTALL $<
|
|
||||||
cmd_dtb_install = cp $< $(2)
|
|
||||||
|
|
||||||
_dtbinst_pre_:
|
|
||||||
$(Q)if [ -d $(INSTALL_DTBS_PATH).old ]; then rm -rf $(INSTALL_DTBS_PATH).old; fi
|
|
||||||
$(Q)if [ -d $(INSTALL_DTBS_PATH) ]; then mv $(INSTALL_DTBS_PATH) $(INSTALL_DTBS_PATH).old; fi
|
|
||||||
$(Q)mkdir -p $(INSTALL_DTBS_PATH)
|
|
||||||
|
|
||||||
%.dtb_dtbinst_: $(obj)/%.dtb _dtbinst_pre_
|
|
||||||
$(call cmd,dtb_install,$(INSTALL_DTBS_PATH))
|
|
||||||
|
|
||||||
# Bzip2
|
# Bzip2
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче