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 (+28 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
		# We let the makefile figure the version on the fly
111
		# So we really only want to configure the prefix here
112
		local KOmakefile="`echo ${KBUILD_OUTPUT_PREFIX} | tr -s /`/\$(VERSION).\$(PATCHLEVEL).\$(SUBLEVEL)\$(EXTRAVERSION)"
113
		mkdir -p ${koutput}
114
		einfo "Setting kernel output directory to ${koutput}"
115
		mv Makefile ${T}/Makefile
116
		# Add the KBUILD_OUTPUT variable after the EXTRAVERSION line
117
		sed -e "s:^\(EXTRAVERSION.*\):\1\nKBUILD_OUTPUT=${KOmakefile}\n:" \
118
			${T}/Makefile > Makefile
119
	else
120
		ewarn "You've elected not to use Gentoo's new 'koutput' feature."
121
		ewarn "As a result, some kernel modules will require /usr/src/linux"
122
		ewarn "to be writable by portage, which is a security concern."
123
		## FIXME - path to doc!!!
124
		ewarn "For more info on enabling koutput, see http://dev.gentoo.org/~latexer/2.6-koutput-user.html"
125
	fi
126
}
127
101
universal_unpack() {
128
universal_unpack() {
102
	# remove all backup files
129
	# remove all backup files
103
	find . -iname "*~" -exec rm {} \; 2> /dev/null
130
	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}"
586
	[ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}"
560
	[ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion
587
	[ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion
561
	[ $(kernel_is_2_4) $? == 0 ] && unpack_2_4
588
	[ $(kernel_is_2_4) $? == 0 ] && unpack_2_4
589
	[ $(kernel_is_2_6) $? == 0 ] && unpack_2_6
562
}
590
}
563
591
564
src_compile() {
592
src_compile() {

Return to bug 32737