aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:32 +1300
committerSimon Glass <sjg@chromium.org>2021-03-26 17:03:09 +1300
commit424994c48f2bea5c9abd84e0a7b30e698484b8b9 (patch)
tree869815812dd097007ce91fe6ec2810cdb9494e0d /test
parent3a825d3fa7122a92020b9a85a8bad0b27d55e6a7 (diff)
downloadu-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.zip
u-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.tar.gz
u-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.tar.bz2
sandbox: Create a new sandbox_noinst build
Move sandbox_spl over to use OF_PLATDATA_INST. Create a new board to test the case when this is not enabled, since we will be keeping that code around for several months and want to avoid regressions. Skip the dm_test_of_plat_dev() test since driver info is not available for OF_PLATDATA_INST. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/of_platdata.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dm/of_platdata.c b/test/dm/of_platdata.c
index 7cbb116..f2b45b9 100644
--- a/test/dm/of_platdata.c
+++ b/test/dm/of_platdata.c
@@ -146,6 +146,10 @@ static int dm_test_of_plat_dev(struct unit_test_state *uts)
bool found[n_ents];
uint i;
+ /* Skip this test if there is no platform data */
+ if (CONFIG_IS_ENABLED(OF_PLATDATA_INST))
+ return 0;
+
/* Record the indexes that are found */
memset(found, '\0', sizeof(found));
ut_assertok(find_driver_info(uts, gd->dm_root, found));