Skip to content

Commit f2a31fa

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 <liam.r.girdwood@linux.intel.com>
1 parent 2f65c58 commit f2a31fa

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
@@ -1170,7 +1170,7 @@ def install_platform(platform, sof_output_dir, platf_build_environ, platform_wco
11701170

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

11761176
if args.deployable_build and platform_configs[platform].ipc4:
@@ -1324,7 +1324,7 @@ def gzip_compress(fname, gzdst=None):
13241324
RI_INFO_UNSUPPORTED += ['imx8', 'imx8x', 'imx8m', 'imx8m_cm7', 'imx8ulp', 'imx95']
13251325
RI_INFO_UNSUPPORTED += ['rn', 'acp_6_0']
13261326
RI_INFO_UNSUPPORTED += ['mt8186', 'mt8188', 'mt8195', 'mt8196', 'mt8365']
1327-
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu']
1327+
RI_INFO_UNSUPPORTED += ['qemu_xtensa', 'qemu_xtensa_mmu', 'native_sim']
13281328

13291329

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

0 commit comments

Comments
 (0)