--- kernel-2.eclass.bak 2004-01-17 01:43:38.000000000 -0500 +++ kernel-2.eclass 2004-01-19 04:01:41.378900720 -0500 @@ -82,6 +82,21 @@ echo ">>> version.h compiled successfully." } +unpack_2_6() { + cd ${S} + # Part of the new magic to put output files seperate from + # source files! (see bug #32737!) + + # Set KERNEL_OUTPUT_DIR if not already set + [ -z "$KERNEL_OUTPUT_DIR" ] && \ + KERNEL_OUTPUT_DIR="/var/tmp/kernel-output/${KV}" + mkdir -p ${KERNEL_OUTPUT_DIR} + einfo "Setting kernel output directory to ${KERNEL_OUTPUT_DIR}" + mv Makefile ${T}/Makefile + sed -e "6s:^:KBUILD_OUTPUT=${KERNEL_OUTPUT_DIR}\n:" \ + ${T}/Makefile > Makefile +} + universal_unpack() { # remove all backup files find . -iname "*~" -exec rm {} \; 2> /dev/null @@ -419,6 +434,7 @@ [ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 + [ $(kernel_is_2_6) $? == 0 ] && unpack_2_6 } src_compile() {