binman: Move sort and expand to the main Pack() function
authorSimon Glass <sjg@chromium.org>
Mon, 26 Oct 2020 23:40:19 +0000 (17:40 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:59 +0000 (14:42 -0600)
commitc1af7a86b380c75c0718c80e1997293913c6095a
tree058e65fc946792f3e913b86edf4e6f7da7ae69c9
parent6ddd61131f3206c5e385dc7e763aea0dc5caa24c
binman: Move sort and expand to the main Pack() function

At present sorting and expanding entries are side-effects of the
CheckEntries() function. This is a bit confusing, as 'checking' would
not normally involve making changes.

Move these steps into the Pack() function instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/section.py