diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 02:54:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-12-07 02:54:04 +0000 |
commit | ba6bd4c4d48d224995fee39d6ab4e457a78fc16c (patch) | |
tree | ddee45fd491955c3676ebf10310b6e905627feae /eclass/kernel.eclass | |
parent | old (diff) | |
download | historical-ba6bd4c4d48d224995fee39d6ab4e457a78fc16c.tar.gz historical-ba6bd4c4d48d224995fee39d6ab4e457a78fc16c.tar.bz2 historical-ba6bd4c4d48d224995fee39d6ab4e457a78fc16c.zip |
dont PROVIDE if cross-compiling
Diffstat (limited to 'eclass/kernel.eclass')
-rw-r--r-- | eclass/kernel.eclass | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass index 70ca24f9bdb4..9767e510144b 100644 --- a/eclass/kernel.eclass +++ b/eclass/kernel.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.54 2004/12/07 01:42:33 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.55 2004/12/07 02:54:04 vapier Exp $ # # This eclass contains the common functions to be used by all lostlogic # based kernel ebuilds @@ -36,12 +36,15 @@ then virtual/modutils sys-devel/make )" PROVIDE="virtual/linux-sources" -elif [ "${ETYPE}" = "headers" ] +elif [[ ${CTARGET} = ${CHOST} ]] then - PROVIDE="virtual/kernel virtual/os-headers" -else - eerror "Unknown ETYPE=\"${ETYPE}\"!" - die + if [ "${ETYPE}" = "headers" ] + then + PROVIDE="virtual/kernel virtual/os-headers" + else + eerror "Unknown ETYPE=\"${ETYPE}\"!" + die + fi fi [ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -Os -fomit-frame-pointer -I${S}/include" |