summaryrefslogtreecommitdiff
path: root/installplatform
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-01-19 11:40:59 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-01-19 11:40:59 +0200
commit240b2d3441ce0711b0eacdc5345b3a4d9b77a716 (patch)
treeeb1f9467ddc240ce20de61ef297c68815ca673b3 /installplatform
parent735c83ad5291858cc981f739c3db5165d50598d5 (diff)
downloadlibrpm-tizen-240b2d3441ce0711b0eacdc5345b3a4d9b77a716.tar.gz
librpm-tizen-240b2d3441ce0711b0eacdc5345b3a4d9b77a716.tar.bz2
librpm-tizen-240b2d3441ce0711b0eacdc5345b3a4d9b77a716.zip
Add support for Geode CPU (rhbz#428979)
Patch from Dennis Gilmore
Diffstat (limited to 'installplatform')
-rwxr-xr-xinstallplatform6
1 files changed, 3 insertions, 3 deletions
diff --git a/installplatform b/installplatform
index 30f661a6c..a51312a7a 100755
--- a/installplatform
+++ b/installplatform
@@ -20,7 +20,7 @@ E_O_F
RPM="./rpm --rcfile=$TEMPRC --macros=$MACROS"
-canonarch_sed='s_i.86_i386_;s_pentium[34]_i386_;s_athlon_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_arm[^-]*_arm_;s_\(powerpc\|ppc\)[^-]*_ppc_'
+canonarch_sed='s_i.86_i386_;s_pentium[34]_i386_;s_athlon_i386_;s_geode_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_arm[^-]*_arm_;s_\(powerpc\|ppc\)[^-]*_ppc_'
arch="`$RPM --eval '%{_arch}'|sed -e "$canonarch_sed"`"
VENDOR="`$RPM --eval '%{_vendor}'`"
OS="`$RPM --eval '%{_os}'`"
@@ -29,7 +29,7 @@ target_platform="`$RPM --eval '%{?_gnu:%undefine _gnu}%{_target_platform}'|sed -
target="`$RPM --eval '%{_target}'|sed -e "$canonarch_sed"`"
case "$arch" in
- i[3456]86|pentium[34]|athlon) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_pentium3_ s_i386_pentium4_ s_i386_athlon_' ;;
+ i[3456]86|pentium[34]|athlon|geode) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_ s_i386_pentium3_ s_i386_pentium4_ s_i386_athlon_ s_i386_geode_' ;;
alpha*) SUBSTS='s_alpha_alpha_ s_alpha_alphaev5_ s_alpha_alphaev56_ s_alpha_alphapca56_ s_alpha_alphaev6_ s_alpha_alphaev67_' ;;
arm*) SUBSTS='s_arm_armv3l_ s_arm_armv4l_ s_arm_armv4tl_ s_arm_armv5tel_ s_arm_armv5tejl_ s_arm_armv6l_' ;;
sparc*) SUBSTS='s_sparc\(64\|64v\|v9v\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
@@ -69,7 +69,7 @@ for SUBST in $SUBSTS ; do
s390x-linux) LIB=lib64; MULTILIBNO=2 ;;
ppc-linux) MULTILIBNO=1 ;;
ppc64-linux) LIB=lib64; MULTILIBNO=2 ;;
- i?86-linux|pentium?-linux|athlon-linux) MULTILIBNO=1 ;;
+ i?86-linux|pentium?-linux|athlon-linux|geode-linux) MULTILIBNO=1 ;;
x86_64-linux|amd64-linux|ia32e-linux) LIB=lib64; MULTILIBNO=2 ;;
esac