mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-03 04:35:13 +00:00
In the 'normal' case of a property whose definition is taken from a binding YAML file, a fair number (three at present) of the attributes available on Property objects are directly taken from the corresponding PropertySpec object. Refactor the internals of how a Property gets initialized so that it has a direct reference to its PropertySpec, and make those attributes properties which just delegate to the PropertySpec (which in turn just delegate to the binding). Additionally, expose the PropertySpec directly. This will make it easier to extend the Property class with additional attributes that normally come from the PropertySpec without having to touch all the locations where Property.__init__ is called. In the case of the 'default' properties, we handle this by dummying out some PropertySpec objects. These dummy PropertySpecs in turn require a dummy Binding. This change has the advantage that it improves the degree to which these defaults are checked, e.g. it makes sure that 'status' is one of the permitted values. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
---|---|---|
.. | ||
checkpatch | ||
ci | ||
coccinelle | ||
coredump | ||
dts | ||
footprint | ||
gitlint | ||
kconfig | ||
net | ||
pylib/twister | ||
release | ||
schemas/twister | ||
support | ||
tests | ||
tracing | ||
west_commands | ||
.gitignore | ||
checkpatch.pl | ||
checkstack.pl | ||
coccicheck | ||
dir_is_writeable.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_relocate_app.py | ||
gen_syscalls.py | ||
get_maintainer.py | ||
mergehex.py | ||
parse_syscalls.py | ||
process_gperf.py | ||
requirements-base.txt | ||
requirements-build-test.txt | ||
requirements-compliance.txt | ||
requirements-doc.txt | ||
requirements-extras.txt | ||
requirements-run-test.txt | ||
requirements.txt | ||
sanitycheck | ||
series-push-hook.sh | ||
spelling.txt | ||
subfolder_list.py | ||
tags.sh | ||
twister | ||
user_wordsize.py | ||
valgrind.supp | ||
west-commands.yml | ||
zephyr_module.py |