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 | 21f8e46a3d80db08a209d37d001291c4d6a743d0 (patch) | |
tree | 800c944b0402dce47fc2fa3487fadc7e80dfe1c3 /eclass | |
parent | old (Manifest recommit) (diff) | |
download | gentoo-2-21f8e46a3d80db08a209d37d001291c4d6a743d0.tar.gz gentoo-2-21f8e46a3d80db08a209d37d001291c4d6a743d0.tar.bz2 gentoo-2-21f8e46a3d80db08a209d37d001291c4d6a743d0.zip |
dont PROVIDE if cross-compiling
Diffstat (limited to '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" |