···11-Adding uClibc support for a new platform
22-33-Sometimes you want to cross-compile to another architecture, for example an
44-embedded devices. For embedded devices the uClibc C library is popular.
55-In Nixpkgs there is support for uClibc for several architectures but not
66-everything is supported.
77-88-Adding support is not very difficult,
99-1010-* Add your architecture to the buildfiles in
1111-$nixpkgs/development/tools/misc/binutils-cross
1212-1313-* Add your architecture to the buildfiles in
1414-$nixpkgs/development/compilers/gcc-4.0-cross
1515-1616-* Add your architecture to the buildfiles in
1717-$nixpkgs/os-specific/linux/kernel-headers-cross
1818-1919-* Add your architecture to the buildfiles in
2020-$nixpkgs/development/uclibc
2121-2222-In the latter directory you will also need a configuration file for uClibc.
2323-You can make these by unpacking the uClibc sources and run a "make menuconfig".
2424-In the configuration a few things need to be adapted:
2525-2626-- kernel sources -> need to point at our own kernel headers
2727-- install -> needs to point at $out