From 424994c48f2bea5c9abd84e0a7b30e698484b8b9 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 15 Mar 2021 17:25:32 +1300 Subject: 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 Signed-off-by: Simon Glass --- test/dm/of_platdata.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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)); -- cgit v1.1