summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-12-22 12:44:38 +0100
committerHeinrich Schuchardt <[email protected]>2025-12-24 09:16:03 +0100
commit00bc1adae41df4b7d668f61b64d4898b4adb342a (patch)
tree56d75c3b210c6dd6c83c703c273416f252e33370 /test/cmd
parent8c50c8fe57aa6be28d211a63036529f69a13f108 (diff)
cmd/bdinfo: LMB and device-tree are not related
The usage of the LMB library and the device-tree source are not related. Remove the dependency in the bdinfo output and adjust the unit test. Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/bdinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 2b4866a172e..3005c85d4a0 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -191,11 +191,11 @@ static int bdinfo_test_all(struct unit_test_state *uts)
ut_assertok(test_num_l(uts, "multi_dtb_fit", (ulong)gd->multi_dtb_fit));
#endif
- if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) {
+ if (IS_ENABLED(CONFIG_LMB))
ut_assertok(lmb_test_dump_all(uts));
- if (IS_ENABLED(CONFIG_OF_REAL))
- ut_assert_nextline("devicetree = %s", fdtdec_get_srcname());
- }
+
+ if (IS_ENABLED(CONFIG_OF_REAL) && gd->fdt_blob)
+ ut_assert_nextline("devicetree = %s", fdtdec_get_srcname());
if (IS_ENABLED(CONFIG_DM_SERIAL)) {
struct serial_device_info info;