mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 15:26:58 +02:00
This will allow arch(s) that use device tree blobs to pad the end of the device tree so they can be modified by board files at run time. This will help prevent errors such as FDT_ERR_NOSPACE from occurring. Signed-off-by: Eric Schikschneit <eric.schikschneit@novatechautomation.com> [trini: Change default order so that X86 && EFI_APP works correctly]
36 lines
916 B
Makefile
36 lines
916 B
Makefile
# 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
|
|
|
|
ifneq ($(CONFIG_SYS_DTC_PAD_BYTES),0)
|
|
DTC_FLAGS += -p $(CONFIG_SYS_DTC_PAD_BYTES)
|
|
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
|