From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: linux-mod.eclass |
Date: | Tue, 30 Sep 2008 05:27:47 |
Message-Id: | E1KkXlu-0006Rb-OT@stork.gentoo.org |
1 | vapier 08/09/30 05:27:42 |
2 | |
3 | Modified: linux-mod.eclass |
4 | Log: |
5 | allow KERNEL_CC env var to override get-KERNEL_CC() |
6 | |
7 | Revision Changes Path |
8 | 1.82 eclass/linux-mod.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.82&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?rev=1.82&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/linux-mod.eclass?r1=1.81&r2=1.82 |
13 | |
14 | Index: linux-mod.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v |
17 | retrieving revision 1.81 |
18 | retrieving revision 1.82 |
19 | diff -u -r1.81 -r1.82 |
20 | --- linux-mod.eclass 3 Apr 2008 16:11:24 -0000 1.81 |
21 | +++ linux-mod.eclass 30 Sep 2008 05:27:42 -0000 1.82 |
22 | @@ -1,6 +1,6 @@ |
23 | # Copyright 1999-2004 Gentoo Foundation |
24 | # Distributed under the terms of the GNU General Public License v2 |
25 | -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.81 2008/04/03 16:11:24 cardoe Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.82 2008/09/30 05:27:42 vapier Exp $ |
27 | |
28 | # Description: This eclass is used to interface with linux-info in such a way |
29 | # to provide the functionality required and initial functions |
30 | @@ -258,6 +258,11 @@ |
31 | get-KERNEL_CC() { |
32 | debug-print-function ${FUNCNAME} $* |
33 | |
34 | + if [[ -n ${KERNEL_CC} ]] ; then |
35 | + echo "${KERNEL_CC}" |
36 | + return |
37 | + fi |
38 | + |
39 | local kernel_cc |
40 | if [ -n "${KERNEL_ABI}" ]; then |
41 | # In future, an arch might want to define CC_$ABI |