We would like to create in house cross compiler tool chain in debian way for arm(Dragon 410C boards). The tool chain consists of glibc, gcc, binutils. The way is to get the source code of the tool chain and build them as ‘.deb’ for arm target. We followed different methods to get the debians as below.
E.g: dpkg --add-architecture i386
Ex: apt-get build-dep binutils
apt-get source -b
Using the above method we created binutils debian for ARM processor(binutils-aarch64-linux-gnu_2.26.1-ubunu-16.04.6_amd64.deb) successfully. But when we are trying to build the arm debians for glibc, we are able to create them only for x86 and i386 architectures but not for arm architecture.
We tried doing it with pbuilder as well. Here is the procedure we followed.
- sudo apt-get install pbuilder debootstrap devscripts
- sudo pbuilder create --debootstrapopts --variant=buildd
- sudo OS=debian pbuilder --build --distribution wheezy --architecture armhf --basetgz /var/cache/pbuilder/debian-wheezy-armhf-base.tgz ./glibc_2.23-0ubuntu10.dsc
We are not able to create tarball for xenial debian version itself.
Can you please help to resolve this issue.