INSTALL 2.7 KB

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