diff options
author | Guy Martin <gmsoft@gentoo.org> | 2014-01-22 15:00:55 +0100 |
---|---|---|
committer | Richard Yao <ryao@gentoo.org> | 2014-01-24 22:11:32 -0500 |
commit | ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c (patch) | |
tree | 92435fb6d36ad899c1653b841e33c661b019b69b | |
parent | Add patch to fix busybox bunzip2, see #497916. (diff) | |
download | genkernel-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.x | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/netboot/linuxrc.x b/netboot/linuxrc.x index 3e46859..69e7e7a 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 |