Skip to content

Commit c41c4a1

Browse files
committed
scripts: create symlink for community base FW binary
Currently the symlink for sof-ipc4/platform/sof-basefw.ri is not created. Fix this so that deployable builds can be copied directly to target from staging directory. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent c67cdc7 commit c41c4a1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/xtensa-build-zephyr.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,16 @@ def install_platform(platform, sof_output_dir, platf_build_environ, platform_wco
11591159

11601160
os.makedirs(alias_key_dir, exist_ok=True)
11611161
symlink_or_copy(install_key_dir, output_fwname, alias_key_dir, alias_fwname)
1162+
1163+
# Also create the "plain" sof-<platform>.ri symlink in the
1164+
# sof/<vendor>/sof-ipc4/<platform> directory, so that when
1165+
# copying the entire sof/<vendor>/sof-ipc4 directory to
1166+
# the target, all platforms are there.
1167+
alias_vendor_dir = pathlib.Path(sof_output_dir, p_alias).parent
1168+
alias_ipc4_dir = pathlib.Path(alias_vendor_dir, p_alias)
1169+
alias_install_key_dir = alias_ipc4_dir / "community"
1170+
os.makedirs(alias_ipc4_dir, exist_ok=True)
1171+
symlink_or_copy(alias_install_key_dir, alias_fwname, alias_ipc4_dir, alias_fwname)
11621172
else:
11631173
# non deployable builds and IPC3 deployable builds are using the same symlink scheme
11641174
# The production key is usually different

0 commit comments

Comments
 (0)