Skip to content

Commit c28d100

Browse files
committed
scripts: xtensa-build-zephyr: Support native_sim architecture
The xtensa-build-zephyr.py script attempts to parse and copy the zephyr.ri (rimage) file for reproducible checksums and installation. Since the native_sim platform does not produce an rimage file, building it with this script results in a FileNotFoundError. Adding native_sim to the list of exceptions resolves the build failure. Signed-off-by: Liam Girdwood <[email protected]>
1 parent a6e0a25 commit c28d100

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/xtensa-build-zephyr.py

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

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

11631163
if args.deployable_build and platform_configs[platform].ipc4:
@@ -1311,7 +1311,7 @@ def gzip_compress(fname, gzdst=None):
13111311
RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8ulp', 'imx95']
13121312
RI_INFO_UNSUPPORTED += ['rn', 'acp_6_0']
13131313
RI_INFO_UNSUPPORTED += ['mt8186', 'mt8188', 'mt8195', 'mt8196', 'mt8365']
1314-
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu']
1314+
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu', 'native_sim']
13151315

13161316

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

0 commit comments

Comments
 (0)