mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-06 13:21:56 +00:00
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> |
||
---|---|---|
.. | ||
build | ||
checkpatch | ||
ci | ||
coccinelle | ||
coredump | ||
dts | ||
footprint | ||
generate_usb_vif | ||
gitlint | ||
kconfig | ||
logging/dictionary | ||
native_simulator | ||
net | ||
pylib | ||
pylint/checkers | ||
release | ||
schemas | ||
support | ||
tests | ||
tracing | ||
utils | ||
west_commands | ||
.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 | ||
snippets.py | ||
spelling.txt | ||
tags.sh | ||
twister | ||
valgrind.supp | ||
west-commands.yml | ||
zephyr_module.py |