using-buildroot-toolchain.txt 974 B

1234567891011121314151617181920212223
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. Using the generated toolchain outside Buildroot
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. You may want to compile, for your target, your own programs or other
  6. software that are not packaged in Buildroot. In order to do this you
  7. can use the toolchain that was generated by Buildroot.
  8. The toolchain generated by Buildroot is located by default in
  9. +output/host/+. The simplest way to use it is to add
  10. +output/host/usr/bin/+ to your PATH environment variable and then to
  11. use +ARCH-linux-gcc+, +ARCH-linux-objdump+, +ARCH-linux-ld+, etc.
  12. It is possible to relocate the toolchain - but then +--sysroot+ must
  13. be passed every time the compiler is called to tell where the
  14. libraries and header files are.
  15. It is also possible to generate the Buildroot toolchain in a directory
  16. other than +output/host+ by using the +Build options -> Host dir+
  17. option. This could be useful if the toolchain must be shared with
  18. other users.