Commit dfa64707 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Kever Yang
Browse files

rockchip: make_fit_atf: use correct fdt_x references in config nodes



The script iterates over the given devicetrees and creates both
fdt_x node as well as a conf-node for each passed dt.

But there is a slight bug in that it always references fdt_1 in each
conf node instead of the matching fdt_x as expected.

So fix that by referencing the number of the current dt similar to
how the fdt_x nodes gets created.
Signed-off-by: default avatarHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Kever Yang's avatarKever Yang <kever.yang@rock-chips.com>
parent f2a73d68
...@@ -107,7 +107,7 @@ def append_conf_section(file, cnt, dtname, segments): ...@@ -107,7 +107,7 @@ def append_conf_section(file, cnt, dtname, segments):
file.write(';\n') file.write(';\n')
if segments <= 1: if segments <= 1:
file.write(';\n') file.write(';\n')
file.write('\t\t\tfdt = "fdt_1";\n') file.write('\t\t\tfdt = "fdt_%d";\n' % cnt)
file.write('\t\t};\n') file.write('\t\t};\n')
file.write('\n') file.write('\n')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment