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]

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


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