Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/gmp/dist Teach configfsf.guess about coldfire...



details:   https://anonhg.NetBSD.org/src/rev/16def97e04a0
branches:  trunk
changeset: 330120:16def97e04a0
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jun 23 17:18:43 2014 +0000

description:
Teach configfsf.guess about coldfire and earm

diffstat:

 external/lgpl3/gmp/dist/configfsf.guess |  16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r b2a38f1db320 -r 16def97e04a0 external/lgpl3/gmp/dist/configfsf.guess
--- a/external/lgpl3/gmp/dist/configfsf.guess   Mon Jun 23 15:22:07 2014 +0000
+++ b/external/lgpl3/gmp/dist/configfsf.guess   Mon Jun 23 17:18:43 2014 +0000
@@ -158,14 +158,28 @@
        case "${UNAME_MACHINE_ARCH}" in
            armeb) machine=armeb-unknown ;;
            arm*) machine=arm-unknown ;;
+           coldfire) machine=m5407-unknown ;;
+           earm*eb*) machine=armeb-unknown ;;
+           earm*) machine=arm-unknown ;;
            sh3el) machine=shl-unknown ;;
            sh3eb) machine=sh-unknown ;;
            sh5el) machine=sh5le-unknown ;;
            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
        esac
        # The Operating System including object format, if it has switched
-       # to ELF recently, or will in the future.
+       # to ELF recently, or will in the future and ABI.
        case "${UNAME_MACHINE_ARCH}" in
+           coldfire) os=netbsdelf ;;
+           earm*)
+               eval $set_cc_for_build
+               if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+                       | grep -q __ARM_PCS_VFP
+               then
+                   os=netbsdelf-eabi
+               else
+                   os=netbsdelf-eabihf
+               fi
+               ;;
            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
                eval $set_cc_for_build
                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \



Home | Main Index | Thread Index | Old Index