summaryrefslogtreecommitdiffstats
path: root/fixup_ptxconfigs.sh
diff options
context:
space:
mode:
authorCarsten Schlote <c.schlote@konzeptpark.de>2007-08-27 12:43:44 +0000
committerCarsten Schlote <c.schlote@konzeptpark.de>2007-08-27 12:43:44 +0000
commitd65a399730fee37fe2272a0298b129e2ef905f4f (patch)
treea9a7f6cfbf509d4bcc7258e8c8045561892e7773 /fixup_ptxconfigs.sh
parent0371cfb1e9710fd703588fb314c5342f486eea80 (diff)
downloadOSELAS.Toolchain-d65a399730fee37fe2272a0298b129e2ef905f4f.tar.gz
OSELAS.Toolchain-d65a399730fee37fe2272a0298b129e2ef905f4f.tar.xz
2007-08-27 Carsten Schlote <c.schlote@konzeptpark.de>
* general: Added simple check to fixup_ptxconfigs.sh, which prevents changes to non glibc configs * general: Added some output to 'oldconfig' script printing the name of the currently processed ptxconfig. Seems to be useful in case that oldconfig requests input for new kconfig options * ptxconfigs: Updated all ptxconfigs with 'oldconfig' script. Now uses ptxdist '1.svn' version for configuration. * general: Added kconfig define ARCH for avr-8 target. There was no default config set for this arch. 2007-08-24 Carsten Schlote <c.schlote@konzeptpark.de> * general: new architecture: m68k support added to kconfigs * ptxconfigs: added some experimental configs for m68k/coldfire git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/trunks/OSELAS.Toolchain-trunk@3691 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'fixup_ptxconfigs.sh')
-rwxr-xr-xfixup_ptxconfigs.sh21
1 files changed, 12 insertions, 9 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh
index b348c6b..32c0058 100755
--- a/fixup_ptxconfigs.sh
+++ b/fixup_ptxconfigs.sh
@@ -1,16 +1,19 @@
#!/bin/bash
fixup() {
- eval `echo ${1} |
- sed -e "s/ptxconfigs\/\(.*\)_gcc-\(.*\)_glibc-\(.*\)_linux-\([^_-]*\).*\.ptxconfig/TARGET=\1 GCC=\2 GLIBC=\3 LINUX=\4/"`
+
+ PARMS=`echo ${1} | sed -e "s/ptxconfigs\/\(.*\)_gcc-\(.*\)_glibc-\(.*\)_linux-\([^_-]*\).*\.ptxconfig/TARGET=\1 GCC=\2 GLIBC=\3 LINUX=\4/"`
+ if test ! -e "${PARMS}"; then
+ eval ${PARMS}
- sed -i \
- -e "s/\(PTXCONF_GNU_TARGET\)=.*/\1=\"${TARGET}\"/" \
- -e "s/\(PTXCONF_CROSS_GCC_VERSION\)=.*/\1=\"${GCC}\"/" \
- -e "s/\(PTXCONF_GLIBC_VERSION\)=.*/\1=\"${GLIBC}\"/" \
- -e "s/\(PTXCONF_KERNEL_HEADERS_VERSION\)=.*/\1=\"${LINUX}\"/" \
- -e "s:\(PTXCONF_PREFIX_FIRST\)=.*:\1=\"/opt/\${PTXCONF_PROJECT}\":" \
- ${1}
+ sed -i \
+ -e "s/\(PTXCONF_GNU_TARGET\)=.*/\1=\"${TARGET}\"/" \
+ -e "s/\(PTXCONF_CROSS_GCC_VERSION\)=.*/\1=\"${GCC}\"/" \
+ -e "s/\(PTXCONF_GLIBC_VERSION\)=.*/\1=\"${GLIBC}\"/" \
+ -e "s/\(PTXCONF_KERNEL_HEADERS_VERSION\)=.*/\1=\"${LINUX}\"/" \
+ -e "s:\(PTXCONF_PREFIX_FIRST\)=.*:\1=\"/opt/\${PTXCONF_PROJECT}\":" \
+ ${1}
+ fi
}
#