Skip to content
Permalink
Browse files

dts/extract: Mark DT_FLASH_AREA_*_LABEL defines as deprecated

We don't use the DT_FLASH_AREA_*_LABEL defines today so lets mark them
deprecated until we actually need something.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Jul 10, 2019
1 parent 4d2625c commit 1c6952c4f6de045fc5765373ff89683afd6396a4
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripts/dts/extract/flash.py
@@ -40,6 +40,7 @@ def _add_partition_index_entries(self, node_path):

partition_label = str_to_label(node['props']['label'])
prop_def["DT_FLASH_AREA_{}_LABEL".format(area_id)] = partition_label
deprecated_main.append("DT_FLASH_AREA_{}_LABEL".format(area_id))
prop_def["DT_FLASH_AREA_{}_ID".format(partition_label)] = area_id

reg = node['props']['reg']
@@ -71,6 +72,7 @@ def _add_partition_label_entries(self, node_path):
partition_label = str_to_label(node['props']['label'])

label = "DT_FLASH_AREA_{}_LABEL".format(partition_label)
deprecated_main.append(label)
prop_def[label] = '"' + node['props']['label'] + '"'
add_legacy_alias(prop_alias, label)

0 comments on commit 1c6952c

Please sign in to comment.
You can’t perform that action at this time.