u-boot/arch
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
..
arc arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
arm dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
m68k arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
microblaze microblaze: Enable GCC garbage collector for full U-Boot 2020-11-20 10:42:53 +01:00
mips mips: octeon: Add bootoctlinux command 2020-10-07 20:25:58 +02:00
nds32 arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
nios2 arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
powerpc board: Rename uclass to sysinfo 2020-11-06 10:18:20 +08:00
riscv dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
sandbox sandbox: remove ram buffer file when U-Boot is loaded by SPL 2021-01-05 12:24:41 -07:00
sh arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
x86 x86: Fix header guard in asm/pmu.h 2021-01-05 12:24:41 -07:00
xtensa arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header 2021-01-05 12:24:40 -07:00
.gitignore
Kconfig linker_lists: Fix alignment issue 2020-12-18 20:32:21 -07:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00