summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-10-13 09:39:48 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-10-13 09:39:48 +0000
commitcc5aaecaf0293970bf21da1b2430bf0891a5f3a8 (patch)
tree57b348116cf70c10802be13eec674388c4aab4c6
parentef7a515140bb16527e8fcf628c2440fe029d2a03 (diff)
downloadOSELAS.Toolchain-cc5aaecaf0293970bf21da1b2430bf0891a5f3a8.tar.gz
OSELAS.Toolchain-cc5aaecaf0293970bf21da1b2430bf0891a5f3a8.tar.xz
* fixup_ptxconfigs.sh:
adpted to new selects git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@7762 f8d472c7-5700-0410-ac5a-87979cec3adf
-rwxr-xr-xfixup_ptxconfigs.sh57
1 files changed, 33 insertions, 24 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh
index 219295a..5663919 100755
--- a/fixup_ptxconfigs.sh
+++ b/fixup_ptxconfigs.sh
@@ -37,6 +37,9 @@ fixup() {
libc*)
PTXCONF_AVRLIB_VERSION="${part##libc-}"
;;
+ newlib*)
+ PTXCONF_NEWLIB_VERSION="${part##newlib-}"
+ ;;
binutils*)
PTXCONF_CROSS_BINUTILS_VERSION="${part##binutils-}"
;;
@@ -70,7 +73,7 @@ fixup() {
# defaults
PTXCONF_PREFIX="/opt"
- PTXCONF_GLIBC_EXTRA_CONFIG=""
+ PTXCONF_GLIBC_CONFIG_EXTRA=""
PTXCONF_GLIBC_TIMESTAMP=""
#
@@ -112,61 +115,71 @@ fixup() {
esac
#
- # PTXCONF_CROSS_GCC_EXTRA_CONFIG
- # PTXCONF_GLIBC_EXTRA_CONFIG
+ # PTXCONF_CROSS_GCC_CONFIG_EXTRA
+ # PTXCONF_GLIBC_CONFIG_EXTRA
#
case "${PTXCONF_GNU_TARGET}" in
# hard fpa
arm-v4t_hardfloat-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=hard --with-fpu=fpa --with-arch=armv4t"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=hard --with-fpu=fpa --with-arch=armv4t"
;;
arm-xscale_hardfloat-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=hard --with-fpu=fpa --with-cpu=xscale"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=hard --with-fpu=fpa --with-cpu=xscale"
;;
# softfp, vfp
arm-1136jfs-linux-gnueabi)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=softfp --with-fpu=vfp --with-cpu=arm1136jf-s"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=softfp --with-fpu=vfp --with-cpu=arm1136jf-s"
;;
# soft, vfp
armeb-xscale-linux-gnueabi|armeb-xscale-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=soft --with-fpu=vfp --with-cpu=xscale"
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-cpu=xscale"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
;;
arm-iwmmx-linux-gnueabi)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=soft --with-fpu=vfp --with-cpu=iwmmxt"
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-cpu=iwmmxt"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
;;
arm-v4t-linux-gnueabi|arm-v4t-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=soft --with-fpu=vfp --with-arch=armv4t"
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-arch=armv4t"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
;;
arm-v5te-linux-gnueabi)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=soft --with-fpu=vfp --with-cpu=arm926ej-s --with-arch=armv5te"
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-cpu=arm926ej-s --with-arch=armv5te"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
;;
arm-xscale-linux-gnueabi|arm-xscale-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-float=soft --with-fpu=vfp --with-cpu=xscale"
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-cpu=xscale"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
+ ;;
+
+ arm-cortexm3-eabi)
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft --with-fpu=vfp --with-cpu=cortex-m3 --with-mode=thumb"
;;
i586-unknown-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-arch=i586"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-arch=i586"
;;
i686-unknown-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-arch=i686"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-arch=i686"
;;
mipsel-softfloat-linux-gnu)
- PTXCONF_GLIBC_EXTRA_CONFIG="--without-fp"
+ PTXCONF_GLIBC_CONFIG_EXTRA="--without-fp"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-float=soft"
;;
powerpc-603e-linux-gnu)
- PTXCONF_CROSS_GCC_EXTRA_CONFIG="--with-cpu=603e --disable-altivec"
+ PTXCONF_CROSS_GCC_CONFIG_EXTRA="--with-cpu=603e --disable-altivec"
;;
avr)
+ #FIXME
+ ;;
+
+ arm-elf)
+ #FIXME
;;
*)
@@ -220,10 +233,6 @@ fixup() {
eval sed -i "${sed_magic}" "${config}"
- if [ -e selected_ptxconfig ]; then
- rm selected_ptxconfig
- fi
-
echo
echo
echo