diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-09-30 05:27:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-09-30 05:27:42 +0000 |
commit | a1e809f19e614e13e5a0da84d5e6843b84b0fb7b (patch) | |
tree | 3878694fa2d3943dbe7b5fc10b861873dfdb9f44 /eclass/linux-mod.eclass | |
parent | Stable for HPPA (bug #238021). (diff) | |
download | historical-a1e809f19e614e13e5a0da84d5e6843b84b0fb7b.tar.gz historical-a1e809f19e614e13e5a0da84d5e6843b84b0fb7b.tar.bz2 historical-a1e809f19e614e13e5a0da84d5e6843b84b0fb7b.zip |
allow KERNEL_CC env var to override get-KERNEL_CC()
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r-- | eclass/linux-mod.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass index 2045f275d28a..513115ddd68c 100644 --- a/eclass/linux-mod.eclass +++ b/eclass/linux-mod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.81 2008/04/03 16:11:24 cardoe Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-mod.eclass,v 1.82 2008/09/30 05:27:42 vapier Exp $ # Description: This eclass is used to interface with linux-info in such a way # to provide the functionality required and initial functions @@ -258,6 +258,11 @@ set_kvobj() { get-KERNEL_CC() { debug-print-function ${FUNCNAME} $* + if [[ -n ${KERNEL_CC} ]] ; then + echo "${KERNEL_CC}" + return + fi + local kernel_cc if [ -n "${KERNEL_ABI}" ]; then # In future, an arch might want to define CC_$ABI |