projects
/
summon-arm-toolchain.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8dc0f23
)
use newlib options from jsnyder's arm-eabi-toolchain
author
Matthias Rampke
<matthias@rampke.de>
Sat, 13 Aug 2011 17:05:49 +0000
(19:05 +0200)
committer
Matthias Rampke
<matthias@rampke.de>
Sat, 13 Aug 2011 17:05:49 +0000
(19:05 +0200)
summon-arm-toolchain
patch
|
blob
|
history
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index 7ad12eb5a74bdd5fc6a93a2f3a201cef13e30a32..a4d501ef90684f1ff4c58d5c11cc7b1f661712ef 100755
(executable)
--- a/
summon-arm-toolchain
+++ b/
summon-arm-toolchain
@@
-338,6
+338,8
@@
if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then
unpack ${NEWLIB}
cd build
log "Configuring ${NEWLIB}"
unpack ${NEWLIB}
cd build
log "Configuring ${NEWLIB}"
+ # configuration options and flags partially
+ # from https://github.com/jsnyder/arm-eabi-toolchain
../${NEWLIB}/configure --target=${TARGET} \
--prefix=${PREFIX} \
--enable-interwork \
../${NEWLIB}/configure --target=${TARGET} \
--prefix=${PREFIX} \
--enable-interwork \
@@
-347,9
+349,13
@@
if [ ! -e ${STAMPS}/${NEWLIB}.build ]; then
--disable-nls \
--disable-werror \
--disable-newlib-supplied-syscalls \
--disable-nls \
--disable-werror \
--disable-newlib-supplied-syscalls \
+ --disable-shared \
+ --disable-nls \
+ --disable-libgloss \
--with-float=soft
log "Building ${NEWLIB}"
--with-float=soft
log "Building ${NEWLIB}"
- make ${MAKEFLAGS} CFLAGS_FOR_TARGET="-msoft-float" CCASFLAGS="-msoft-float"
+ NEWLIB_FLAGS="-ffunction-sections -fdata-sections -DPREFER_SIZE_OVER_SPEED -D__OPTIMIZE_SIZE__ -Os -fomit-frame-pointer -fno-unroll-loops -D__BUFSIZ__=256 -mabi=aapcs"
+ make ${MAKEFLAGS} CFLAGS_FOR_TARGET="${NEWLIB_FLAGS}" CCASFLAGS="${NEWLIB_FLAGS}"
install ${NEWLIB} install
cd ..
log "Cleaning up ${NEWLIB}"
install ${NEWLIB} install
cd ..
log "Cleaning up ${NEWLIB}"