diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-09-29 02:36:17 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-09-29 02:36:17 +0000 |
commit | 07d2d3f2a3fbbffd0b8aeba6dbdd54c6fe4a42ae (patch) | |
tree | 45157ba0e44b6f66b7460564c225f03587eebfb2 /eclass/linux-info.eclass | |
parent | Bump generic-deriving to 1.6.2 (diff) | |
download | historical-07d2d3f2a3fbbffd0b8aeba6dbdd54c6fe4a42ae.tar.gz historical-07d2d3f2a3fbbffd0b8aeba6dbdd54c6fe4a42ae.tar.bz2 historical-07d2d3f2a3fbbffd0b8aeba6dbdd54c6fe4a42ae.zip |
get_version: do not parse KBUILD_OUTPUT in the cases where we do not use it as reported by Doug Anderson from ChromiumOS
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass index b39acbfb1a23..7ee157f76699 100644 --- a/eclass/linux-info.eclass +++ b/eclass/linux-info.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.100 2013/02/10 07:53:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.101 2013/09/29 02:36:17 vapier Exp $ # @ECLASS: linux-info.eclass # @MAINTAINER: @@ -429,7 +429,7 @@ get_version_warning_done= # KBUILD_OUTPUT (in a decreasing priority list, we look for the env var, makefile var or the # symlink /lib/modules/${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}/build). get_version() { - local kbuild_output mkfunc tmplocal + local mkfunc tmplocal # no need to execute this twice assuming KV_FULL is populated. # we can force by unsetting KV_FULL @@ -497,8 +497,9 @@ get_version() { mkfunc="$(get_makefile_extract_function "${KERNEL_MAKEFILE}")" # And if we didn't pass it, we can take a nosey in the Makefile - kbuild_output="$(${mkfunc} KBUILD_OUTPUT ${KERNEL_MAKEFILE})" - OUTPUT_DIR="${OUTPUT_DIR:-${kbuild_output}}" + if [[ -z ${OUTPUT_DIR} ]]; then + OUTPUT_DIR=$(${mkfunc} KBUILD_OUTPUT "${KERNEL_MAKEFILE}") + fi # And contrary to existing functions I feel we shouldn't trust the # directory name to find version information as this seems insane. |