mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-26 00:51:28 +02:00
The dtbs: target is almost identical in all architecture Makefiles. All architecture Makefiles include scripts/Makefile.dts . Deduplicate the dtbs: target into scripts/Makefile.dts . No functional change. Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Marek Vasut <marex@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Caleb Connolly <caleb.connolly@linaro.org> #qcom, OF_UPSTREAM
25 lines
615 B
Makefile
25 lines
615 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
dtb-y += $(patsubst %,%.dtb,$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE) $(CONFIG_OF_LIST) $(CONFIG_SPL_OF_LIST)))
|
|
|
|
ifeq ($(CONFIG_OF_UPSTREAM_BUILD_VENDOR),y)
|
|
ifeq ($(CONFIG_ARM64),y)
|
|
dt_dir := $(srctree)/dts/upstream/src/arm64
|
|
else
|
|
dt_dir := $(srctree)/dts/upstream/src/$(ARCH)
|
|
endif
|
|
|
|
dtb-vendor_dts := $(patsubst %.dts,%.dtb,$(wildcard $(dt_dir)/$(subst ",,$(CONFIG_OF_UPSTREAM_VENDOR))/*.dts))
|
|
|
|
dtb-y += $(subst $(dt_dir)/,,$(dtb-vendor_dts))
|
|
|
|
endif
|
|
|
|
targets += $(dtb-y)
|
|
|
|
PHONY += dtbs
|
|
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
|
@:
|
|
|
|
clean-files := *.dtb *.dtbo */*.dtb */*.dtbo *_HS
|