1.1 --- a/scripts/saveSample.sh.in Sun Feb 01 17:11:46 2009 +0000
1.2 +++ b/scripts/saveSample.sh.in Sat Mar 07 11:05:37 2009 +0000
1.3 @@ -24,6 +24,22 @@
1.4 CT_TestOrAbort "Configuration file not found. Please create one." -f .config
1.5 . .config
1.6
1.7 +# We can not reliably save a sample which either uses local patches
1.8 +# and/or custom Linux kernel headers. Warn the user about this issue
1.9 +# and continue if he/she confirms sving the sample.
1.10 +if [ "${CT_CUSTOM_PATCH}" = "y" ]; then
1.11 + exec >&7
1.12 + echo "You are using local patches."
1.13 + echo "You will not be able to (easily) share this sample in this case."
1.14 + read -p "Press Ctrl-C to stop now, or Enter to continue..."
1.15 +fi
1.16 +if [ "${CT_KERNEL_LINUX_USE_CUSTOM_HEADERS}" = "y" ]; then
1.17 + exec >&7
1.18 + echo "You are using custom Linux headers."
1.19 + echo "You will not be able to (easily) share this sample in this case."
1.20 + read -p "Press Ctrl-C to stop now, or Enter to continue..."
1.21 +fi
1.22 +
1.23 # Do not use a progress bar
1.24 unset CT_LOG_PROGRESS_BAR
1.25
1.26 @@ -79,7 +95,7 @@
1.27 if [ -n "${CT_LIBC_UCLIBC_CONFIG_FILE}" ]; then
1.28 # We save the file, and then point the saved sample to this file
1.29 CT_DoAddFileToSample "${CT_LIBC_UCLIBC_CONFIG_FILE}" "samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"
1.30 - "${sed}" -r -i -e 's|^(CT_LIBC_UCLIBC_CONFIG_FILE=).+$|\1"'"${samp_top_dir}"'/samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"|;' \
1.31 + "${sed}" -r -i -e 's|^(CT_LIBC_UCLIBC_CONFIG_FILE)=.+$|\1="'"${samp_top_dir}"'/samples/${CT_TARGET}/${CT_LIBC}-${CT_LIBC_VERSION}.config"|;' \
1.32 "samples/${CT_TARGET}/crosstool.config"
1.33 else
1.34 # remove any dangling files