summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Birchinger <joker@gentoo.org>2003-03-25 15:16:27 +0000
committerChristian Birchinger <joker@gentoo.org>2003-03-25 15:16:27 +0000
commite81bde1c268455de03e4efb247effe70148e6cbd (patch)
treea50d50753c8c2cff311e17b338c493acc039ee69 /sys-kernel/sparc-sources
parenttouchup (diff)
downloadhistorical-e81bde1c268455de03e4efb247effe70148e6cbd.tar.gz
historical-e81bde1c268455de03e4efb247effe70148e6cbd.tar.bz2
historical-e81bde1c268455de03e4efb247effe70148e6cbd.zip
Added an optional HME patch for Ultra1 machines
Diffstat (limited to 'sys-kernel/sparc-sources')
-rw-r--r--sys-kernel/sparc-sources/ChangeLog6
-rw-r--r--sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild19
2 files changed, 23 insertions, 2 deletions
diff --git a/sys-kernel/sparc-sources/ChangeLog b/sys-kernel/sparc-sources/ChangeLog
index 8999e7c2d12e..19c14cb697da 100644
--- a/sys-kernel/sparc-sources/ChangeLog
+++ b/sys-kernel/sparc-sources/ChangeLog
@@ -1,9 +1,13 @@
# ChangeLog for sys-kernel/sparc-sources
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/ChangeLog,v 1.18 2003/03/20 14:56:11 joker Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/ChangeLog,v 1.19 2003/03/25 15:16:27 joker Exp $
*sparc-sources-2.4.20-r6 (19 Mar 2003)
+ 25 Mar 2003; Christian Birchinger <joker@gentoo.org>
+ sparc-sources-2.4.20-r6.ebuild:
+ Added an optional HME patch for Ultra1 machines
+
20 Mar 2003; Christian Birchinger <joker@gentoo.org>
sparc-sources-2.4.20-r6.ebuild:
Changed KEYWORD from ~sparc to sparc
diff --git a/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild b/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild
index e232af98ffd2..a6290302df6a 100644
--- a/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild
+++ b/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild,v 1.2 2003/03/20 14:56:11 joker Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/sparc-sources/sparc-sources-2.4.20-r6.ebuild,v 1.3 2003/03/25 15:16:27 joker Exp $
IUSE="build"
@@ -43,4 +43,21 @@ src_unpack() {
# failures, if they aren't there that is a good thing!
kernel_src_unpack
+
+ # Patch the HME driver only on Ultra1 machines.
+ [ -n "${U1_HME_FIX}" ] && epatch ${FILESDIR}/U1-hme-lockup.patch
+}
+
+pkg_postinst() {
+ kernel_pkg_postinst
+
+ # Display SUN Ultra 1 HME warning if it can be detected or if the machinetype is unknown.
+ if [ ! -r "/proc/openprom/name" -o "`cat /proc/openprom/name 2>/dev/null`" = "'SUNW,Ultra-1'" ]; then
+ einfo
+ einfo "For users with an Enterprise model Ultra 1 using the HME network interface,"
+ einfo "please emerge the kernel using the following command:"
+ einfo
+ einfo "U1_HME_FIX=y emerge sparc-sources"
+ einfo
+ fi
}