binman: Allow symbols to be resolved inside sections
authorSimon Glass <sjg@chromium.org>
Sat, 24 Aug 2019 13:23:00 +0000 (07:23 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commit2090f1e3d096bd124790e1716240e17e56325755
tree6aa9a2708b33f9a24e5c8f56fafd32e82b9755e4
parentc9a0b27589a49d4beaaa4f75500597ab07cfff39
binman: Allow symbols to be resolved inside sections

At present we only support symbols inside binaries which are at the top
level of an image. This restrictions seems unreasonable since more complex
images may want to group binaries within different sections.

Relax the restriction, adding a new _SetupTplElf() helper function.

Also fix a typo in the comment for testTpl().

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/u_boot_spl.py
tools/binman/etype/u_boot_tpl.py
tools/binman/ftest.py
tools/binman/test/149_symbols_tpl.dts [new file with mode: 0644]