1.1 --- a/scripts/build/libc/glibc.sh Sat Jan 22 22:37:25 2011 +0100
1.2 +++ b/scripts/build/libc/glibc.sh Sat Jan 22 22:35:02 2011 +0100
1.3 @@ -276,32 +276,3 @@
1.4 # Remove duplicate, leading and trailing separators
1.5 echo "${addons_list}" |sed -r -e "s/${sep}+/${sep}/g; s/^${sep}//; s/${sep}\$//;"
1.6 }
1.7 -
1.8 -# Builds up the minimum supported Linux kernel version
1.9 -do_libc_min_kernel_config() {
1.10 - local min_kernel_config=
1.11 - case "${CT_LIBC_GLIBC_EXTRA_CONFIG}" in
1.12 - *enable-kernel*) ;;
1.13 - *) if [ "${CT_LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS}" = "y" ]; then
1.14 - # We can't rely on the kernel version from the configuration,
1.15 - # because it might not be available if the user uses pre-installed
1.16 - # headers. On the other hand, both method will have the kernel
1.17 - # version installed in "usr/include/linux/version.h" in the sys-root.
1.18 - # Parse that instead of having two code-paths.
1.19 - version_code_file="${CT_SYSROOT_DIR}/usr/include/linux/version.h"
1.20 - if [ ! -f "${version_code_file}" -o ! -r "${version_code_file}" ]; then
1.21 - CT_Abort "Linux version is unavailable in installed headers files"
1.22 - fi
1.23 - version_code=$(grep -E LINUX_VERSION_CODE "${version_code_file}" |cut -d ' ' -f 3)
1.24 - version=$(((version_code>>16)&0xFF))
1.25 - patchlevel=$(((version_code>>8)&0xFF))
1.26 - sublevel=$((version_code&0xFF))
1.27 - min_kernel_config="--enable-kernel=${version}.${patchlevel}.${sublevel}"
1.28 - elif [ "${CT_LIBC_GLIBC_KERNEL_VERSION_CHOSEN}" = "y" ]; then
1.29 - # Trim the fourth part of the linux version, keeping only the first three numbers
1.30 - min_kernel_config="--enable-kernel=$(echo ${CT_LIBC_GLIBC_MIN_KERNEL_VERSION} |sed -r -e 's/^([^.]+\.[^.]+\.[^.]+)(|\.[^.]+)$/\1/;')"
1.31 - fi
1.32 - ;;
1.33 - esac
1.34 - echo "${min_kernel_config}"
1.35 -}