Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Script to build newlib
- # IMPORTANT:
- # - make sure the cross-tool chain is present in the PATH
- # - untar newlib.tar.bz2
- TARGET=arm-none-eabi
- ROOT=/C/tools/IDE/gcc/lib_build
- INSTALLDIR_NATIVE=$ROOT/install-native.newLib
- INSTALLDIR_NATIVE_DOC=$INSTALLDIR_NATIVE/share/doc/gcc-arm-none-eabi
- echo Creating build directory...
- mkdir newlib.build
- echo Entering build directory...
- cd newlib.build
- export CFLAGS='-ffunction-sections -fdata-sections'
- # run configure program to configure the build
- echo Configuring newlib build...
- ../gcc-arm-none-eabi-4_9-2014q4-20141203/src/newlib/configure \
- --target=$TARGET \
- --prefix=$INSTALLDIR_NATIVE \
- --infodir=$INSTALLDIR_NATIVE_DOC/info \
- --mandir=$INSTALLDIR_NATIVE_DOC/man \
- --htmldir=$INSTALLDIR_NATIVE_DOC/html \
- --pdfdir=$INSTALLDIR_NATIVE_DOC/pdf \
- --enable-newlib-io-long-long \
- --enable-newlib-register-fini \
- --disable-newlib-supplied-syscalls \
- --disable-nls
- #echo Building newlib-nano...
- make -j
- #echo Installing...
- make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement