test: fdt: Make fdt-overlay test depend on overlays
This test requires FDT-overlay support so skip it if this is not present. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1318,6 +1318,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));
|
||||
|
||||
Reference in New Issue
Block a user