mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-12-24 10:52:13 +01:00
test: fdt_test_apply requires CONFIG_OF_LIBFDT_OVERLAY
The `fdt apply` sub-command is only available if CONFIG_OF_LIBFDT_OVERLAY is enabled. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
2bc0715b55
commit
094f71064b
@ -1319,6 +1319,9 @@ static int fdt_test_apply(struct unit_test_state *uts)
|
||||
char fdt[8192], fdto[8192];
|
||||
ulong addr, addro;
|
||||
|
||||
if (!IS_ENABLED(CONFIG_OF_LIBFDT_OVERLAY))
|
||||
return -EAGAIN;
|
||||
|
||||
/* Create base DT with __symbols__ node */
|
||||
ut_assertok(fdt_create(fdt, sizeof(fdt)));
|
||||
ut_assertok(fdt_finish_reservemap(fdt));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user