u-boot/arch/sandbox/cpu
Patrick Delaunay 10bb90fa30 sandbox: remove ram buffer file when U-Boot is loaded by SPL
Update management of "--rm_memory" sandbox's option and force
this option when U-Boot is loaded by SPL in os_spl_to_uboot()
and remove the ram file after reading in main() as described
in option help message: "Remove memory file after reading".

This patch avoids that the file "/tmp/u-boot.mem.XXXXXX" [created in
os_jump_to_file() when U-Boot is loaded by SPL] is never deleted
because state_uninit() is not called after U-Boot execution
(CtrlC or with running pytest for example).

This issue is reproduced by
> build-sandbox_spl/spl/u-boot-spl
  and CtrlC in U-Bot console

> make qcheck

One temp file is created after each SPL and U-Boot execution
(7 tims in qcheck after test_handoff.py, test_ofplatdata.py,
 test_spl.py execution).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-01-05 12:24:41 -07:00
..
cache.c sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
cpu.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
eth-raw-os.c sandbox: eth-raw: do not close the console input 2020-11-05 09:11:30 -07:00
Makefile sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
os.c sandbox: remove ram buffer file when U-Boot is loaded by SPL 2021-01-05 12:24:41 -07:00
sdl.c sandbox: make SDL window resizable 2020-10-29 14:42:18 -06:00
spl.c dm: test: Drop of-platdata pytest 2020-10-29 14:42:18 -06:00
start.c sandbox: remove ram buffer file when U-Boot is loaded by SPL 2021-01-05 12:24:41 -07:00
state.c sandbox: remove ram buffer file when U-Boot is loaded by SPL 2021-01-05 12:24:41 -07:00
u-boot-spl.lds sandbox: u-boot.lds: Remove bogus __bss_start symbol 2020-08-22 08:54:51 -06:00
u-boot.lds sandbox: u-boot.lds: Remove bogus __bss_start symbol 2020-08-22 08:54:51 -06:00