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 scripts: check_init_priorities: use the Zephyr executable file 2023-09-20 20:24:46 +01:00
checkpatch kernel/timeout: introduce the timepoint API 2023-07-25 09:12:26 +02:00
ci doc: bindesc: Add documentation for binary descriptors 2023-09-28 07:39:09 -04:00
coccinelle scripts: coccinelle: Remove strtok_r symbol from checklist 2023-08-23 16:05:08 +01:00
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 footprint: ci: ehl_crb board has been renamed. 2023-08-28 10:28:18 +02:00
generate_usb_vif USB-C: genVIF: Cleanup and add support to pick static data from input 2023-05-26 13:54:43 -04:00
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 native simulator: Get latest from upstream 2023-09-18 10:42:38 +01:00
net
pylib scripts: domains: Tighten up initialization 2023-10-04 18:04:18 +02:00
pylint/checkers
release scripts: drop list_issues.py 2023-07-25 16:45:15 +02:00
schemas twister: support filtering by vendor 2023-09-22 09:29:36 +02:00
support
tests twister: Fix quarantine performance issue 2023-10-04 14:49:38 +01:00
tracing
utils scripts: Update ntc-thermistor table generator 2023-09-19 09:28:50 -05:00
west_commands west: runners: nrf: Document why the network core is recovered first 2023-10-03 15:11:55 +01:00
.gitignore
checkpatch.pl scripts: Exclude spelling.txt from spelling check 2023-08-04 21:18:43 +00:00
checkstack.pl
coccicheck
dump_bugs_pickle.py
gen_gcov_files.py
get_maintainer.py scripts: get_maintainer: Fix glob pattern directory match error logic 2023-04-26 00:29:25 +09:00
github_helpers.py
list_boards.py
make_bugs_pickle.py
requirements-base.txt west.cmake: make MIN_WEST_VERSION catch up with requirements-base.txt 2023-05-22 10:17:11 +02:00
requirements-build-test.txt
requirements-compliance.txt
requirements-extras.txt scripts: Update CFB font generator 2023-09-13 14:40:00 -07:00
requirements-run-test.txt twister: Use natural sort when generating hardware map 2023-06-17 07:54:46 -04:00
requirements.txt doc: move requirements to doc/ 2023-07-12 09:13:49 -04:00
series-push-hook.sh
set_assignees.py scripts: set_assignee: set reviewers for modules 2023-09-27 15:27:19 +02:00
snippets.py twister: Add support for required snippets 2023-09-06 16:40:53 +02:00
spelling.txt doc: Fix a typo 2023-08-04 21:18:43 +00:00
tags.sh
twister twister: Add support for required snippets 2023-09-06 16:40:53 +02:00
valgrind.supp valgrind: Update suppression file to align with updated POSIX arch 2023-07-05 07:01:19 -04:00
west-commands.yml west: commands: Add bindesc command 2023-09-28 07:39:09 -04:00
zephyr_module.py scripts: zephyr_module: Tolerate symlinks 2023-08-11 12:01:21 +00:00