add support for metag architecture
[openadk.git] / docs / customize-libc-config.txt
blobec6e50ff6f4691c0bd242346363fd9fc7c0cdd45
1 // -*- mode:doc; -*-
2 // vim: set syntax=asciidoc:
4 [[libc-custom]]
5 Customizing the libc configuration
6 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 Just like xref:busybox-custom[BusyBox], http://www.uclibc.org/[uClibc]
9 and http://www.uclibc-ng.org/[uClibc-ng]
10 offering a lot of configuration options. They allow you to select
11 various functionalities depending on your needs and limitations.
12 OpenADK chooses automatically the best configuration regarding 
13 resulting code size, standard conformance, portability and GNU 
14 libc compatibility.
16 If you still have the requirements to change the default, regenerate
17 a new uClibc/uClibc-ng config from the existing one:
19 ----------------
20  $ tar xvf dl/uClibc-x.y.z.tar.bz2
21  $ cd uClibc-x.y.z && patch -p1 <../toolchain/uClibc/patches-x.y.z/*.patch
22  $ cp ../target/<arch>/uclibc.config .config
23  $ make menuconfig
24 ----------------
26 Make all required changes. Then copy the newly created uClibc configuration back
27 and rebuild your targetsystem, including the toolchain components:
29 ----------------
30  $ cp .config ../target/<arch>/uclibc.config
31  $ cd .. && make cleandir && make
32 ----------------
34 The config is shared by uClibc and uClibc-ng.
35 There are no customization options for GNU libc or musl available.