summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@gentoo.org>2002-10-01 12:59:36 +0000
committerBrandon Low <lostlogic@gentoo.org>2002-10-01 12:59:36 +0000
commitbadfab1e09781bb3f7e7597f189c8bd0b9e25d79 (patch)
treea0eaa28e02ebd3ab3a60930311159a3b5cb5a6bc /eclass/kernel.eclass
parentSecurity update. (diff)
downloadgentoo-2-badfab1e09781bb3f7e7597f189c8bd0b9e25d79.tar.gz
gentoo-2-badfab1e09781bb3f7e7597f189c8bd0b9e25d79.tar.bz2
gentoo-2-badfab1e09781bb3f7e7597f189c8bd0b9e25d79.zip
make more universal by adding kernel_universal_unpack
Diffstat (limited to 'eclass/kernel.eclass')
-rw-r--r--eclass/kernel.eclass19
1 files changed, 13 insertions, 6 deletions
diff --git a/eclass/kernel.eclass b/eclass/kernel.eclass
index 95d30216f2a2..3994a192140e 100644
--- a/eclass/kernel.eclass
+++ b/eclass/kernel.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.8 2002/10/01 06:42:30 lostlogic Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel.eclass,v 1.9 2002/10/01 12:59:36 lostlogic Exp $
ECLASS=kernel
EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst
# This eclass contains the common functions to be used by all lostlogic
@@ -39,11 +39,7 @@ kernel_exclude() {
done
}
-kernel_src_unpack() {
-
- kernel_exclude
-
- ./addpatches . ${WORKDIR}/linux-${KV} || die "Addpatches failed, bad KERNEL_ExCLUDE?"
+kernel_universal_unpack() {
find . -iname "*~" | xargs rm 2> /dev/null
@@ -66,6 +62,17 @@ kernel_src_unpack() {
#this file is required for other things to build properly, so we autogenerate it
make include/linux/version.h || die
+
+}
+
+kernel_src_unpack() {
+
+ kernel_exclude
+
+ ./addpatches . ${WORKDIR}/linux-${KV} || die "Addpatches failed, bad KERNEL_ExCLUDE?"
+
+ kernel_universal_unpack
+
}
kernel_src_compile() {