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:
Christian Helmuth 2017-06-15 14:06:07 +02:00
parent c16288bcde
commit d6e41ae7e3

View File

@ -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
}