scripts: extract_dts_includes.py: generate 'compatible' CONFIG flags
Generate CONFIG_DT_COMPAT flags using available nodes 'compatible' property. Store them in a bogus node_address key of defs dict so duplicates could be removed. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com> Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
1755cf6582
commit
c5ada39411
3 changed files with 58 additions and 0 deletions
|
@ -21,6 +21,7 @@ from devicetree import parse_file
|
|||
from extract.globals import *
|
||||
|
||||
from extract.clocks import clocks
|
||||
from extract.compatible import compatible
|
||||
from extract.interrupts import interrupts
|
||||
from extract.reg import reg
|
||||
from extract.flash import flash
|
||||
|
@ -443,6 +444,8 @@ def extract_property(node_compat, yaml, node_address, prop, prop_val, names,
|
|||
reg.extract(node_address, yaml, prop, names, def_label)
|
||||
elif prop == 'interrupts' or prop == 'interrupts-extended':
|
||||
interrupts.extract(node_address, yaml, prop, names, def_label)
|
||||
elif prop == 'compatible':
|
||||
compatible.extract(node_address, yaml, prop, names, def_label)
|
||||
elif 'pinctrl-' in prop:
|
||||
pinctrl.extract(node_address, yaml, prop, names, def_label)
|
||||
elif 'clocks' in prop:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue