This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
proposed patch: arm -> arm* in config.host
- From: Dan Egnor <egnor at ofb dot net>
- To: newlib at sourceware dot org
- Cc: aschultz at google dot com
- Date: Thu, 9 Feb 2012 13:43:17 -0800
- Subject: proposed patch: arm -> arm* in config.host
- References: <CAECC7wkBVK-FmD=tO+wfEpgnkdNOff5-URru=7f0DNkjGYG3aA@mail.gmail.com>
Per Jeff's suggestion at
http://sourceware.org/bugzilla/show_bug.cgi?id=13676?...
Many arm targets use variant names like "armhl", "armel", "armeb", etc..
(In our case, we use "armeb-unknown-eabi" for a big-endian bare-metal target.)
Currently, newlib doesn't accept these; the attached patch repairs
this to accept any arm* host. Note that these variants are treated
identically. ?(In our case, at least, no special treatment is needed;
for example, endianness and FPU type are already handled via the
appropriate preprocessor macros.)
I admit that I don't know much about the way newlib's host
configuration works. ?The patch (or one very similar to it) Works For
Me but I'm not sure if it's a good general solution.
-- egnor
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/ChangeLog,v
retrieving revision 1.1014
diff -u -r1.1014 ChangeLog
--- ChangeLog 18 Dec 2011 10:20:51 -0000 1.1014
+++ ChangeLog 9 Feb 2012 21:31:37 -0000
@@ -1,3 +1,7 @@
+2012-02-09 Dan Egnor <egnor@ofb.net>
+
+ * configure.host: Accept "arm*" host spec instead of just "arm".
+
2011-12-18 Eric Botcazou <ebotcazou@adacore.com>
* configure: Regenerate.
Index: newlib/configure.host
===================================================================
RCS file: /cvs/src/src/newlib/configure.host,v
retrieving revision 1.122
diff -u -r1.122 configure.host
--- newlib/configure.host 29 Nov 2011 06:33:48 -0000 1.122
+++ newlib/configure.host 9 Feb 2012 21:31:38 -0000
@@ -98,7 +98,7 @@
arc)
machine_dir=
;;
- arm)
+ arm*)
machine_dir=arm
;;
avr*)
@@ -364,7 +364,7 @@
arc-*-*)
sys_dir=arc
;;
- arm-*-*)
+ arm*-*-*)
sys_dir=arm
if [ "x${newlib_may_supply_syscalls}" = "xno" ] ; then
have_crt0="no"
@@ -552,10 +552,10 @@
arc-*-*)
syscall_dir=syscalls
;;
- arm-*-pe)
+ arm*-*-pe)
syscall_dir=syscalls
;;
- arm-*-*)
+ arm*-*-*)
syscall_dir=syscalls
# If newlib is supplying syscalls, select which debug protocol is being used.
# ARM_RDP_MONITOR selects the Demon monitor.