If you had more than 15 layers the system would crash since one more
value is added to one array than the other. This fixes the code
so equal numbers of values are added to the arrays and hence
doesn't crash when many layers are enabled.
(Bitbake rev:
4e65463886a2ef245b2f8974e82e9cb942af224b)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
vallist.append(base_image)
i = 0
for layer in layers:
- varlist.append(" - ")
if i > layer_num_limit:
break
+ varlist.append(" - ")
i += 1
vallist.append("")
i = 0