Hi, I have a usecase where linaro toolchain is used to build my executables and the sysroot is copied and used as glibc for running my embedded system. Reason for this is, I want to use the same glibc what the application is compiled against.
I found a bug fix from glibc community which I want to cherry pick and rebuild the sysroot to include this fix. But, in the README.txt published with linaro toolchain binary, there are no instructions for rebuilding sysroot.
Can anyone point me to info on rebuilding sysroot? If formal steps don't exist, could you point me to the current process being followed by linaro so that I can observe the build log and attempt to do the same?
Thanks Bharath
On 29 May 2013 18:24, BHARATH H S bharath.vegito@gmail.com wrote:
Hi, I have a usecase where linaro toolchain is used to build my executables and the sysroot is copied and used as glibc for running my embedded system. Reason for this is, I want to use the same glibc what the application is compiled against.
I found a bug fix from glibc community which I want to cherry pick and rebuild the sysroot to include this fix. But, in the README.txt published with linaro toolchain binary, there are no instructions for rebuilding sysroot.
Can anyone point me to info on rebuilding sysroot? If formal steps don't exist, could you point me to the current process being followed by linaro so that I can observe the build log and attempt to do the same?
For arm-linux-gnueabihf toolchain, we do not build the sysroot from scratch. We just got it from Ubuntu precise distribution.
To build your source code, you'd update the .config file. (Suppose you have the build environment)
cd crosstool-ng-linaro-1.13.1-4.8-2013.04/builds/arm-linux-gnueabihf-linux ../../ct-ng menuconfig Then select C-library and the version. cd ../../ make -f contrib/linaro/build.mk After downloading and patching the libc source package, you can patch it manually.
BTW: libc version in crosstool-ng-linaro is a bit older. You can try upstream version with the same .config.
get crosstool-ng from from http://crosstool-ng.org/ build it cd YOUR-DIR cp ...crosstool-ng-linaro-1.13.1-4.8-2013.04/builds/arm-linux-gnueabihf-linux/.config . ...ct-ng build
Best regards! -Zhenqiang
linaro-toolchain@lists.linaro.org