Skip to content

Commit 3ed3179

Browse files
committed
zephyr: native_sim: run boot tests at boot if STANDALONE enabled
Only run sof_run_boot_tests() at boot for QEMU or native_sim (STANDALONE) targets. Other platforms trigger via IPC.
1 parent 6109a1c commit 3ed3179

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

app/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void sys_arch_reboot(int type)
8989
void test_main(void)
9090
{
9191
sof_app_main();
92-
#if CONFIG_SOF_BOOT_TEST && defined(QEMU_BOOT_TESTS)
92+
#if CONFIG_SOF_BOOT_TEST && (defined(QEMU_BOOT_TESTS) || CONFIG_SOF_BOOT_TEST_STANDALONE)
9393
sof_run_boot_tests();
9494
qemu_xtensa_exit(0);
9595
#endif

scripts/xtensa-build-zephyr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ def install_platform(platform, sof_output_dir, platf_build_environ, platform_wco
11991199

12001200
os.makedirs(install_key_dir, exist_ok=True)
12011201
# looses file owner and group - file is commonly accessible, dont install qemu.
1202-
if platform not in ("qemu_xtensa", "qemu_xtensa_mmu"):
1202+
if platform not in ("qemu_xtensa", "qemu_xtensa_mmu", "native_sim"):
12031203
shutil.copy2(abs_build_dir / "zephyr.ri", install_key_dir / output_fwname)
12041204

12051205
if args.deployable_build and platform_configs[platform].ipc4:
@@ -1353,7 +1353,7 @@ def gzip_compress(fname, gzdst=None):
13531353
RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8m_cm7', 'imx8ulp', 'imx95']
13541354
RI_INFO_UNSUPPORTED += ['rn', 'acp_6_0', 'acp_7_0', 'acp_7_x']
13551355
RI_INFO_UNSUPPORTED += ['mt8186', 'mt8188', 'mt8195', 'mt8196', 'mt8365']
1356-
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu']
1356+
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu', 'native_sim']
13571357

13581358

13591359
# For temporary workarounds. Unlike _UNSUPPORTED above, the platforms below will print a warning.

0 commit comments

Comments
 (0)