/[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.99 Revision 1.100
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 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.99 2013/02/10 06:20:10 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.100 2013/02/10 07:53:31 vapier Exp $
4 4
5# @ECLASS: linux-info.eclass 5# @ECLASS: linux-info.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# kernel-misc@gentoo.org 7# kernel-misc@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
460 fi 460 fi
461 fi 461 fi
462 return 1 462 return 1
463 fi 463 fi
464 464
465 # See if the kernel dir is actually an output dir. #454294
466 if [ -z "${KBUILD_OUTPUT}" -a -L "${KERNEL_DIR}/source" ]; then
467 KBUILD_OUTPUT=${KERNEL_DIR}
468 KERNEL_DIR=$(readlink -f "${KERNEL_DIR}/source")
469 KV_DIR=${KERNEL_DIR}
470 fi
471
465 if [ -z "${get_version_warning_done}" ]; then 472 if [ -z "${get_version_warning_done}" ]; then
466 qeinfo "Found kernel source directory:" 473 qeinfo "Found kernel source directory:"
467 qeinfo " ${KV_DIR}" 474 qeinfo " ${KV_DIR}"
468 fi 475 fi
469 476
479 486
480 # OK so now we know our sources directory, but they might be using 487 # OK so now we know our sources directory, but they might be using
481 # KBUILD_OUTPUT, and we need this for .config and localversions-* 488 # KBUILD_OUTPUT, and we need this for .config and localversions-*
482 # so we better find it eh? 489 # so we better find it eh?
483 # do we pass KBUILD_OUTPUT on the CLI? 490 # do we pass KBUILD_OUTPUT on the CLI?
484 OUTPUT_DIR="${OUTPUT_DIR:-${KBUILD_OUTPUT}}" 491 local OUTPUT_DIR=${KBUILD_OUTPUT}
485 492
486 # keep track of it 493 # keep track of it
487 KERNEL_MAKEFILE="${KV_DIR}/Makefile" 494 KERNEL_MAKEFILE="${KV_DIR}/Makefile"
488 495
489 # Decide the function used to extract makefile variables. 496 # Decide the function used to extract makefile variables.

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

  ViewVC Help
Powered by ViewVC 1.1.20