]> git.baikalelectronics.ru Git - uboot.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)
commit00e28f9c4989379c49d4fd9b131d818742f78559
tree71b03fa908fb63a1115163fcd494123df2d6daff
parent4c92e9de3a53f8e824e53a6a10df822a38a82431
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