zephyr/scripts
Grzegorz Swiderski f82e2ef043 scripts: domains: Tighten up initialization
Do extra checks to reject inconsistent `domains.yaml` contents early:

   default: app
   build_dir: /path/to/build
   domains:
     - name: image_1
       build_dir: /path/to/build/image_1
     - name: image_2
       build_dir: /path/to/build/image_2
   flash_order:
     - image_1
     - image_2
     - unknown

This example lists "image_1" and "image_2" as known domains, but an
entry for the default "app" is missing, which should never be allowed.
A valid `domains.yaml` file shall also not contain extra domains under
`flash_order`, such as "unknown", which doesn't appear under `domains`.
Either of these cases can now be caught while initializing an instance
of the Domains class.

It follows that a valid `domains.yaml` file must always contain a list
of domains with at least one entry - the default image. Since `default`
is a required key in the YAML schema, `domains` should be required too.
Thus, empty lists will be rejected by pykwalify, so the questionable
warning for "no domains defined; this probably won't work" can be axed.

Fixes #63166

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2023-10-04 18:04:18 +02:00
..
build
checkpatch
ci doc: bindesc: Add documentation for binary descriptors 2023-09-28 07:39:09 -04:00
coccinelle
coredump gdbstub: xtensa: add support for dc233c core 2023-09-27 19:30:15 -05:00
dts edtlib: pinctrl properties are required in the binding 2023-09-27 13:58:28 +02:00
footprint
generate_usb_vif
gitlint gitlint: exclude long line with co-authored-by 2023-09-27 06:20:16 -04:00
kconfig net: ppp: Mark the PPP L2 as non-experimental 2023-09-29 10:33:50 +02:00
logging/dictionary scripts/log_parser: Handle signed and unsigned char length modifier 2023-09-25 19:41:50 +02:00
native_simulator
net
pylib scripts: domains: Tighten up initialization 2023-10-04 18:04:18 +02:00
pylint/checkers
release
schemas
support
tests twister: Fix quarantine performance issue 2023-10-04 14:49:38 +01:00
tracing
utils
west_commands west: runners: nrf: Document why the network core is recovered first 2023-10-03 15:11:55 +01:00
.gitignore
checkpatch.pl
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py
github_helpers.py
list_boards.py
make_bugs_pickle.py
requirements-base.txt
requirements-build-test.txt
requirements-compliance.txt
requirements-extras.txt
requirements-run-test.txt
requirements.txt
series-push-hook.sh
set_assignees.py scripts: set_assignee: set reviewers for modules 2023-09-27 15:27:19 +02:00
snippets.py
spelling.txt
tags.sh
twister
valgrind.supp
west-commands.yml west: commands: Add bindesc command 2023-09-28 07:39:09 -04:00
zephyr_module.py