mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 23:51:56 +00:00
edtlib is a library, and modifying yaml.(C)Loader directly interferes with any binding loading in edtlib clients. To avoid that, add a custom loader for bindings. Internally, PyYAML does this, which is why defining a separate class works: @classmethod def add_constructor(cls, tag, constructor): if not 'yaml_constructors' in cls.__dict__: cls.yaml_constructors = cls.yaml_constructors.copy() cls.yaml_constructors[tag] = constructor Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no> |
||
---|---|---|
.. | ||
extract | ||
test-bindings | ||
test-bindings-2 | ||
devicetree.py | ||
dtlib.py | ||
edtlib.py | ||
extract_dts_includes.py | ||
gen_defines.py | ||
grutils.py | ||
test-multidir.dts | ||
test.dts | ||
testdtlib.py | ||
testedtlib.py |