From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 51DFC138A30 for ; Sat, 25 Jan 2014 03:11:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 71236E0B69; Sat, 25 Jan 2014 03:11:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A97D7E0B69 for ; Sat, 25 Jan 2014 03:11:12 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D4E1533F620 for ; Sat, 25 Jan 2014 03:11:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 845F4187B7 for ; Sat, 25 Jan 2014 03:11:10 +0000 (UTC) From: "Richard Yao" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Richard Yao" Message-ID: <1390619492.ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c.ryao@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: netboot/ X-VCS-Repository: proj/genkernel X-VCS-Files: netboot/linuxrc.x X-VCS-Directories: netboot/ X-VCS-Committer: ryao X-VCS-Committer-Name: Richard Yao X-VCS-Revision: ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c X-VCS-Branch: master Date: Sat, 25 Jan 2014 03:11:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: d7ce04b6-1c37-4ae2-9a15-4f2b05b1ee09 X-Archives-Hash: 939422a68ca45b21066e1823d3e693fb commit: ebd1221ef0ddf2b3d7a7fc8dfafcee689c16a93c Author: Guy Martin gentoo org> AuthorDate: Wed Jan 22 14:00:55 2014 +0000 Commit: Richard Yao gentoo org> CommitDate: Sat Jan 25 03:11:32 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=ebd1221e Add machine detection for hppa. Signed-off-by: Guy Martin gentoo.org> --- netboot/linuxrc.x | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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