diff options
| author | Tom Rini <[email protected]> | 2024-04-29 10:55:17 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-04-29 10:55:17 -0600 |
| commit | 18572143eb22a0c7d0e621228b9d56400ec3b58a (patch) | |
| tree | 34035ff1e0df2dbc2e91ec29779789daa2d4971c /scripts | |
| parent | c3407f4f5c0d9c3a4e65ab309a8c06dc44016230 (diff) | |
| parent | 0525cb2ae097d991dea35cbc08044c6e16e33e39 (diff) | |
Merge patch series "upstream DT compatibility"
Caleb Connolly <[email protected]> says:
This is a subset of [1]. With more platform maintainers switching to
OF_UPSTREAM I didn't want to get in the way (it has also proven more
difficult than I hoped to remove only the fully compatible header
files).
This series removes only the dt-bindings headers which contain generic
data like GPIO flags, input event codes, etc.
It then implements support for building all DTBs for a vendor with
OF_UPSTREAM_BUILD_VENDOR. This removes the need to maintain a set list
of DTBs that can be built by U-Boot and opens up the possibility of new
boards becoming supported "by default" just by landing their DT
upstream.
[1]: https://lore.kernel.org/u-boot/[email protected]
Diffstat (limited to 'scripts')
| -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 |
