| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.69 2006/11/25 10:16:04 genstef Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.70 2007/01/01 22:27:01 swegener Exp $ |
| 4 | |
4 | |
| 5 | # Description: This eclass is used to interface with linux-info in such a way |
5 | # Description: This eclass is used to interface with linux-info in such a way |
| 6 | # to provide the functionality required and initial functions |
6 | # to provide the functionality required and initial functions |
| 7 | # required to install external modules against a kernel source |
7 | # required to install external modules against a kernel source |
| 8 | # tree. |
8 | # tree. |
| … | |
… | |
| 253 | |
253 | |
| 254 | local kernel_cc |
254 | local kernel_cc |
| 255 | if [ -n "${KERNEL_ABI}" ]; then |
255 | if [ -n "${KERNEL_ABI}" ]; then |
| 256 | # In future, an arch might want to define CC_$ABI |
256 | # In future, an arch might want to define CC_$ABI |
| 257 | #kernel_cc="$(get_abi_CC)" |
257 | #kernel_cc="$(get_abi_CC)" |
| 258 | #[ -z "${kernel_cc}" ] && |
258 | #[ -z "${kernel_cc}" ] && |
| 259 | kernel_cc="$(tc-getCC $(ABI=${KERNEL_ABI} get_abi_CHOST))" |
259 | kernel_cc="$(tc-getCC $(ABI=${KERNEL_ABI} get_abi_CHOST))" |
| 260 | else |
260 | else |
| 261 | kernel_cc=$(tc-getCC) |
261 | kernel_cc=$(tc-getCC) |
| 262 | fi |
262 | fi |
| 263 | echo "${kernel_cc}" |
263 | echo "${kernel_cc}" |
| … | |
… | |
| 559 | ${UPDATE_MODULES} && update_modules; |
559 | ${UPDATE_MODULES} && update_modules; |
| 560 | ${UPDATE_MODULEDB} && update_moduledb; |
560 | ${UPDATE_MODULEDB} && update_moduledb; |
| 561 | } |
561 | } |
| 562 | |
562 | |
| 563 | linux-mod_pkg_postrm() { |
563 | linux-mod_pkg_postrm() { |
| 564 | debug-print-function ${FUNCNAME} $* |
564 | debug-print-function ${FUNCNAME} $* |
| 565 | remove_moduledb; |
565 | remove_moduledb; |
| 566 | } |
566 | } |