binman: Move selection of the binman node into a function
authorSimon Glass <sjg@chromium.org>
Thu, 14 Jan 2021 03:29:56 +0000 (20:29 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 27 Jan 2021 22:03:16 +0000 (17:03 -0500)
commit76b54d8ca159b217be976eef986b76e26409ea4a
treeef20071b34d280a8ed379ed1b4073e0a088a945f
parentec5f101a3794396fed93e480ebcf8d389041b30e
binman: Move selection of the binman node into a function

Move this logic out of the main init function so it is available for
other purpose.

Use a different error when multiple-images is in use but no subnode is
available. This makes it easier to determine what is wrong.

Signed-off-by: Simon Glass <sjg@chromium.org>
lib/binman.c