Dear Mr. Elliston,

Please find attached a patch to add config.guess support for the ARM
hard-float gnueabi variant (armhf, arm-*-linux-gnueabihf).

This patch is needed by the Debian ARM port to introduce support for the new
ARM hard-float target/port.

The patch is already in git format, and can be applied through git-apply
or git-am.  If you'd rather receive it in the old context format, I'd be
happy to convert it to context format.

Should you accept the patch, I'd appreciate if you could email me a notice
when it gets pushed to your public git repository.


Yours sincerely,
Henrique de Moraes Holschuh
autotools-dev Debian maintainer



References:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626101

Patch authors:
Hector Oron <zu...@debian.org>
Konstantinos Margaritis <mar...@debian.org>

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
>From 190d8350868dbdb45b61d9d58d293b03dc790b0b Mon Sep 17 00:00:00 2001
From: Hector Oron <zu...@debian.org>
Date: Tue, 10 May 2011 15:49:34 -0300
Subject: [PATCH] config.guess: add support for ARM abihf

2011-05-09  Hector Oron <zu...@debian.org>
            Konstantinos Margaritis <mar...@debian.org>

       * config.guess: Add configuration support for
       ${UNAME_MACHINE}-unknown-linux-gnueabihf on arm targets.
---
 ChangeLog    |    6 ++++++
 config.guess |    8 +++++++-
 2 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c76e2f3..58140e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-09  Hector Oron <zu...@debian.org>
+	    Konstantinos Margaritis <mar...@debian.org>
+
+	* config.guess: Add configuration support for
+	${UNAME_MACHINE}-unknown-linux-gnueabihf on arm targets.
+
 2011-03-31  Kirk Hays  <kh...@hayshaus.com>
 	    Ben Elliston  <b...@gnu.org>
 
diff --git a/config.guess b/config.guess
index 187cd54..378e703 100755
--- a/config.guess
+++ b/config.guess
@@ -882,7 +882,13 @@ EOF
 	then
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
 	else
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+	        | grep -q __ARM_PCS_VFP
+	    then
+	        echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+	    else
+	        echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+	    fi
 	fi
 	exit ;;
     avr32*:Linux:*:*)
-- 
1.7.2.5

Reply via email to