Patchwork [3,of,3] scripts/build/kernel: symlink custom kernel source dir with '-f'

login
register
mail settings
Submitter Bongseo Jang
Date Sept. 23, 2012, 3:28 a.m.
Message ID <543e2981f2b723ecd850.1348370892@localhost.localdomain>
Download mbox | patch
Permalink /patch/186178/
State Accepted
Commit f46a1d105896
Headers show

Comments

Bongseo Jang - Sept. 23, 2012, 3:28 a.m.
# HG changeset patch
# User Jang, Bongseo <graycells@gmail.com>
# Date 1348369168 -32400
# Node ID 543e2981f2b723ecd850cf2f839a1a7ccdf571b3
# Parent  4eef2edec3201c50b420a2ce04b73e29890dd553
scripts/build/kernel: symlink custom kernel source dir with '-f'

build fails to symlink to custom kernel dir when the build is not the first time
because of 'ln -s' without '-f' option.

Signed-off-by: "Jang, Bongseo" <graycells@gmail.com>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r 4eef2edec320 -r 543e2981f2b7 scripts/build/kernel/linux.sh
--- a/scripts/build/kernel/linux.sh	Sun Sep 23 11:53:02 2012 +0900
+++ b/scripts/build/kernel/linux.sh	Sun Sep 23 11:59:28 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