[PATCH 02/19] sandbox: Only delete the executable if requested

Simon Glass sjg at chromium.org
Sat Mar 27 04:17:59 CET 2021


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 at chromium.org>
---

 arch/sandbox/cpu/os.c | 24 +++++++++++++++---------
 1 file changed, 15 insertions(+), 9 deletions(-)

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list