README 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. * Configuration:
  2. cp ./extra/Configs/Config.<target arch> ./Config
  3. Then edit ./Config for your setup. In particular, modify CROSS and
  4. KERNEL_SOURCE as necessary. You may also want to modify
  5. SHARED_LIB_LOADER_PATH, DEVEL_PREFIX, and SYSTEM_DEVEL_PREFIX depending
  6. on where you want to install the development environment. By default,
  7. the development environment is installed into /usr/<arch>-linux-uclibc/.
  8. * Building:
  9. make
  10. * Installing the development environment:
  11. (As root, if necessary,)
  12. make install
  13. This will install the header files, libraries, and the gcc
  14. wrapper into the directories defined in Config.
  15. * Installing the target runtime environment:
  16. (As root, if necessary,)
  17. make PREFIX=<temporary path> install_target
  18. This installs only the files that are necessary to run binaries
  19. compiled against uClibc. Hint: You probably do not want to install
  20. the target runtime environment on your host machine.
  21. * Using uClibc:
  22. To compile programs with uClibc,
  23. export PATH={uClibc DEVEL_PREFIX}/bin:$PATH
  24. and then just ./configure and make as usual.
  25. Note: You may also want to look at extra/gcc-uclibc/gcc-uclibc.c for
  26. additional information concerning what options and environment
  27. variables the gcc wrapper handles.