/[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.58 Revision 1.59
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.58 2009/01/12 23:04:54 maekke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.59 2009/03/27 20:13:04 loki_val 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 :)
195 195
196# @FUNCTION: linux_chkconfig_present 196# @FUNCTION: linux_chkconfig_present
197# @USAGE: option 197# @USAGE: option
198# @RETURN: true or false 198# @RETURN: true or false
199# @DESCRIPTION: 199# @DESCRIPTION:
200# It checks that CONFIG_<option>=y or CONFIG_<option>=n is present in the current kernel .config 200# It checks that CONFIG_<option>=y or CONFIG_<option>=m is present in the current kernel .config
201linux_chkconfig_present() { 201linux_chkconfig_present() {
202local RESULT 202local RESULT
203 require_configured_kernel 203 require_configured_kernel
204 RESULT="$(getfilevar CONFIG_${1} ${KV_OUT_DIR}/.config)" 204 RESULT="$(getfilevar CONFIG_${1} ${KV_OUT_DIR}/.config)"
205 [ "${RESULT}" = "m" -o "${RESULT}" = "y" ] && return 0 || return 1 205 [ "${RESULT}" = "m" -o "${RESULT}" = "y" ] && return 0 || return 1

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

  ViewVC Help
Powered by ViewVC 1.1.20