dts/extract: Fix IRQ alias define generation

The alias generation wasn't doing the right thing with regards to
keeping the names consistent.  We would drop the index from the define
name for aliases.

So we'd get
	DT_NXP_KINETIS_GPIO_GPIO_D_IRQ
which should be
	DT_NXP_KINETIS_GPIO_GPIO_D_IRQ_0

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2019-06-19 12:26:22 -05:00 committed by Kumar Gala
parent 6a79bf2571
commit 7b638bf3f6

View file

@ -65,6 +65,23 @@ class DTInterrupts(DTDirective):
full_name, prop_alias)
if node_path in aliases:
add_prop_aliases(
node_path,
lambda alias:
'_'.join([str_to_label(alias)] +
l_cell_prefix + l_idx + l_cell_name),
full_name,
prop_alias)
if name:
add_prop_aliases(
node_path,
lambda alias:
'_'.join([str_to_label(alias)] +
l_cell_prefix + name + l_cell_name),
full_name,
prop_alias)
else:
add_prop_aliases(
node_path,
lambda alias: