This is the mail archive of the
crossgcc@sourceware.org
mailing list for the crossgcc project.
See crosstool-NG for lots
more information.
Bug with LINUX_CUSTOM is directory
- From: Lionel Molinier <lionel dot molinier at sigfox dot com>
- To: crossgcc at sourceware dot org
- Date: Wed, 12 Sep 2012 11:12:07 +0200
- Subject: Bug with LINUX_CUSTOM is directory
Hi,
I'm using 1.16.0 with a custom kernel which is extracted in a custom
directory. I have set the directory in the crosstool-NG configuration.
It works well except when I'm trying to rebuild the crosstool.
The link already exists and 'ln' fails. I propose to add the following
test in scripts/build/kernel/linux.sh
@@ -41,6 +41,9 @@ do_kernel_get() {
"${CT_TARBALLS_DIR}/${custom_name}"
else
custom_name="linux-custom"
+ if [ -h "${CT_SRC_DIR}/${custom_name}" ]; then
+ CT_DoExecLog DEBUG rm
"${CT_SRC_DIR}/${custom_name}"
+ fi
CT_DoExecLog DEBUG ln -s
"${CT_KERNEL_LINUX_CUSTOM_LOCATION}" \
"${CT_SRC_DIR}/${custom_name}"
fi
You might want the change the '-h' into '-e' just to ensure the ln never
fails.
Best regards,
Lionel Molinier
--
For unsubscribe information see http://sourceware.org/lists.html#faq