/[gentoo-x86]/eclass/linux-info.eclass
Gentoo

Diff of /eclass/linux-info.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.83 Revision 1.84
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.83 2010/01/17 21:46:55 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.84 2010/06/17 23:46:25 abcd Exp $
4# 4#
5# Original author: John Mylchreest <johnm@gentoo.org> 5# Original author: John Mylchreest <johnm@gentoo.org>
6# Maintainer: kernel-misc@gentoo.org 6# Maintainer: kernel-misc@gentoo.org
7# 7#
8# Please direct your bugs to the current eclass maintainer :) 8# Please direct your bugs to the current eclass maintainer :)
566# It gets the version of the current running kernel and the result is the same as get_version() if the 566# It gets the version of the current running kernel and the result is the same as get_version() if the
567# function can find the sources. 567# function can find the sources.
568get_running_version() { 568get_running_version() {
569 KV_FULL=$(uname -r) 569 KV_FULL=$(uname -r)
570 570
571 if [[ -f ${ROOT}/lib/modules/${KV_FULL}/source/Makefile && -f ${ROOT}/lib/modules/${KV_FULL}/build/Makefile ]]; then
572 KERNEL_DIR=$(readlink -f ${ROOT}/lib/modules/${KV_FULL}/source)
573 KBUILD_OUTPUT=$(readlink -f ${ROOT}/lib/modules/${KV_FULL}/build)
574 unset KV_FULL
575 get_version
576 return $?
571 if [[ -f ${ROOT}/lib/modules/${KV_FULL}/source/Makefile ]]; then 577 elif [[ -f ${ROOT}/lib/modules/${KV_FULL}/source/Makefile ]]; then
572 KERNEL_DIR=$(readlink -f ${ROOT}/lib/modules/${KV_FULL}/source) 578 KERNEL_DIR=$(readlink -f ${ROOT}/lib/modules/${KV_FULL}/source)
573 unset KV_FULL 579 unset KV_FULL
574 get_version 580 get_version
575 return $? 581 return $?
576 elif [[ -f ${ROOT}/lib/modules/${KV_FULL}/build/Makefile ]]; then 582 elif [[ -f ${ROOT}/lib/modules/${KV_FULL}/build/Makefile ]]; then

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.84

  ViewVC Help
Powered by ViewVC 1.1.20