1
0

customize-libc-config.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. and http://www.uclibc-ng.org/[uClibc-ng]
  8. offering a lot of configuration options. They allow you to select
  9. various functionalities depending on your needs and limitations.
  10. OpenADK chooses automatically the best configuration regarding
  11. resulting code size, standard conformance, portability and GNU
  12. libc compatibility.
  13. If you still have the requirements to change the default, regenerate
  14. a new uClibc/uClibc-ng config from the existing one:
  15. ----------------
  16. $ tar xvf dl/uClibc-x.y.z.tar.bz2
  17. $ cd uClibc-x.y.z && patch -p1 <../toolchain/uClibc/patches-x.y.z/*.patch
  18. $ cp ../target/<arch>/uclibc.config .config
  19. $ make menuconfig
  20. ----------------
  21. Make all required changes. Then copy the newly created uClibc configuration back
  22. and rebuild your targetsystem, including the toolchain components:
  23. ----------------
  24. $ cp .config ../target/<arch>/uclibc.config
  25. $ cd .. && make cleandir && make
  26. ----------------
  27. The config is shared by uClibc and uClibc-ng.
  28. There are no customization options for GNU libc or musl available.