Patchwork [3/3] Forcefully symlink kernel source directory

login
register
mail settings
Submitter Bongseo Jang
Date Sept. 22, 2012, 8:33 a.m.
Message ID <CAKPsnf3tcj8F=vneDKq=z3W7HTAMeOCUZe6DzooihOAf3FTAOw@mail.gmail.com>
Download mbox | patch
Permalink /patch/186113/
State Superseded
Headers show

Comments

Bongseo Jang - Sept. 22, 2012, 8:33 a.m.
"ct-ng build" fails when I do it again because it tries to symlink
kernel source dir without '-f'.

Patch

diff -r e9cb0fae0ee0 -r 6399a4b8d74c scripts/build/kernel/linux.sh
--- a/scripts/build/kernel/linux.sh	Sat Sep 22 16:56:58 2012 +0900
+++ b/scripts/build/kernel/linux.sh	Sat Sep 22 16:57:47 2012 +0900
@@ -41,7 +41,7 @@ 
                                       "${CT_TARBALLS_DIR}/${custom_name}"
         else
             custom_name="linux-custom"
-            CT_DoExecLog DEBUG ln -s "${CT_KERNEL_LINUX_CUSTOM_LOCATION}"  \
+            CT_DoExecLog DEBUG ln -sf "${CT_KERNEL_LINUX_CUSTOM_LOCATION}"  \
                                       "${CT_SRC_DIR}/${custom_name}"
         fi
     else # Not a custom tarball