Skip to content
Snippets Groups Projects
  • Simon Glass's avatar
    ab839dc3
    sandbox: Add options to clean up temporary files · ab839dc3
    Simon Glass authored
    
    When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer
    is preserved in the jump by using a temporary file. Add an option to tell
    the receiving U-Boot to remove this file when it is no longer needed.
    
    Similarly the old U-Boot image is left behind in this case. We cannot delete
    it immediately since gdb cannot then find its debug symbols. Delete it just
    before exiting.
    
    Together these changes ensure that temporary files are removed both for
    memory and U-Boot.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
    ab839dc3
    History
    sandbox: Add options to clean up temporary files
    Simon Glass authored
    
    When jumping from one sandbox U-Boot to another in sandbox, the RAM buffer
    is preserved in the jump by using a temporary file. Add an option to tell
    the receiving U-Boot to remove this file when it is no longer needed.
    
    Similarly the old U-Boot image is left behind in this case. We cannot delete
    it immediately since gdb cannot then find its debug symbols. Delete it just
    before exiting.
    
    Together these changes ensure that temporary files are removed both for
    memory and U-Boot.
    
    Signed-off-by: default avatarSimon Glass <sjg@chromium.org>