README 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. * Configuration:
  2. cp ./extra/Configs/Config.<target arch> .Config
  3. Then edit ./Config for your setup. In particular, modify
  4. CROSS and KERNEL_SOURCE as necessary. You may also want
  5. to modify PREFIX if you want to install the development
  6. environment to /usr/local/ or elsewhere. By default, the
  7. development environment is installed into /usr and
  8. /usr/<arch>-linux-uclibc/.
  9. * Building:
  10. make
  11. * Installing the development environment:
  12. (As root, if necessary,)
  13. make install
  14. This will install the header files, libraries, and the gcc
  15. wrapper into the directories defined in Config.
  16. If you are targetting the same architecture as the host machine,
  17. you may want to add a link from /lib/ld-uclibc.0 to the location
  18. where ld-uclibc.0 was installed. This allows you to run binaries
  19. compiled against uClibc without contaminating /lib too much.
  20. * Installing the target runtime environment:
  21. (As root, if necessary,)
  22. make TARGET_PREFIX=`pwd`/_install install_target
  23. This installs only the files that are necessary to run binaries
  24. compiled against uClibc. Hint: You really don't want to install
  25. the target runtime environment on the host machine.
  26. * Using uClibc:
  27. To compile programs with uClibc,
  28. export PATH={uClibc DEVEL_PREFIX}/bin:$PATH
  29. and then just ./configure and make as usual.
  30. Note: You may also want to look at extra/gcc-uclibc/gcc-uclibc.c for
  31. additional information concerning what options and environment
  32. variables the gcc wrapper handles.