INSTALL 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. SOFTWARE REQUIREMENTS
  2. Compiling uClibc requires Linux kernel header files. uClibc will
  3. be compiled to match the interfaces available in the provided
  4. version of the Linux kernel headers. Linux kernel version 2.0,
  5. version 2.2, version 2.4 and version 2.6 are known to work. Other
  6. kernel versions may work but haven't been tested. Its also helpful
  7. to have a working version of GNU binutils, and GNU gcc -- using
  8. excessively old versions of these packages can cause very strange
  9. errors that are difficult to find and fix.
  10. CONFIGURING uClibc:
  11. - Users must have a valid configuration file to compile uClibc. Do not
  12. skip this step. New configuration options are added in each
  13. release, and odd configuration options are sometimes removed.
  14. To configure uClibc, you can run:
  15. make menuconfig
  16. or
  17. make config
  18. If you have an existing .config file, you can update this file
  19. using the
  20. make oldconfig
  21. command, which will only ask you about new configuration options.
  22. Available configuration commands are:
  23. "make config" Text based configuration, no menus or colors.
  24. "make menuconfig" Text based color menus, radiolists & dialogs.
  25. "make oldconfig" Default all questions based on the contents of
  26. your existing ./.config file.
  27. "make defconfig" Use defaults for all options.
  28. "make randconfig" Use random values for all options.
  29. "make allyesconfig" Set all values to "yes" for all options.
  30. "make allnoconfig" Set all values to "no" for all options.
  31. COMPILING uClibc:
  32. - uClibc does not have proper dependancy checking (yet) so if you
  33. change your uClibc configuration, you must current rebuild the
  34. entire library, by first running
  35. make clean
  36. - Once you have a valid configuration file, just run
  37. make
  38. to compile uClibc. or if you are cross compiling, you would
  39. instead run something like:
  40. make CROSS=arm-linux-
  41. INSTALLING the uClibc development environment:
  42. - As root, if necessary, run something like:
  43. make PREFIX=<some path> install
  44. This will install the uClibc runtime and development system (i.e.
  45. all the header files, libraries, etc) into the directories defined
  46. within your .config file.
  47. USING uClibc:
  48. - To compile programs with uClibc you will need a complete toolchain
  49. (i.e. binutils, gcc, and uClibc) that was built expressly for use
  50. with uClibc.
  51. - Native and cross compiling toolchains, as well as makefiles for creating
  52. uClibc toolchains, are available from the uClibc website. You may want
  53. to check out "buildroot", which is available from the uClibc download area,
  54. which provides examples of how to build your own uClibc based system.