JDP : Crosscompiler

Home :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are a guest

Building a crosscompiler for sparc32 using a Debian/Linux box


This is how I did it, the result can be found in the files section.
CrosscompilingKernel

warning: I assume the host box is a Debian/Sarge box

get the needed packages
# apt-get install toolchain-source # apt-get build-dep glibc gcc


create binutils
apt-get source binutils download the appropriate patch from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231707 and apply it TARGET=sparc-linux fakeroot debian/rules binary-cross su -c 'dpkg -i ../binutils-some-version.deb'


libc
We use a little trick with dpkg-cross:
su -c 'tpkg-install-libc sparc'


make GCC
cd gcc-sparc-linux-3.2.3.cvs20030221 dpkg-buildpackage -uc -us -rfakeroot su -c 'dpkg -i ../gcc-packages-see-for-yourself.deb'


and you're done

Satisfy cross-compile dependencies
su -c "tpkg-install-libc sparc 'libmad0 libasound0$'"


Create dummy (empty) packages: see here

Cross-compile packages
apt-get source libc6 cd glibc-2.3.2.ds1 dpkg-buildpackage -uc -us -rfakeroot -asparc
There is no comment on this page. [Display comments/form]