How To Build NewLib




Newlib is a C library intended for use on embedded systems or real time environment system development. It is a mixture of various libraries all under free software license that make them easy to use on embedded systems.

For more details visit original site :-

Why we need Newlib??
We need to port codes from third party sources like freeBSD or NetBSD. Once the code is reviewed and patch is accepted in Newlib then we have to apply the patch in RSB(RTEMS source builder).

Newlib Setup steps:-

Step 1:- Clone the git repository of newlib in your development folder

$ cd development

$ git clone git://sourceware.org/git/newlib-cygwin.git

Step 2:- Navigate to newlib-cygwin folder and provide the path.

$ cd newlib-cygwin

$ export PATH=/home/salil/development/rtems/5/bin:$PATH

Step 3:-

$ cd ..

$ mkdir b-sparc-rtems5-newlib

$ cd b-sparc-rtems5-newlib

$ ../newlib-cygwin/b-sparc-rtems5-newlib/configure --target=sparc-rtems5 --disable-shared --disable-nls --enable-werror --enable-newlib-supplied-syscalls --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld --prefix=/home/salil/development/rtems5/tools

$ make all

$ sudo PATH=/home/salil/development/rtems/5/bin:${PATH} make install

Now setup for Newlib is complete.

Comments

Popular posts from this blog

Introduction to RTEMS