-
Notifications
You must be signed in to change notification settings - Fork 40
Newlib hacking
#Newlib hacking# There may come a point where you want or need to add a library call to our newlib fork. First off you will want to ensure, as always, that your current toolchain is at the latest release.
Then clone the newlib repository:
git clone https://github.com/insane-adding-machines/newlib.git
Then enter the newlib root, and then you can add your changes to ./newlib/libc/sys/frosted. Once you are done with your changes, if you added any files, we need to make the build system aware, inside ./newlib/libc/sys/frosted you run:
autoconf
autoreconf -fi
Now we can build it from the newlib root directory:
./buildme-frosted.sh
And patch your toolchain installation:
./install_to.sh /home/foo/src/arm-frosted-eabi
If you have it installed globally, prefix the command with sudo.
Now you can rebuild frosted as you do otherwise, and test out your new library call.
Once you are sure your library call is finished, consider sharing it back! Please fork our newlib repository and make a pull request!