README 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 sort of
  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. Offline build:
  12. ==============
  13. In order to do an offline-build (not connected to the net), fetch all
  14. selected source by issuing a
  15. $ make source
  16. before you disconnect.
  17. If your build-host is never connected, then you have to copy buildroot
  18. and your toplevel .config to a machine that has an internet-connection
  19. and issue "make source" there, then copy the content of your dl/ dir to
  20. the build-host.
  21. Building out-of-tree:
  22. =====================
  23. Buildroot supports building out of tree with a syntax similar
  24. to the Linux kernel. To use it, add O=<directory> to the
  25. make command line, E.G.:
  26. $ make O=/tmp/build
  27. And all the output files (including .config) will be located under /tmp/build.
  28. More finegrained configuration:
  29. ===============================
  30. You can specify a config-file for uClibc:
  31. $ make UCLIBC_CONFIG_FILE=/my/uClibc.config
  32. And you can specify a config-file for busybox:
  33. $ make BUSYBOX_CONFIG_FILE=/my/busybox.config
  34. To use a non-standard host-compiler (if you do not have 'gcc'),
  35. make sure that the compiler is in your PATH and that the library paths are
  36. setup properly, if your compiler is built dynamically:
  37. $ make HOSTCC=gcc-4.3.orig HOSTCXX=gcc-4.3-mine
  38. Depending on your configuration, there are some targets you can use to
  39. use menuconfig of certain packages. This includes:
  40. $ make HOSTCC=gcc-4.3 linux-menuconfig
  41. $ make HOSTCC=gcc-4.3 uclibc-menuconfig
  42. $ make HOSTCC=gcc-4.3 busybox-menuconfig
  43. Please feed suggestions, bug reports, insults, and bribes back to the
  44. buildroot mailing list: buildroot@uclibc.org