|
|
echo ">>> version.h compiled successfully." | 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!) |
|
|
|
# Only do some magic if a KBUILD_OUTPUT_PREFIX is set |
|
if [ -n "${KBUILD_OUTPUT_PREFIX}" ] |
|
then |
|
local koutput="`echo ${KBUILD_OUTPUT_PREFIX} | tr -s /`/${KV}" |
|
mkdir -p ${koutput} |
|
einfo "Setting kernel output directory to ${koutput}" |
|
mv Makefile ${T}/Makefile |
|
# Add the KBUILD_OUTPUT variable after the EXTRAVERSION line |
|
sed -e "s:^\(EXTRAVERSION.*\):\1\nKBUILD_OUTPUT=${koutput}\n:" \ |
|
${T}/Makefile > Makefile |
|
else |
|
ewarn "You've elected not to use Gentoo's new 'koutput' feature." |
|
ewarn "As a result, some kernel modules will require /usr/src/linux" |
|
ewarn "to be writable by portage, which is a security concern." |
|
## FIXME - path to doc!!! |
|
ewarn "For more info on enabling koutput, see DOC" |
|
fi |
|
} |
|
|
universal_unpack() { | universal_unpack() { |
# remove all backup files | # remove all backup files |
find . -iname "*~" -exec rm {} \; 2> /dev/null | find . -iname "*~" -exec rm {} \; 2> /dev/null |
|
|
[ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}" | [ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}" |
[ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion | [ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion |
[ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 | [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 |
|
[ $(kernel_is_2_6) $? == 0 ] && unpack_2_6 |
} | } |
| |
src_compile() { | src_compile() { |