binman: Put fake files in a subdirectory
authorSimon Glass <sjg@chromium.org>
Sun, 7 Aug 2022 15:46:46 +0000 (09:46 -0600)
committerSimon Glass <sjg@chromium.org>
Sun, 21 Aug 2022 00:07:32 +0000 (18:07 -0600)
commit7960a0a289506890474db0703344a87ac2f295db
treeb6670586ae72982851b6bdd3dc8a7611b203f9a1
parent3212be5e24c5861c4209785fd5f654f43fe9d409
binman: Put fake files in a subdirectory

At present fake files from a previous build appear to be real files for
a subsequent build, since they sit in the output directory.

This can cause problems, since binman may need to parse the file, e.g.
with the Intel description.bin files.

Fix this by putting them in a 'binman-fake' subdirectory. Keep a track
of the fake filename so we only create it once. Subsequent builds will
still see that the file is missing and mark it as fake.

Update a few tests to check the behaviour.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/binman.rst
tools/binman/control.py
tools/binman/entry.py
tools/binman/ftest.py