From 7f7f8063dd8fc5451ac7ed7e7c974f71a895703a Mon Sep 17 00:00:00 2001 From: Martin Stein Date: Mon, 23 Jan 2017 13:41:44 +0100 Subject: [PATCH] run/boot_dir/foc: avoid error on link creation In combination with run/image/uboot, run/boot_dir/foc expected a file link it created itself to be a directory by trying to create another file link inside it. Ref #1987 --- tool/run/boot_dir/foc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tool/run/boot_dir/foc b/tool/run/boot_dir/foc index bb793c801e..ff2805c377 100644 --- a/tool/run/boot_dir/foc +++ b/tool/run/boot_dir/foc @@ -165,7 +165,9 @@ proc run_boot_dir_arm { binaries } { set tftp_base_dir [load_tftp_base_dir] set tftp_offset_dir [load_tftp_offset_dir] - exec ln -sf [pwd]/[run_dir]/image.elf $tftp_base_dir$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 if {[have_include "image/uboot"]} { exec ln -sf [pwd]/[run_dir]/uImage $tftp_base_dir$tftp_offset_dir/uImage }