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 <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
#if CONFIG_IS_ENABLED(MULTI_DTB_FIT)
bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit);
#endif
- if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) {
+ if (IS_ENABLED(CONFIG_LMB))
lmb_dump_all_force();
- if (IS_ENABLED(CONFIG_OF_REAL))
- printf("devicetree = %s\n", fdtdec_get_srcname());
- }
+
+ if (IS_ENABLED(CONFIG_OF_REAL) && gd->fdt_blob)
+ printf("devicetree = %s\n", fdtdec_get_srcname());
+
print_serial(gd->cur_serial_dev);
if (IS_ENABLED(CONFIG_CMD_BDINFO_EXTRA)) {
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;