mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
sandbox: fix spl_board_init
sandbox_spl_defconfig with CONFIG_SPL_UNIT_TEST=n fails to build.
in function `spl_board_init':
arch/sandbox/cpu/spl.c:134:(.text.spl_board_init+0x4a):
undefined reference to `ut_run_list'
Add the missing configuration check.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Simon Glass
parent
e824d0d0c2
commit
3cce6fcea7
@@ -126,6 +126,9 @@ void spl_board_init(void)
|
||||
{
|
||||
struct sandbox_state *state = state_get_current();
|
||||
|
||||
if (!CONFIG_IS_ENABLED(UNIT_TEST))
|
||||
return;
|
||||
|
||||
if (state->run_unittests) {
|
||||
struct unit_test *tests = UNIT_TEST_ALL_START();
|
||||
const int count = UNIT_TEST_ALL_COUNT();
|
||||
|
||||
Reference in New Issue
Block a user