Skip to content

Conversation

@aborisovich
Copy link
Contributor

@aborisovich aborisovich commented May 15, 2023

Path to rimage and private key had been failing to be used while provided in form of relative path using dots.
Changed how rimage is discovered in the scripts:

  • rimage is searched for using find_program with paths and hints provided
  • changed RIMAGE_COMMAND to RIMAGE_INSTALL_DIR so end-user may specify directory where rimage executable is placed. It will be used by find_program.
  • If RIMAGE_INSTALL_DIR is not provided, find_program will try to search for rimage in the directory where SOF project installs it (west_dir/build-rimage).
  • Updated README.md with instructions on how to build:
    • simplified configure and build commands
    • updated explanations on how to use RIMAGE_INSTALL_DIR
    • added information on how to use toolchain file
  • private key path was parsed incorrectly when provided windows path style using backslashes. It was passed to rimage as is resulting in the invalid path as the last slash was made by rimage as forward slash. Added path normalization what fixed the problem.

This addresses issues I've described during code review in #7354 (review) .

Signed-off-by: Andrey Borisovich andrey.borisovich@intel.com

Path to rimage and private key had been failing to be used while
provided in form of relative path using dots.
Changed how rimage is discovered in the scripts:
* rimage is searched for using find_program with paths and hints provided
* changed RIMAGE_COMMAND to RIMAGE_INSTALL_DIR so end-user may specify
directory where rimage executable is placed. It will be used by
find_program.
* If RIMAGE_INSTALL_DIR is not provided, find_program will try to
search for rimage in the directory where SOF project installs it
(west_dir/build-rimage).
* Updated README.md with instructions on how to build:
  - simplified configure and build commands
  - updated explanations on how to use RIMAGE_INSTALL_DIR
  - added information on how to use toolchain file
* private key path was parsed incorrectly when provided windows path
style using backslashes. It was passed to rimage as is resulting in the
invalid path as the last slash was made by rimage as forward slash.
Added path normalization what fixed the problem.

Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
@aborisovich aborisovich requested a review from marc-hb May 15, 2023 09:45
@marc-hb
Copy link
Collaborator

marc-hb commented May 15, 2023

LDMK is new to me so I unfortunately don't know enough to review this.

I've been working on removing the explicit west sign invocation from xtensa-build-zephyr.py and let west build do it instead, still a draft PR but already tested OK, @aborisovich please take a quick look: #7595

I hope this is independent from LMDK and does not conflict in any way?

The first step is #7546 which is NOT a draft, ready to review thanks!

@aborisovich
Copy link
Contributor Author

LDMK is new to me so I unfortunately don't know enough to review this.

I've been working on removing the explicit west sign invocation from xtensa-build-zephyr.py and let west build do it instead, still a draft PR tested OK, @aborisovich please take a quick look: #7595

I hope this is independent from LMDK and does not conflict in any way?

The first step is #7546 which is NOT a draft, ready to review thanks!

Currently LMDK is completely separate instance in terms of a build system.
We have no dependencies to west, zephyr or xtensa-build-zephyr.py script.
I'll have a look in a moment.

@kv2019i kv2019i merged commit a675edf into thesofproject:main May 16, 2023
@aborisovich aborisovich deleted the lmdk_dummy_module_upgrades branch June 11, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants