zephyr/scripts/west_commands
Andy Ross 2906d1aa51 soc/intel_adsp: Build bootloader with Zephyr
The presence of a separate build for the bootloader code has always
been a wart with this platform.  Sharing of code between the two has
required great care. We've had bugs with mismatched include paths,
macro definitions and compiler flags, etc...  And of course it's not
possible for one to see the other; in theory we'd like the ability to
call back into IMR code after startup, to use the space for temporary
storage, etc...

So let's finally do it.  This really isn't that complicated when you
see it in isolation:

+ Move the module manifest metadata into an "rimage_modules.c", and
  put them in their own NOLOAD section where we can grab them later
  with objcopy.

+ Make a new "imr" memory region in the main linker and just paste the
  bootloader linkage (which is now using its own specific sections) in
  there.

+ After zephyr.elf is built and cache-remapped, we can extract the imr
  sections and the appropriate manifest for the bootloader rimage
  module, and then do the converse by excluding them for the main
  image module.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-12-14 18:43:05 -06:00
..
completion
runners scripts: runners: Add west flash command for B91 platform 2021-12-06 07:28:38 -05:00
tests scripts: runners: Add west flash command for B91 platform 2021-12-06 07:28:38 -05:00
zspdx west: spdx: Fix --init for Windows builds 2021-10-18 09:47:30 -04:00
boards.py scripts: west: boards: support listing out-of-tree boards 2021-07-16 07:17:35 -04:00
build_helpers.py
build.py west: build.py: resolve symlinks in cached source directory check 2021-11-10 08:27:16 -05:00
completion.py
debug.py
export.py
flash.py
mypy.ini
README.txt
run_common.py scripts: runners: openocd: Enable thread awareness 2021-08-27 06:44:45 -04:00
run_tests.py
sign.py soc/intel_adsp: Build bootloader with Zephyr 2021-12-14 18:43:05 -06:00
spdx.py doc: add docs for west spdx 2021-06-01 07:26:33 -05:00
zcmake.py scripts: zcmake: fix for prerelease cmake versions 2021-02-09 09:14:37 -05:00
zephyr_ext_common.py scripts: west_commands: Remove no longer needed load_dot_config(path) 2021-04-08 16:38:28 +02:00

This directory contains implementations for west commands which are
tightly coupled to the zephyr tree. This includes the build, flash,
and debug commands.

Before adding more here, consider whether you might want to put new
extensions in upstream west. For example, any commands which operate
on the multi-repo need to be in upstream west, not here. Try to limit
what goes in here to Zephyr-specific features.

When extending this code, please keep the unit tests (in tests/) up to
date. The mypy static type checker is also run on the runners package.

To run these tests locally on Windows, run:

   py -3 run_tests.py

On macOS and Linux:

   ./run_tests.py

Note that these tests are run as part of Zephyr's CI when submitting
an upstream pull request, and pull requests which break the tests
cannot be merged.

Thanks!