zephyr/scripts/dts
Ulf Magnusson 2845d8f404 scripts: edtlib: Make order irrelevant when including multiple files
When foo.yaml set some property 'required: true' and bar.yaml set the
same property 'required: false', the check for changing
'required: false' to 'required: true' would raise an error for

    include: [bar.yaml, foo.yaml]

(with that particular order due to implementation details).

The order files are included in shouldn't matter. To fix it, change the
logic so that 'required' values are ORed together between included files
(so that 'required: true' is always respected), and remove the
'required' true-to-false check when merging included files.

Keep the true-to-false check when merging the (merged) included files
into the main binding (the binding with the 'include:' in it). This
might give a good organization, and the old scripts do it too.

Piggyback two fixes/cleanups:

 - 'compatible' should be allowed to appear in included files

 - No need to allow an 'inherits' key in _check_binding(), because
   it has been removed before then, when merging bindings

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-11 07:50:30 -05:00
..
extract scripts: dts: Fix generation of single-value phandle/value array 2019-09-09 14:15:44 -05:00
test-bindings scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
test-bindings-2 scripts: dts: Simplify and improve 'compatible' matching 2019-09-07 10:25:02 -05:00
devicetree.py scripts: dts: devicetree.py: Fix pylint warning for iffy \w escape 2019-09-07 10:25:02 -05:00
dtlib.py scripts: dtlib: Suppress _init_tokens() pylint warning 2019-09-07 10:25:02 -05:00
edtlib.py scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
extract_dts_includes.py scripts: dts: Fix wrong filename in 'include:' code in old scripts 2019-09-10 11:34:03 -05:00
gen_defines.py scripts/dts: Generate IRQ values for multi-level IRQs 2019-09-10 07:34:57 -05:00
test-multidir.dts scripts: dts: Add test for multiple binding directories 2019-08-03 14:17:49 -04:00
test.dts scripts: edtlib: Make order irrelevant when including multiple files 2019-09-11 07:50:30 -05:00
testdtlib.py scripts: dtlib: Add test for untested /memreserve/ error 2019-09-07 10:25:02 -05:00
testedtlib.py dts: edtlib: Support giving missing properties a default value 2019-09-09 08:47:49 -05:00