diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-28 10:40:24 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-05-28 10:40:24 +0000 |
commit | 1452528564d2f160f13df75f3990419ccfbf4ed2 (patch) | |
tree | 6f72d13d92bb679bcb7ac01b736d9be34f589742 /hardinfo2/configure | |
parent | dc675c6943f796cbc073f18762c63f7f48e01f48 (diff) |
Add support for armv4l (GP2X).
Diffstat (limited to 'hardinfo2/configure')
-rwxr-xr-x | hardinfo2/configure | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/hardinfo2/configure b/hardinfo2/configure index 2bd91403..f254de5a 100755 --- a/hardinfo2/configure +++ b/hardinfo2/configure @@ -64,6 +64,9 @@ case $PROC in sparc*) ln -sf linux/sparc arch/this ARCH="ARCH_SPARC" ;; + armv4l) + ln -sf linux/armv4l arch/this + ARCH="ARCH_ARMV4L" ;; *) # uname -m on m68k doesn't return anything useful :/ grep "680?0" /proc/cpuinfo > /dev/null @@ -78,6 +81,16 @@ case $PROC in ;; esac +if [ "x$ARCH" == "x" ]; then + echo "Your architecture is not supported yet. Please send the" + echo "output of the following commands to leandro@linuxmag.com.br:" + echo "" + echo " $ cat /proc/cpuinfo" + echo " $ uname -a" + echo " $ uname -m" + exit 1 +fi + # --------------------------------------------------------------------------- echo "Compiling $PACKAGE for $OS $PROC ($ARCH)." @@ -86,7 +99,7 @@ echo "" # --------------------------------------------------------------------------- echo -n "Checking for lspci... " -LSPCIPATH="/sbin/lspci /usr/sbin/lspci /bin/lspci /usr/bin/lspci `which lspci`" +LSPCIPATH="/sbin/lspci /usr/sbin/lspci /bin/lspci /usr/bin/lspci `which lspci 2>/dev/null`" for i in $LSPCIPATH; do if [ -x "$i" ]; then LSPCI=$i |