From 1c6952c4f6de045fc5765373ff89683afd6396a4 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 10 Jul 2019 07:30:40 -0500 Subject: [PATCH] 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 --- scripts/dts/extract/flash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/dts/extract/flash.py b/scripts/dts/extract/flash.py index ae551aa5709..f6f6ee901f3 100644 --- a/scripts/dts/extract/flash.py +++ b/scripts/dts/extract/flash.py @@ -40,6 +40,7 @@ class DTFlash(DTDirective): 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 @@ class DTFlash(DTDirective): 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)