···1-Adding uClibc support for a new platform
2-3-Sometimes you want to cross-compile to another architecture, for example an
4-embedded devices. For embedded devices the uClibc C library is popular.
5-In Nixpkgs there is support for uClibc for several architectures but not
6-everything is supported.
7-8-Adding support is not very difficult,
9-10-* Add your architecture to the buildfiles in
11-$nixpkgs/development/tools/misc/binutils-cross
12-13-* Add your architecture to the buildfiles in
14-$nixpkgs/development/compilers/gcc-4.0-cross
15-16-* Add your architecture to the buildfiles in
17-$nixpkgs/os-specific/linux/kernel-headers-cross
18-19-* Add your architecture to the buildfiles in
20-$nixpkgs/development/uclibc
21-22-In the latter directory you will also need a configuration file for uClibc.
23-You can make these by unpacking the uClibc sources and run a "make menuconfig".
24-In the configuration a few things need to be adapted:
25-26-- kernel sources -> need to point at our own kernel headers
27-- install -> needs to point at $out