customize-libc-config.txt 1.1 KB

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