]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: Only delete the executable if requested
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:11:07 +0000 (18:11 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:31 +0000 (15:04 +1300)
commit5d8c37910d87828e914262991de7d5599d63692a
tree71b03fa908fb63a1115163fcd494123df2d6daff
parent539db6ab09c06ff052dac6c585ec1eaf3f1d6dc8
sandbox: Only delete the executable if requested

At present sandbox removes its executable after failing to run it,
since there is no other way that it would get cleaned up.

However, this is actually only wanted if the image was created within
sandbox. For the case where the image was generated by the build system,
such as u-boot-spl, we don't want to delete it.

Handle the two code paths accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/os.c