summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Stakenvicius <axs@gentoo.org>2012-09-27 19:34:28 +0000
committerIan Stakenvicius <axs@gentoo.org>2012-09-27 19:34:28 +0000
commit3a5ef7dc93906835d8ca24ef59aa5ddfa84b4e08 (patch)
tree92ff299707c54f6cbf40289023b2fbbf9886c77c /eclass/toolchain-funcs.eclass
parentDrop mask for javacc-5.0. #315557 (diff)
downloadhistorical-3a5ef7dc93906835d8ca24ef59aa5ddfa84b4e08.tar.gz
historical-3a5ef7dc93906835d8ca24ef59aa5ddfa84b4e08.tar.bz2
historical-3a5ef7dc93906835d8ca24ef59aa5ddfa84b4e08.zip
Fixed tc-ninja_magic_to_arch() to also use KV_FULL and fail if no kernel version specified, bug 432390
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 97554cecf0ae..7574944895d4 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.117 2012/09/15 16:16:53 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.118 2012/09/27 19:34:28 axs Exp $
# @ECLASS: toolchain-funcs.eclass
# @MAINTAINER:
@@ -357,6 +357,9 @@ ninj() { [[ ${type} == "kern" ]] && echo $1 || echo $2 ; }
local host=$2
[[ -z ${host} ]] && host=${CTARGET:-${CHOST}}
+ local KV=${KV:-${KV_FULL}}
+ [[ -z ${KV} ]] && die "toolchain-funcs.eclass: Kernel version could not be determined, please inherit kernel-2 or linux-info"
+
case ${host} in
aarch64*) ninj aarch64 arm;;
alpha*) echo alpha;;