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