diff options
| author | Caleb Connolly <[email protected]> | 2024-04-18 19:39:58 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-04-29 10:55:07 -0600 |
| commit | 0525cb2ae097d991dea35cbc08044c6e16e33e39 (patch) | |
| tree | 4cc6f97a9dcfe92d2a2bcff64d70896e50faf821 /scripts/Makefile.dts | |
| parent | 1ef61c338dc29a624040b48d13514b356a71abd0 (diff) | |
dts: support building all dtb files for a specific vendor
This adjusts OF_UPSTREAM to behave more like the kernel by allowing for
all the devicetree files for a given vendor to be compiled. This is
useful for Qualcomm in particular as most boards are supported by a
single U-Boot build just provided with a different DT.
Signed-off-by: Caleb Connolly <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Tested-by: Neil Armstrong <[email protected]> # on Amlogic boards builds
Diffstat (limited to 'scripts/Makefile.dts')
| -rw-r--r-- | scripts/Makefile.dts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/Makefile.dts b/scripts/Makefile.dts index 5e2429c6170..790f3c508f1 100644 --- a/scripts/Makefile.dts +++ b/scripts/Makefile.dts @@ -1,3 +1,16 @@ # 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 |
