zephyr/scripts/dts/extract
Andrzej Głąbek a7c430f36f scripts: dts: Use DT_ prefix in generated labels
Almost all labels generated by the extracting script are now prefixed
with DT_. The only exceptions are:
- stuff with 'base_label' specified in yaml bindings
- items specified by 'regs_config' and 'name_config' dictionaries
  in globals.py module
- FLASH related labels generated by flash.extract() called separately
  from generate_node_definitions(), e.g. FLASH_WRITE_BLOCK_SIZE -
  these are used directly, not through fixups, from existing code
  so I didn't want to touch them now

Labels generated for aliases are additionally prefixed with information
from the 'compatible' property, e.g. DT_GPIO_LEDS_LED0_* is generated
instead of LED0_*. To provide backward compatibility for code that uses
LEDx_* and SWx_* labels in their previous forms, a command line option
named 'old-alias-names' is added to the extraction script. This option
causes that the labels for aliases are generated in both old and new
forms. Currently this option is always enabled in dts.cmake.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2018-11-13 10:44:42 -06:00
..
__init__.py
clocks.py scripts: dts: Use DT_ prefix in generated labels 2018-11-13 10:44:42 -06:00
compatible.py scripts/dts: extract: Provide a value to generated compat #define 2018-10-25 08:02:33 +01:00
default.py scripts: dts: Use DT_ prefix in generated labels 2018-11-13 10:44:42 -06:00
directive.py dts/extract_dts_includes.py: refactor get_node_label_string 2018-10-24 10:41:25 +01:00
flash.py dts/extract_dts_includes.py: Expose flash partition extract function 2018-11-06 07:42:39 -06:00
globals.py scripts: dts: Use DT_ prefix in generated labels 2018-11-13 10:44:42 -06:00
interrupts.py scripts: dts: Use DT_ prefix in generated labels 2018-11-13 10:44:42 -06:00
pinctrl.py scripts/dts: extract_dts_includes: remove unused 'names' argument 2018-09-21 07:23:49 -07:00
reg.py scripts: dts: Use DT_ prefix in generated labels 2018-11-13 10:44:42 -06:00