scripts/dts/extract: Change compat define prefix

Drop CONFIG_ and just use DT_ prefix for compatiable generated defines.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-10-23 22:55:49 -05:00 committed by Kumar Gala
parent a39497dada
commit 25ec17683f
2 changed files with 2 additions and 2 deletions

View File

@ -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: "",
}

View File

@ -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: