aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuy Martin <gmsoft@gentoo.org>2014-01-22 15:00:55 +0100
committerRichard Yao <ryao@gentoo.org>2014-01-24 22:11:32 -0500
commitebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c (patch)
tree92435fb6d36ad899c1653b841e33c661b019b69b
parentAdd patch to fix busybox bunzip2, see #497916. (diff)
downloadgenkernel-ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c.tar.gz
genkernel-ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c.tar.bz2
genkernel-ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c.zip
Add machine detection for hppa.
Signed-off-by: Guy Martin <gmsoft@gentoo.org>
-rw-r--r--netboot/linuxrc.x16
1 files changed, 16 insertions, 0 deletions
diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x
index 3e468597..69e7e7a8 100644
--- a/netboot/linuxrc.x
+++ b/netboot/linuxrc.x
@@ -213,8 +213,23 @@ DetectPpc() {
#//--------------------------------------------------------------------------------
+#// Determine hppa Machine Type
+#//--------------------------------------------------------------------------------
+
+DetectHppa() {
+ case "${ARCHINFO}" in
+ parisc)
+ MYARCH="HPPA"
+ ;;
+ parisc64)
+ MYARCH="HPPA (64bit kernel)"
+ ;;
+ esac
+ MACHTYPE=$(grep 'model' /proc/cpuinfo | cut -d '/' -f 3 | head -n 1 | sed -e 's/ //g')
+}
+#//--------------------------------------------------------------------------------
#// Discover if the network is already running for us or not
#//--------------------------------------------------------------------------------
@@ -338,6 +353,7 @@ case "${ARCHINFO}" in
mount -t openpromfs openprom /proc/openprom
;;
ppc*) DetectPpc ;;
+ parisc*) DetectHppa ;;
*) MACHTYPE=$ARCHINFO ;;
esac