Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27538 Details for
Bug 32737
Compiling external kernel modules with 2.6 kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
New version of kernel-2 eclass patch to make --set-extraversion useful
kernel-2-koutput-v3.diff (text/plain), 1.90 KB, created by
Peter Johanson (RETIRED)
on 2004-03-17 23:36:26 UTC
(
hide
)
Description:
New version of kernel-2 eclass patch to make --set-extraversion useful
Filename:
MIME Type:
Creator:
Peter Johanson (RETIRED)
Created:
2004-03-17 23:36:26 UTC
Size:
1.90 KB
patch
obsolete
>Index: kernel-2.eclass >=================================================================== >RCS file: /home/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v >retrieving revision 1.32 >diff -u -b -B -r1.32 kernel-2.eclass >--- kernel-2.eclass 14 Mar 2004 06:43:16 -0000 1.32 >+++ kernel-2.eclass 18 Mar 2004 07:21:30 -0000 >@@ -98,6 +98,33 @@ > 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}" >+ # We let the makefile figure the version on the fly >+ # So we really only want to configure the prefix here >+ local KOmakefile="`echo ${KBUILD_OUTPUT_PREFIX} | tr -s /`/\$(VERSION).\$(PATCHLEVEL).\$(SUBLEVEL)\$(EXTRAVERSION)" >+ 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=${KOmakefile}\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 http://dev.gentoo.org/~latexer/2.6-koutput-user.html" >+ fi >+} >+ > universal_unpack() { > # remove all backup files > find . -iname "*~" -exec rm {} \; 2> /dev/null >@@ -559,6 +586,7 @@ > [ -n "${UNIPATCH_LIST}" -o -n "${UNIPATCH_LIST_DEFAULT}" ] && unipatch "${UNIPATCH_LIST_DEFAULT} ${UNIPATCH_LIST}" > [ -z "${K_NOSETEXTRAVERSION}" ] && unpack_set_extraversion > [ $(kernel_is_2_4) $? == 0 ] && unpack_2_4 >+ [ $(kernel_is_2_6) $? == 0 ] && unpack_2_6 > } > > src_compile() {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32737
:
23927
|
24094
|
24095
|
24096
|
24131
|
24646
|
24647
|
24649
|
24650
|
24651
|
25235
|
25237
|
25238
|
25239
|
25279
|
25280
|
25281
|
25282
|
25283
|
25363
|
25453
|
25454
|
25497
|
26588
|
26635
|
26643
| 27538 |
30030
|
31314
|
31315
|
31317
|
31345
|
31346
|
31347
|
32935
|
33123
|
33124
|
33125
|
33356
|
36615