Skip to content

Commit

Permalink
scripts: xtensa-build_zephyr: Copy loadable modules to staging directory
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Warecki <[email protected]>
  • Loading branch information
softwarecki committed Sep 18, 2023
1 parent 3a06939 commit bf7e8ae
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/xtensa-build-zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import gzip
import dataclasses
import concurrent.futures as concurrent
import re

from west import configuration as west_config

Expand Down Expand Up @@ -843,6 +844,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
Expand Down

0 comments on commit bf7e8ae

Please sign in to comment.