From 25ec17683f6416ddffb4a67baf8a075cdafbc3df Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Tue, 23 Oct 2018 22:55:49 -0500 Subject: [PATCH] scripts/dts/extract: Change compat define prefix Drop CONFIG_ and just use DT_ prefix for compatiable generated defines. Signed-off-by: Kumar Gala --- scripts/dts/extract/compatible.py | 2 +- scripts/dts/extract/globals.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dts/extract/compatible.py b/scripts/dts/extract/compatible.py index d4148e7d5b2..2c6f2045354 100644 --- a/scripts/dts/extract/compatible.py +++ b/scripts/dts/extract/compatible.py @@ -38,7 +38,7 @@ class DTCompatible(DTDirective): for i, comp in enumerate(compatible): # Generate #define's compat_label = convert_string_to_label(str(comp)) - compat_defs = 'CONFIG_DT_COMPAT_' + compat_label + compat_defs = 'DT_COMPAT_' + compat_label load_defs = { compat_defs: "", } diff --git a/scripts/dts/extract/globals.py b/scripts/dts/extract/globals.py index 620f30b8eb8..8d509a9c8e8 100644 --- a/scripts/dts/extract/globals.py +++ b/scripts/dts/extract/globals.py @@ -139,7 +139,7 @@ def get_phandles(root, name, handles): def insert_defs(node_address, new_defs, new_aliases): for key in new_defs.keys(): - if key.startswith('CONFIG_DT_COMPAT_'): + if key.startswith('DT_COMPAT_'): node_address = 'Compatibles' if node_address in defs: