This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH 1/5] spe-add-platform-config
- From: jschopp <jschopp at austin dot ibm dot com>
- To: jschopp <jschopp at austin dot ibm dot com>
- Cc: jjohnstn at redhat dot com, newlib at sources dot redhat dot com
- Date: Thu, 03 Aug 2006 15:44:12 -0500
- Subject: [PATCH 1/5] spe-add-platform-config
- References: <44D25F03.706@austin.ibm.com>
The SPE/SPU stands for Special Purpose Engine/Unit. Each cell processor consists of one
or more (currently 1) PowerPC main processor and one or more (currently 8) SPEs. Newlib
on the PowerPC side needs no special modification, therefore to support cell only the
SPU/SPE support needs to be added.
This patch adds the config option for the new platform.
SPU enablement
Index: newlib-1.14.0/config.sub
===================================================================
--- newlib-1.14.0.orig/config.sub
+++ newlib-1.14.0/config.sub
@@ -115,6 +115,15 @@ case $# in
exit 1;;
esac
+case $1 in
+ spu)
+ set spu-unknown-elf
+ ;;
+ *)
+ ;;
+esac
+
+
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
@@ -287,6 +296,9 @@ case $basic_machine in
m32c)
basic_machine=$basic_machine-unknown
;;
+ spu)
+ basic_machine=$basic_machine-unknown
+ ;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
@@ -372,6 +384,8 @@ case $basic_machine in
;;
m32c-*)
;;
+ spu-*)
+ ;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)