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:
parent
a39497dada
commit
25ec17683f
@ -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: "",
|
||||
}
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user