-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cleanup/dts-subdirs' into next/arm64
Dependency for Juno support, from cleanup branch. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
- Loading branch information
Showing
17 changed files
with
95 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb | ||
dtb-$(CONFIG_ARCH_VEXPRESS) += rtsm_ve-aemv8a.dtb foundation-v8.dtb | ||
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb | ||
dts-dirs += apm | ||
dts-dirs += arm | ||
dts-dirs += cavium | ||
|
||
targets += dtbs | ||
targets += $(dtb-y) | ||
|
||
dtbs: $(addprefix $(obj)/, $(dtb-y)) | ||
|
||
clean-files := *.dtb | ||
always := $(dtb-y) | ||
subdir-y := $(dts-dirs) | ||
clean-files := *.dtb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dtb-$(CONFIG_ARCH_XGENE) += apm-mustang.dtb | ||
|
||
always := $(dtb-y) | ||
subdir-y := $(dts-dirs) | ||
clean-files := *.dtb |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dtb-$(CONFIG_ARCH_THUNDER) += thunder-88xx.dtb | ||
|
||
always := $(dtb-y) | ||
subdir-y := $(dts-dirs) | ||
clean-files := *.dtb |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters