diff --git a/scripts/xtensa-build-zephyr.py b/scripts/xtensa-build-zephyr.py index 8a2b3532708a..80f2c712e5a4 100755 --- a/scripts/xtensa-build-zephyr.py +++ b/scripts/xtensa-build-zephyr.py @@ -39,6 +39,7 @@ import gzip import dataclasses import concurrent.futures as concurrent +import re from west import configuration as west_config @@ -848,6 +849,13 @@ def install_platform(platform, sof_platform_output_dir, platf_build_environ): symlink_or_copy(install_key_dir, output_fwname, f"sof-{p_alias}.ri") + # Copy loadable modules + for file in os.listdir(abs_build_dir): + if (os.path.isfile(abs_build_dir / file) and re.fullmatch(".+\.ri", file) and + not re.fullmatch(".*zephyr\.ri", file)): + shutil.copy2(abs_build_dir / file, + install_key_dir / "".join(["sof-", platform, "-lib-", file])) + # sof-info/ directory @dataclasses.dataclass