This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


# 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>

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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]