mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00

CI: https://source.denx.de/u-boot/custodians/u-boot-imx/-/pipelines/22796 - Switch to using upstream DT on DH i.MX8MP DHCOM PDK2/PDK3. - Add ability to build fallback DTBOs from arch/$(ARCH)/dts. - Remove fdt_high and initrd_high env variables from imx6-dhcom. - Add dummy clk for imx8. - Fix DT corruption in imx8_cpu. - Improve DDR stability on pico-imx7d.
31 lines
827 B
Text
31 lines
827 B
Text
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
dtb-y += $(patsubst %,%.dtb,$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE) $(CONFIG_OF_LIST) $(CONFIG_SPL_OF_LIST)))
|
|
dtb-y += $(patsubst %,%.dtbo,$(subst ",,$(CONFIG_OF_OVERLAY_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))
|
|
@:
|
|
|
|
ifneq ($(CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS),)
|
|
PHONY += dtbos
|
|
dtbos: $(addprefix $(obj)/, $(filter-out %.dtb,$(dtb-y)))
|
|
@:
|
|
endif
|
|
|
|
clean-files := *.dtb *.dtbo */*.dtb */*.dtbo *_HS
|