summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-11-09 11:10:02 +0100
committerHeinrich Schuchardt <[email protected]>2025-11-21 19:18:22 +0100
commit094f71064bf22077bbde59460ec92ce3f0744b81 (patch)
treef439d1d1c4486ed10a444a6c372083c54a03603c /test/cmd
parent2bc0715b558fa1ac5c88b11e250740b16a905837 (diff)
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 <[email protected]>
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/fdt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/cmd/fdt.c b/test/cmd/fdt.c
index 96a8488e172..a36f2dcdda8 100644
--- a/test/cmd/fdt.c
+++ b/test/cmd/fdt.c
@@ -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));