[PATCH] Extend usage for OF_OVERLAY_LIST beyond SPL

From: Jan Kiszka jan.kiszka@siemens.com
Allow to use OF_OVERLAY_LIST also for the case that the overlays just need be built, e.g. when they will be picked up by binman as artifacts of the final U-Boot image. The IOT2050 boards have such a need when switching to OF_UPSTREAM.
Signed-off-by: Jan Kiszka jan.kiszka@siemens.com ---
While waiting for the merge of v6.12-rc1-dts and while seeing related but different attempts to address the overlay topic. See the patch in use here:
https://github.com/siemens/u-boot/commits/jan/iot2050
dts/Kconfig | 4 ++-- scripts/Makefile.dts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dts/Kconfig b/dts/Kconfig index 569d4be338e..7ea4fd5a79b 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -226,11 +226,11 @@ config OF_LIST
config OF_OVERLAY_LIST string "List of device tree overlays to include for DT control" - depends on SPL_LOAD_FIT_APPLY_OVERLAY help This option specifies a list of device tree overlays to use for DT control. This option can then be used by a FIT generator to include - the overlays in the FIT image. + the overlays in the FIT image or by binman when assembling an image + that uses overlays during DT fixup.
choice prompt "OF LIST compression" diff --git a/scripts/Makefile.dts b/scripts/Makefile.dts index 790f3c508f1..dc181240a21 100644 --- a/scripts/Makefile.dts +++ b/scripts/Makefile.dts @@ -1,6 +1,7 @@ # 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)

On Mon, 30 Sept 2024 at 15:50, Jan Kiszka jan.kiszka@siemens.com wrote:
From: Jan Kiszka jan.kiszka@siemens.com
Allow to use OF_OVERLAY_LIST also for the case that the overlays just need be built, e.g. when they will be picked up by binman as artifacts of the final U-Boot image. The IOT2050 boards have such a need when switching to OF_UPSTREAM.
Signed-off-by: Jan Kiszka jan.kiszka@siemens.com
While waiting for the merge of v6.12-rc1-dts and while seeing related but different attempts to address the overlay topic. See the patch in use here:
https://github.com/siemens/u-boot/commits/jan/iot2050
dts/Kconfig | 4 ++-- scripts/Makefile.dts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Sumit Garg sumit.garg@linaro.org
-Sumit
diff --git a/dts/Kconfig b/dts/Kconfig index 569d4be338e..7ea4fd5a79b 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -226,11 +226,11 @@ config OF_LIST
config OF_OVERLAY_LIST string "List of device tree overlays to include for DT control"
depends on SPL_LOAD_FIT_APPLY_OVERLAY help This option specifies a list of device tree overlays to use for DT control. This option can then be used by a FIT generator to include
the overlays in the FIT image.
the overlays in the FIT image or by binman when assembling an image
that uses overlays during DT fixup.
choice prompt "OF LIST compression" diff --git a/scripts/Makefile.dts b/scripts/Makefile.dts index 790f3c508f1..dc181240a21 100644 --- a/scripts/Makefile.dts +++ b/scripts/Makefile.dts @@ -1,6 +1,7 @@ # 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) -- 2.43.0

On Mon, 30 Sept 2024 at 06:05, Sumit Garg sumit.garg@linaro.org wrote:
On Mon, 30 Sept 2024 at 15:50, Jan Kiszka jan.kiszka@siemens.com wrote:
From: Jan Kiszka jan.kiszka@siemens.com
Allow to use OF_OVERLAY_LIST also for the case that the overlays just need be built, e.g. when they will be picked up by binman as artifacts of the final U-Boot image. The IOT2050 boards have such a need when switching to OF_UPSTREAM.
Signed-off-by: Jan Kiszka jan.kiszka@siemens.com
While waiting for the merge of v6.12-rc1-dts and while seeing related but different attempts to address the overlay topic. See the patch in use here:
https://github.com/siemens/u-boot/commits/jan/iot2050
dts/Kconfig | 4 ++-- scripts/Makefile.dts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-)
Reviewed-by: Sumit Garg sumit.garg@linaro.org
Reviewed-by: Simon Glass sjg@chromium.org

On Mon, 30 Sep 2024 12:20:36 +0200, Jan Kiszka wrote:
Allow to use OF_OVERLAY_LIST also for the case that the overlays just need be built, e.g. when they will be picked up by binman as artifacts of the final U-Boot image. The IOT2050 boards have such a need when switching to OF_UPSTREAM.
Applied to u-boot/master, thanks!
participants (4)
-
Jan Kiszka
-
Simon Glass
-
Sumit Garg
-
Tom Rini