README 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. To build and use the buildroot stuff, do the following:
  2. 1) run 'make menuconfig'
  3. 2) select the packages you wish to compile
  4. 3) run 'make'
  5. 4) wait while it compiles
  6. 5) Use your shiny new root filesystem. Depending on which sortof
  7. root filesystem you selected, you may want to loop mount it,
  8. chroot into it, nfs mount it on your target device, burn it
  9. to flash, or whatever is appropriate for your target system.
  10. You do not need to be root to build or run buildroot. Have fun!
  11. -Erik
  12. Offline build:
  13. ==============
  14. In order to do an offline-build (not connected to the net), fetch all
  15. selected source by issuing a
  16. $ make source
  17. before you disconnect.
  18. If your build-host is never connected, then you have to copy buildroot
  19. and your toplevel .config to a machine that has an internet-connection
  20. and issue "make source" there, then copy the content of your dl/ dir to
  21. the build-host.
  22. Building out-of-tree:
  23. =====================
  24. Buildroot supports building out of tree with a syntax similar
  25. to the Linux kernel. To use it, add O=<directory> to the
  26. make command line, E.G.:
  27. $ make O=/tmp/build
  28. And all the output files (including .config) will be located under /tmp/build.
  29. More finegrained configuration:
  30. ===============================
  31. You can specify a config-file for uClibc:
  32. $ make UCLIBC_CONFIG_FILE=/my/uClibc.config
  33. And you can specify a config-file for busybox:
  34. $ make BUSYBOX_CONFIG_FILE=/my/busybox.config
  35. To use a non-standard host-compiler (if you do not have 'gcc'),
  36. make sure that the compiler is in your PATH and that the library paths are
  37. setup properly, if your compiler is built dynamically:
  38. $ make HOSTCC=gcc-4.3.orig HOSTCXX=gcc-4.3-mine
  39. Depending on your configuration, there are some targets you can use to
  40. use menuconfig of certain packages. This includes:
  41. $ make HOSTCC=gcc-4.3 linux-menuconfig
  42. $ make HOSTCC=gcc-4.3 uclibc-menuconfig
  43. $ make HOSTCC=gcc-4.3 busybox-menuconfig
  44. Please feed suggestions, bug reports, insults, and bribes back to the
  45. buildroot mailing list: buildroot@uclibc.org