zephyr/scripts/west_commands
Jordan Yates 8e4107f9be scripts: ensure intended path for edtlib imports
When updating `sys.path` to allow importing the pickled edtlib instance,
add the path to the front of `sys.path`, not the end. This ensures that
the `devicetree.edtlib` module that is imported is the one relative
to the files being run, not some other version which may exist on the
path.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2022-05-13 10:09:45 -07:00
..
completion
runners scripts: west_commands: runners: add runner for Cyclone V SoC FPGA DK 2022-05-10 13:29:47 -04:00
tests scripts: west_commands: runners: add runner for Cyclone V SoC FPGA DK 2022-05-10 13:29:47 -04:00
zspdx west: spdx: Exclude files not present after build 2022-03-24 14:54:20 +01:00
boards.py
build_helpers.py
build.py scripts: add board revision help text for west build 2022-02-24 13:44:01 -08:00
completion.py
debug.py
export.py
flash.py
mypy.ini
README.txt
run_common.py scripts: ensure intended path for edtlib imports 2022-05-13 10:09:45 -07:00
run_tests.py
sign.py scripts: ensure intended path for edtlib imports 2022-05-13 10:09:45 -07:00
spdx.py
zcmake.py
zephyr_ext_common.py

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!