zephyr/scripts/dts
Ulf Magnusson 0e23994d23 scripts: edtlib: Avoid modifying the global yaml.(C)Loader
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>
2019-11-12 17:57:50 -06:00
..
extract
test-bindings
test-bindings-2
devicetree.py
dtlib.py
edtlib.py scripts: edtlib: Avoid modifying the global yaml.(C)Loader 2019-11-12 17:57:50 -06:00
extract_dts_includes.py
gen_defines.py dts: edtlib: Turn edt.required_by()/depends_on() into Node attributes 2019-11-06 17:33:59 -08:00
grutils.py
test-multidir.dts
test.dts
testdtlib.py
testedtlib.py dts: edtlib: Turn edt.required_by()/depends_on() into Node attributes 2019-11-06 17:33:59 -08:00