Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 32737 | Differences between
and this patch

Collapse All | Expand All

(-)kernel-2.eclass (+25 lines)
Lines 98-103 Link Here
98
	echo ">>> version.h compiled successfully."
98
	echo ">>> version.h compiled successfully."
99
}
99
}
100
100
101
unpack_2_6() {
102
	cd ${S}
103
	# Part of the new magic to put output files seperate from
104
	# source files! (see bug #32737!)
105
106
	# Only do some magic if a KBUILD_OUTPUT_PREFIX is set
107
	if [ -n "${KBUILD_OUTPUT_PREFIX}" ]
108
	then
109
		local koutput="`echo ${KBUILD_OUTPUT_PREFIX} | tr -s /`/${KV}"
110
		mkdir -p ${koutput}
111
		einfo "Setting kernel output directory to ${koutput}"
112
		mv Makefile ${T}/Makefile
113
		# Add the KBUILD_OUTPUT variable after the EXTRAVERSION line
114
		sed -e "s:^\(EXTRAVERSION.*\):\1\nKBUILD_OUTPUT=${koutput}\n:" \
115
			${T}/Makefile > Makefile
116
	else
117
		ewarn "You've elected not to use Gentoo's new 'koutput' feature."
118
		ewarn "As a result, some kernel modules will require /usr/src/linux"
119
		ewarn "to be writable by portage, which is a security concern."
120
		## FIXME - path to doc!!!
121
		ewarn "For more info on enabling koutput, see DOC"
122
	fi
123
}
124
101
universal_unpack() {
125
universal_unpack() {
102
	# remove all backup files
126
	# remove all backup files
103
	find . -iname "*~" -exec rm {} \; 2> /dev/null
127
	find . -iname "*~" -exec rm {} \; 2> /dev/null
Lines 559-564 Link Here
559
	[ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}"
583
	[ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}"
560
	[ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion
584
	[ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion
561
	[ $(kernel_is_2_4) $? == 0 ] && unpack_2_4
585
	[ $(kernel_is_2_4) $? == 0 ] && unpack_2_4
586
	[ $(kernel_is_2_6) $? == 0 ] && unpack_2_6
562
}
587
}
563
588
564
src_compile() {
589
src_compile() {

Return to bug 32737