using-buildroot-toolchain.txt 1022 B

1234567891011121314151617181920212223242526
  1. // -*- mode:doc; -*-
  2. // vim: set syntax=asciidoc:
  3. ==== Using the generated toolchain outside Buildroot
  4. You may want to compile, for your target, your own programs or other
  5. software that are not packaged in Buildroot. In order to do this you
  6. can use the toolchain that was generated by Buildroot.
  7. The toolchain generated by Buildroot is located by default in
  8. +output/host/+. The simplest way to use it is to add
  9. +output/host/bin/+ to your PATH environment variable and then to
  10. use +ARCH-linux-gcc+, +ARCH-linux-objdump+, +ARCH-linux-ld+, etc.
  11. It is possible to relocate the toolchain, this allows to distribute
  12. the toolchain to other developers to build applications for your
  13. target. To achieve this:
  14. * run +make sdk+, which prepares the toolchain to be relocatable;
  15. * tarball the contents of the +output/host+ directory;
  16. * distribute the resulting tarball.
  17. Once the toolchain is installed to the new location, the user must run
  18. the +relocate-sdk.sh+ script to make sure all paths are updated with
  19. the new location.