COMPAT_LATEST_VERSION="3"
KERNEL_SUBLEVEL="-1"
-# This allows all these variables to be propagated through
-# all of our Makefiles
-echo export
+# Note that this script will export all variables explicitly,
+# trying to export all with a blanket "export" statement at
+# the top of the generated file causes the build to slow down
+# by an order of magnitude.
if [[ ${KERNEL_VERSION} -eq "3" ]]; then
KERNEL_SUBLEVEL=$(${MAKE} -C ${KLIB_BUILD} kernelversion | sed -n 's/^3\.\([0-9]\+\).*/\1/p')
for i in $(seq ${KERNEL_26SUBLEVEL} ${COMPAT_26LATEST_VERSION}); do
eval CONFIG_COMPAT_KERNEL_2_6_${i}=y
- echo "CONFIG_COMPAT_KERNEL_2_6_${i}=y"
+ echo "export CONFIG_COMPAT_KERNEL_2_6_${i}=y"
done
fi
let KERNEL_SUBLEVEL=${KERNEL_SUBLEVEL}+1
for i in $(seq ${KERNEL_SUBLEVEL} ${COMPAT_LATEST_VERSION}); do
eval CONFIG_COMPAT_KERNEL_3_${i}=y
- echo "CONFIG_COMPAT_KERNEL_3_${i}=y"
+ echo "export CONFIG_COMPAT_KERNEL_3_${i}=y"
done
# The purpose of these seem to be the inverse of the above other varibales.
RHEL_MINOR=$(grep ^RHEL_MINOR $(KLIB_BUILD)/Makefile | sed -n 's/.*= *\(.*\)/\1/p')
for i in $(seq 0 ${RHEL_MINOR}); do
eval CONFIG_COMPAT_${RHEL_MAJOR}_${i}=y
- echo "CONFIG_COMPAT_${RHEL_MAJOR}_${i}=y"
+ echo "export CONFIG_COMPAT_${RHEL_MAJOR}_${i}=y"
done
fi
if [[ ${CONFIG_COMPAT_KERNEL_2_6_33} = "y" ]]; then
- echo "CONFIG_COMPAT_FIRMWARE_CLASS=m"
+ echo "export CONFIG_COMPAT_FIRMWARE_CLASS=m"
fi
if [[ ${CONFIG_COMPAT_KERNEL_2_6_36} = "y" ]]; then
- echo "CONFIG_COMPAT_KFIFO=y"
+ echo "export CONFIG_COMPAT_KFIFO=y"
fi