diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 17:25:32 +1300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-26 17:03:09 +1300 |
commit | 424994c48f2bea5c9abd84e0a7b30e698484b8b9 (patch) | |
tree | 869815812dd097007ce91fe6ec2810cdb9494e0d /test/dm | |
parent | 3a825d3fa7122a92020b9a85a8bad0b27d55e6a7 (diff) | |
download | u-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.tar.gz u-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.tar.xz u-boot-424994c48f2bea5c9abd84e0a7b30e698484b8b9.zip |
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/dm')
-rw-r--r-- | test/dm/of_platdata.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dm/of_platdata.c b/test/dm/of_platdata.c index 7cbb1161ed..f2b45b9a86 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)); |