summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-09-30 05:27:42 +0000
committerMike Frysinger <vapier@gentoo.org>2008-09-30 05:27:42 +0000
commit52638cc473c820ab32312442b5623b081ee0c918 (patch)
tree758624a82d5f297d0ac275d61165682450031aea /eclass/linux-mod.eclass
parentStable for HPPA (bug #238021). (diff)
downloadgentoo-2-52638cc473c820ab32312442b5623b081ee0c918.tar.gz
gentoo-2-52638cc473c820ab32312442b5623b081ee0c918.tar.bz2
gentoo-2-52638cc473c820ab32312442b5623b081ee0c918.zip
allow KERNEL_CC env var to override get-KERNEL_CC()
Diffstat (limited to 'eclass/linux-mod.eclass')
-rw-r--r--eclass/linux-mod.eclass7
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