Skip to content

Commit

Permalink
xtensa-build-zephyr.py: indent new install_platform() function
Browse files Browse the repository at this point in the history
Pure whitespace change.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and lgirdwood committed Nov 30, 2022
1 parent 4f98441 commit 94f93c2
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions scripts/xtensa-build-zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,28 +657,28 @@ def build_platforms():
def install_platform(platform, sof_platform_output_dir):

# Keep in sync with caller
platform_build_dir_name = f"build-{platform}"
platform_build_dir_name = f"build-{platform}"

# Install to STAGING_DIR
abs_build_dir = pathlib.Path(west_top) / platform_build_dir_name / "zephyr"
# Install to STAGING_DIR
abs_build_dir = pathlib.Path(west_top) / platform_build_dir_name / "zephyr"

if args.fw_naming == "AVS":
# Disguise ourselves for local testing purposes
output_fwname="dsp_basefw.bin"
else:
# Regular name
output_fwname="".join(["sof-", platform, ".ri"])
if args.fw_naming == "AVS":
# Disguise ourselves for local testing purposes
output_fwname = "dsp_basefw.bin"
else:
# Regular name
output_fwname = "".join(["sof-", platform, ".ri"])

shutil.copy2(abs_build_dir / "zephyr.ri", abs_build_dir / output_fwname)
fw_file_to_copy = abs_build_dir / output_fwname
shutil.copy2(abs_build_dir / "zephyr.ri", abs_build_dir / output_fwname)
fw_file_to_copy = abs_build_dir / output_fwname

install_key_dir = sof_platform_output_dir
if args.key_type_subdir != "none":
install_key_dir = install_key_dir / args.key_type_subdir
install_key_dir = sof_platform_output_dir
if args.key_type_subdir != "none":
install_key_dir = install_key_dir / args.key_type_subdir

os.makedirs(install_key_dir, exist_ok=True)
# looses file owner and group - file is commonly accessible
shutil.copy2(fw_file_to_copy, install_key_dir)
os.makedirs(install_key_dir, exist_ok=True)
# looses file owner and group - file is commonly accessible
shutil.copy2(fw_file_to_copy, install_key_dir)


# As of October 2022, sof_ri_info.py expects .ri files to include a CSE manifest / signature.
Expand Down

0 comments on commit 94f93c2

Please sign in to comment.