zephyr/scripts/dts
Martí Bolívar ffc03124c1 devicetree: make DT_PROP_HAS_IDX expand to 0 or 1
We have a use case for checking the results of a DT_PROP_HAS_IDX()
call with COND_CODE_1(). That won't work because its expansion is an
integer comparison; COND_CODE_1() expects a literal 1 or 0.

Adjust the macro implementation so it expands to a literal 1 or 0.
Make this work even when the index argument needs an expansion while
we're at it.

Fixes: #29833
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-11-15 08:44:56 -06:00
..
test-bindings scripts: testedtlib: add more child-binding tests 2020-11-03 14:58:51 -06:00
test-bindings-2 scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
dtlib.py scripts: dts: convert test suites to pytest 2020-10-02 11:51:15 +02:00
edtlib.py scripts: edtlib: child binding compatibles match parents 2020-11-03 14:58:51 -06:00
gen_defines.py devicetree: make DT_PROP_HAS_IDX expand to 0 or 1 2020-11-15 08:44:56 -06:00
grutils.py scripts: grutils: tweak sort keys to group siblings 2020-02-04 07:28:45 -06:00
test-multidir.dts scripts: dts: Add test for multiple binding directories 2019-08-03 14:17:49 -04:00
test.dts scripts: edtlib: Add support for 'deprecated' 2020-10-29 11:06:32 -05:00
testdtlib.py scripts: dts: convert test suites to pytest 2020-10-02 11:51:15 +02:00
testedtlib.py scripts: edtlib: child binding compatibles match parents 2020-11-03 14:58:51 -06:00