foc: do not accidentally delete boot directory
This partially reverts commit 7f7f8063dd
and adds the eager creation of the expected ARM boot directory.
This commit is contained in:
@@ -186,9 +186,8 @@ proc run_boot_dir_arm { binaries } {
|
||||
set tftp_base_dir [load_tftp_base_dir]
|
||||
set tftp_offset_dir [load_tftp_offset_dir]
|
||||
|
||||
exec rm -rf $tftp_base_dir$tftp_offset_dir
|
||||
exec mkdir $tftp_base_dir$tftp_offset_dir
|
||||
exec ln -sf [pwd]/[run_dir]/image.elf $tftp_base_dir$tftp_offset_dir/image.elf
|
||||
exec mkdir -p $tftp_base_dir$tftp_offset_dir
|
||||
exec ln -sf [pwd]/[run_dir]/image.elf $tftp_base_dir$tftp_offset_dir
|
||||
if {[have_include "image/uboot"]} {
|
||||
exec ln -sf [pwd]/[run_dir]/uImage $tftp_base_dir$tftp_offset_dir/uImage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user