From patchwork Sun Sep 23 03:28:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3, of, 3] scripts/build/kernel: symlink custom kernel source dir with '-f' Date: Sat, 22 Sep 2012 17:28:12 -0000 From: Bongseo Jang X-Patchwork-Id: 186178 Message-Id: <543e2981f2b723ecd850.1348370892@localhost.localdomain> To: "Yann E. MORIN" Cc: crossgcc@sourceware.org # HG changeset patch # User Jang, Bongseo # 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" --- For unsubscribe information see http://sourceware.org/lists.html#faq 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