| 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.97 2013/02/10 02:21:55 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.98 2013/02/10 06:18:19 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: |
| … | |
… | |
| 181 | else |
181 | else |
| 182 | basefname="$(basename ${2})" |
182 | basefname="$(basename ${2})" |
| 183 | basedname="$(dirname ${2})" |
183 | basedname="$(dirname ${2})" |
| 184 | unset ARCH |
184 | unset ARCH |
| 185 | |
185 | |
|
|
186 | # We use nonfatal because we want the caller to take care of things #373151 |
|
|
187 | [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; } |
| 186 | echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ |
188 | echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ |
| 187 | make -C "${basedname}" M="${S}" ${BUILD_FIXES} -s -f - 2>/dev/null |
189 | nonfatal emake -C "${basedname}" M="${S}" ${BUILD_FIXES} -s -f - 2>/dev/null |
| 188 | |
190 | |
| 189 | ARCH=${myARCH} |
191 | ARCH=${myARCH} |
| 190 | fi |
192 | fi |
| 191 | } |
193 | } |
| 192 | |
194 | |