| 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.81 2008/04/03 16:11:24 cardoe Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.82 2008/09/30 05:27:42 vapier 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. |
| … | |
… | |
| 255 | # einfo "Using KV_OBJ=${KV_OBJ}" |
255 | # einfo "Using KV_OBJ=${KV_OBJ}" |
| 256 | } |
256 | } |
| 257 | |
257 | |
| 258 | get-KERNEL_CC() { |
258 | get-KERNEL_CC() { |
| 259 | debug-print-function ${FUNCNAME} $* |
259 | debug-print-function ${FUNCNAME} $* |
|
|
260 | |
|
|
261 | if [[ -n ${KERNEL_CC} ]] ; then |
|
|
262 | echo "${KERNEL_CC}" |
|
|
263 | return |
|
|
264 | fi |
| 260 | |
265 | |
| 261 | local kernel_cc |
266 | local kernel_cc |
| 262 | if [ -n "${KERNEL_ABI}" ]; then |
267 | if [ -n "${KERNEL_ABI}" ]; then |
| 263 | # In future, an arch might want to define CC_$ABI |
268 | # In future, an arch might want to define CC_$ABI |
| 264 | #kernel_cc="$(get_abi_CC)" |
269 | #kernel_cc="$(get_abi_CC)" |