zephyr/scripts/dts
Martí Bolívar e4a761cffe devicetree: add migration guide documentation and tests
Add test cases that verify various bits and pieces of the legacy
devicetree macros match the new APIs.

Writing these test cases without giving rise to deprecated macro
warnings which might break people's CI if they build with -Werror
requires turning off the __WARN() generation in
devicetree_legacy_unfixed.h. The entire file is deprecated at this
point and must be explicitly enabled with an opt-in Kconfig option, so
there isn't any harm in doing this.

Nevertheless, take a minimally invasive approach to avoiding __WARN()
generation in gen_legacy_defines.py, to avoid the possibility of
breakage. This code is basically frozen anyway, so hacks like this
won't cause maintainability problems since it isn't being actively
maintained.

Use the new tests as fodder for a migration guide from the old API in
the documentation.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-28 22:12:38 +02:00
..
test-bindings dts: edtlib: Add 'type: path' for path references 2020-01-08 08:02:00 -06:00
test-bindings-2 scripts: edtlib.py: Deprecate 'title:' 2019-12-18 11:52:45 +01:00
dtlib.py scripts: dtlib/edtlib: Make output consistent on Python 3.5- 2019-11-12 17:57:50 -06:00
edtlib.py doc: some devicetree fixes and updates 2020-05-26 18:12:00 +02:00
gen_defines.py devicetree: Add support for fixed-partitions 2020-05-13 21:22:53 +02:00
gen_legacy_defines.py devicetree: add migration guide documentation and tests 2020-05-28 22:12:38 +02: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 dts: edtlib: Turn Node.instance_no into EDT.compat2enabled 2020-01-29 09:46:38 -06:00
testdtlib.py scripts: edtlib: Add a Device.children attribute with child Devices 2019-09-21 09:10:36 -05:00
testedtlib.py edtlib: allow register addr / size to be None 2020-03-24 10:11:20 -05:00