From df6f361f16c1b9d365a35b43a6c560a297643d82 Mon Sep 17 00:00:00 2001 From: jbj Date: Thu, 1 Jun 2000 00:54:36 +0000 Subject: [PATCH] Add athlon rpmrc config. Add sparcv9 per-platform config. CVS patchset: 3784 CVS date: 2000/06/01 00:54:36 --- installplatform | 3 +++ rpmrc.in | 14 ++++++++++---- scripts/brp-sparc64-linux | 14 +++++++++++++- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/installplatform b/installplatform index f6a3816..0045320 100755 --- a/installplatform +++ b/installplatform @@ -58,6 +58,9 @@ for SUBST in $SUBSTS ; do [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET} [ "${ARCH}-${VENDOR}-${OS}" = "${TARGET_PLATFORM}" ] || ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/${TARGET_PLATFORM} + [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${OS} + [ "$ARCH" = sparc ] && ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/sparcv9-${VENDOR}-${OS} + done ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS} diff --git a/rpmrc.in b/rpmrc.in index 6bdc9c9..9b4d1b0 100644 --- a/rpmrc.in +++ b/rpmrc.in @@ -1,4 +1,4 @@ -# $Id: rpmrc.in,v 2.20 2000/05/01 17:50:35 jbj Exp $ +# $Id: rpmrc.in,v 2.21 2000/06/01 00:54:36 jbj Exp $ ############################################################# @@ -8,11 +8,13 @@ # Values for RPM_OPT_FLAGS for various platforms optflags: i386 -O2 -m486 -fno-strength-reduce +optflags: i686 -O2 -march=i686 +optflags: athlon -O2 -march=athlon optflags: ia64 -O2 optflags: alpha -O2 -optflags: sparc -O2 -optflags: sparcv9 -O2 -mv8 -mtune=ultrasparc -optflags: sparc64 -O2 +optflags: sparc -O2 -m32 -mtune=ultrasparc +optflags: sparcv9 -O2 -m32 -mcpu=ultrasparc +optflags: sparc64 -O2 -m64 -mcpu=ultrasparc optflags: m68k -O2 -fomit-frame-pointer optflags: ppc -O2 -fsigned-char optflags: parisc -O2 -mpa-risc-1-0 @@ -35,6 +37,7 @@ optflags: hades -O2 -fomit-frame-pointer ############################################################# # Canonical arch names and numbers +arch_canon: athlon: athlon 1 arch_canon: i986: i986 1 arch_canon: i886: i886 1 arch_canon: i786: i786 1 @@ -118,6 +121,7 @@ buildarchtranslate: osfmach3_i386: i386 buildarchtranslate: ia64: ia64 +buildarchtranslate: athlon: i386 buildarchtranslate: i986: i386 buildarchtranslate: i886: i386 buildarchtranslate: i786: i386 @@ -151,6 +155,7 @@ arch_compat: alpha: axp noarch arch_compat: ia64: noarch +arch_compat: athlon: i686 arch_compat: i986: i886 arch_compat: i886: i786 arch_compat: i786: i686 @@ -232,6 +237,7 @@ os_compat: TOS: FreeMiNT MiNT mint buildarch_compat: ia64: noarch +buildarch_compat: athlon: i686 buildarch_compat: i986: i886 buildarch_compat: i886: i786 buildarch_compat: i786: i686 diff --git a/scripts/brp-sparc64-linux b/scripts/brp-sparc64-linux index 5f47c77..5e511b3 100644 --- a/scripts/brp-sparc64-linux +++ b/scripts/brp-sparc64-linux @@ -11,8 +11,20 @@ LANG= # directories for f in `find $RPM_BUILD_ROOT{,/usr,/usr/X11R6}/lib -maxdepth 1 -type f -o -type l 2>/dev/null`; do - if objdump -h $f 2>/dev/null | grep ':[ ]*file format elf64-sparc$' >/dev/null 2>&1; then + ff=$f + while [ -L $ff ]; do + l=`ls -l $ff | awk '{ print $11 }'` + case $l in + /*) ff=$RPM_BUILD_ROOT$l ;; + *) ff=`dirname $ff`/$l ;; + esac + done + if file $ff 2>/dev/null | grep ': ELF 64-bit .SB' | grep -v ': ELF 64-bit .SB executable' > /dev/null; then files="$files $f" + elif file $ff 2>/dev/null | grep 'ar archive' > /dev/null; then + if objdump -h $ff 2>/dev/null | grep ':[ ]*file format elf64-sparc' > /dev/null; then + files="$files $f" + fi fi done for f in $files; do -- 2.7.4