Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132934 Details for
Bug 195128
linux-mod.eclass: support building modules for all installed kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to linux-mod.eclass
linux-mod.eclass.patch (text/plain), 2.68 KB, created by
Isakov Alexandr
on 2007-10-08 17:22:19 UTC
(
hide
)
Description:
Patch to linux-mod.eclass
Filename:
MIME Type:
Creator:
Isakov Alexandr
Created:
2007-10-08 17:22:19 UTC
Size:
2.68 KB
patch
obsolete
>diff -r /usr/portage/eclass/linux-mod.eclass /usr/local/overlays/my/eclass/linux-mod.eclass >497,504c497,506 >< unset libdir srcdir objdir >< for n in $(find_module_params ${i}) >< do >< eval ${n/:*}=${n/*:/} >< done >< libdir=${libdir:-misc} >< srcdir=${srcdir:-${S}} >< objdir=${objdir:-${srcdir}} >--- >> for j in /usr/src/linux-*;do >> unset libdir srcdir objdir >> for n in $(find_module_params ${i}) >> do >> eval ${n/:*}=${n/*:/} >> done >> libdir=${libdir:-misc} >> srcdir=${srcdir:-${S}} >> objdir=${objdir:-${srcdir}} >> echo $libdir $srcdir $objdir >506,510c508 >< if [ ! -f "${srcdir}/.built" ]; >< then >< cd ${srcdir} >< einfo "Preparing ${modulename} module" >< if [[ -n ${ECONF_PARAMS} ]] >--- >> if [ ! -f "${srcdir}/.built" ]; >512,514c510,529 >< econf ${ECONF_PARAMS} || \ >< die "Unable to run econf ${ECONF_PARAMS}" >< fi >--- >> cd ${srcdir} >> emake clean >> einfo "Preparing ${modulename} module for ${j:15}" >> if [[ -n ${ECONF_PARAMS} ]] >> then >> econf ${ECONF_PARAMS} || \ >> die "Unable to run econf ${ECONF_PARAMS}" >> fi >> >> emake SYSSRC="$j" HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ >> ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ >> || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." >> touch ${srcdir}/.built_one >> cd ${OLDPWD} >> >> einfo "Installing ${modulename} module for ${j:15}" >> cd ${objdir} || die "${objdir} does not exist" >> insinto /lib/modules/${j:15}/${libdir} >> doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} failed" >> cd ${OLDPWD} >516,518c531,537 >< emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \ >< ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} \ >< || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}." >--- >> generate_modulesd ${objdir}/${modulename} >> fi >> done >> if [ ! -f "${srcdir}/.built_one" ]; >> then >> die "Fail to build any kernel module! :-(" >> else >520d538 >< cd ${OLDPWD} >530,552d547 >< >< local modulename libdir srcdir objdir i n >< >< strip_modulenames; >< for i in ${MODULE_NAMES} >< do >< unset libdir srcdir objdir >< for n in $(find_module_params ${i}) >< do >< eval ${n/:*}=${n/*:/} >< done >< libdir=${libdir:-misc} >< srcdir=${srcdir:-${S}} >< objdir=${objdir:-${srcdir}} >< >< einfo "Installing ${modulename} module" >< cd ${objdir} || die "${objdir} does not exist" >< insinto /lib/modules/${KV_FULL}/${libdir} >< doins ${modulename}.${KV_OBJ} || die "doins ${modulename}.${KV_OBJ} failed" >< cd ${OLDPWD} >< >< generate_modulesd ${objdir}/${modulename} >< done
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 195128
:
132934
|
170474