* [PATCH master] boards: qemu-virt: drop fitimage-pubkey.dts
@ 2025-11-26 14:09 Ahmad Fatoum
2025-11-27 8:28 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2025-11-26 14:09 UTC (permalink / raw)
To: barebox; +Cc: Jan Lübbe, Ahmad Fatoum
CONFIG_BOOTM_FITIMAGE_PUBKEY was removed in v2025.09.0 and the device
tree snippet that we merged at runtime into the DT we receive from QEMU
is now empty and no longer serves a purpose.
Remove it as it's actually detrimental: of_merge_nodes is a low-level
operation that doesn't handle duplicate nodes and when
CONFIG_EXTERNAL_DTS_FRAGMENTS adds a state node of its own, the barebox
barebox live device tree ends up with the state twice.
Reported-by: Jan Lübbe <j.luebbe@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
common/boards/qemu-virt/Makefile | 3 +--
common/boards/qemu-virt/board.c | 5 +----
common/boards/qemu-virt/fitimage-pubkey.dts | 3 ---
3 files changed, 2 insertions(+), 9 deletions(-)
delete mode 100644 common/boards/qemu-virt/fitimage-pubkey.dts
diff --git a/common/boards/qemu-virt/Makefile b/common/boards/qemu-virt/Makefile
index 7e1440aecff0..457ee5cdc6c9 100644
--- a/common/boards/qemu-virt/Makefile
+++ b/common/boards/qemu-virt/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
obj-y += board.o commandline.o
-obj-y += qemu-virt-flash.dtbo.o fitimage-pubkey.dtb.o
+obj-y += qemu-virt-flash.dtbo.o
ifeq ($(CONFIG_RISCV),y)
DTC_CPP_FLAGS_qemu-virt-flash.dtbo := -DCONFIG_RISCV
endif
@@ -12,5 +12,4 @@ endif
policy-y += qemu-virt-factory.sconfig
policy-y += qemu-virt-lockdown.sconfig
-clean-files := *.dtb *.dtb.S .*.dtc .*.pre .*.dts *.dtb.z
clean-files += *.dtbo *.dtbo.S .*.dtso
diff --git a/common/boards/qemu-virt/board.c b/common/boards/qemu-virt/board.c
index 6ad354218927..0c9cc1a75d3b 100644
--- a/common/boards/qemu-virt/board.c
+++ b/common/boards/qemu-virt/board.c
@@ -56,7 +56,7 @@ BAREBOX_DEEP_PROBE_ENABLE(virt_of_match);
static int virt_board_driver_init(void)
{
struct device_node *root = of_get_root_node();
- struct device_node *flash, *pubkey;
+ struct device_node *flash;
const struct of_device_id *id;
void (*init)(void);
@@ -77,9 +77,6 @@ static int virt_board_driver_init(void)
if (flash && of_device_is_available(flash))
of_overlay_apply_dtbo(root, __dtbo_qemu_virt_flash_start);
- pubkey = of_unflatten_dtb(__dtb_fitimage_pubkey_start, INT_MAX);
- of_merge_nodes(root, pubkey);
-
/* fragment may have added aliases to the DT */
of_alias_scan();
diff --git a/common/boards/qemu-virt/fitimage-pubkey.dts b/common/boards/qemu-virt/fitimage-pubkey.dts
deleted file mode 100644
index 1419fa0da5d5..000000000000
--- a/common/boards/qemu-virt/fitimage-pubkey.dts
+++ /dev/null
@@ -1,3 +0,0 @@
-/dts-v1/;
-
-/{ };
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH master] boards: qemu-virt: drop fitimage-pubkey.dts
2025-11-26 14:09 [PATCH master] boards: qemu-virt: drop fitimage-pubkey.dts Ahmad Fatoum
@ 2025-11-27 8:28 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-11-27 8:28 UTC (permalink / raw)
To: barebox, Ahmad Fatoum; +Cc: Jan Lübbe
On Wed, 26 Nov 2025 15:09:11 +0100, Ahmad Fatoum wrote:
> CONFIG_BOOTM_FITIMAGE_PUBKEY was removed in v2025.09.0 and the device
> tree snippet that we merged at runtime into the DT we receive from QEMU
> is now empty and no longer serves a purpose.
>
> Remove it as it's actually detrimental: of_merge_nodes is a low-level
> operation that doesn't handle duplicate nodes and when
> CONFIG_EXTERNAL_DTS_FRAGMENTS adds a state node of its own, the barebox
> barebox live device tree ends up with the state twice.
>
> [...]
Applied, thanks!
[1/1] boards: qemu-virt: drop fitimage-pubkey.dts
https://git.pengutronix.de/cgit/barebox/commit/?id=f018a6e4606e (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-27 8:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-26 14:09 [PATCH master] boards: qemu-virt: drop fitimage-pubkey.dts Ahmad Fatoum
2025-11-27 8:28 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox