mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-30 01:25:23 +00:00
As a slightly hairy but important optimization inherited from the old scripts, the binding loading code only looks at binding files whose raw text contains one of the compatible strings from the devicetree. For such files, a second pass parses the file as YAML and tries to extract a compatible string, and skips the file if it fails (e.g. due to spurious text matches in 'include'd binding fragments). Until now, the binding would always get fully loaded (have 'include'd files merged in, checks run, etc.) if the second pass managed to extract a compatible. Do slightly better by only fully loading the binding if the extracted compatible from the second pass appears in the devicetree. This gets rid of unnecessary binding loading in rare cases. Discovered by test-bindings/deprecated.yaml getting loaded even when everything that referenced it in test.dts was commented out, because it happened to mention 'child-binding' in a comment. Also add a check for YAML errors in the second pass, to be slightly more robust. Print a warning if a file that isn't valid YAML is found. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
---|---|---|
.. | ||
checkpatch | ||
ci | ||
coccinelle | ||
dts | ||
footprint | ||
gitlint | ||
kconfig | ||
sanity_chk | ||
support | ||
west_commands | ||
.gitignore | ||
checkpatch.pl | ||
checkstack.pl | ||
coccicheck | ||
dir_is_writeable.py | ||
elf_helper.py | ||
file2hex.py | ||
filter-known-issues.py | ||
gen_app_partitions.py | ||
gen_cfb_font_header.py | ||
gen_gcov_files.py | ||
gen_kobject_list.py | ||
gen_offset_header.py | ||
gen_priv_stacks.py | ||
gen_relocate_app.py | ||
gen_syscall_header.py | ||
gen_syscalls.py | ||
mergehex.py | ||
parse_syscalls.py | ||
process_gperf.py | ||
requirements.txt | ||
sanitycheck | ||
series-push-hook.sh | ||
spelling.txt | ||
subfolder_list.py | ||
tags.sh | ||
valgrind.supp | ||
waitpid | ||
west-commands.yml | ||
zephyr_module.py |