From d6e41ae7e316ca8e47b8508229d1c52398fa1f27 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 15 Jun 2017 14:06:07 +0200 Subject: [PATCH] foc: do not accidentally delete boot directory This partially reverts commit 7f7f8063dd8fc5451ac7ed7e7c974f71a895703a and adds the eager creation of the expected ARM boot directory. --- tool/run/boot_dir/foc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tool/run/boot_dir/foc b/tool/run/boot_dir/foc index d40a0cefb0..2e80bb7343 100644 --- a/tool/run/boot_dir/foc +++ b/tool/run/boot_dir/foc @@ -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 }