Skip to contentSkip to conversation

manual: Add Section on using Buildroot's Toolchain Externally

PATCH New Alan Ott 3 participants 4 messages Mar 19, 2014 – Mar 20, 2014

lore
Share & tools
lore

Alan Ott

author
#0 lore raw

PATCH 1/1 manual: Add Section on using Buildroot's Toolchain Externally

---
 docs/manual/customize-toolchain.txt | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
docs/manual/customize-toolchain.txt +30 -0
index 31c9140..71687d3 100644
@@ -49,3 +49,33 @@ It allows to tune major settings, such as:
 
 These settings are available after selecting the +Buildroot toolchain+ type in
 the menu +Toolchain+.
+
+Using a Buildroot Toolchain from Outside Buildroot
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The Buildroot toolchain (either internal or external) can be used to build
+packages from outside of Buildroot's build system.
+
+The preferred way of using Buildroot's toolchain is to use the toolchain
+wrappers (described above in this section), which are located in the
++output/host/usr/bin/+ directory.  Using the wrappers will ensure that the
+appropriate options are passed to the compiler.  This directory contains two
+sets of binaries, one set with short names (eg: +gcc+) and one set with
+the full host tuple names (eg: +i686-pc-linux-gnu+).  The full host tuple
+binaries should be used.
+
+For example, if Buildroot is configured for i686, use the following to build
+autotools-based packages using Buildroot's toolchain:
+
+-----------------------------------------------------------
+export PATH=$PATH:/path/to/buildroot/output/host/usr/bin/
+./configure --host=i686-pc-linux-gnu
+make
+-----------------------------------------------------------
+
+Some build systems (eg: kbuild) use the CROSS_COMPILE environment variable
+and can be built as follows:
+------------------------------------------------------------------------------
+export CROSS_COMPILE=/path/to/buildroot/output/host/usr/bin/i686-pc-linux-gnu-
+make
+------------------------------------------------------------------------------
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 manual: Add Section on using Buildroot's Toolchain Externally

Dear Alan Ott,

Quoted 10 lines · Alan Ott
---
 docs/manual/customize-toolchain.txt | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
docs/manual/customize-toolchain.txt +0 -0
index 31c9140..71687d3 100644

docs/manual/customize-toolchain.txt It allows to tune major settings, such as: · line 54

Quoted 6 lines
docs/manual/customize-toolchain.txt +3 -0
@@ -49,3 +49,33 @@ It allows to tune major settings, such as:
 
 These settings are available after selecting the +Buildroot toolchain+ type in
 the menu +Toolchain+.
+
+Using a Buildroot Toolchain from Outside Buildroot
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks a lot for this contribution. However, the manual already has a section about this topic, see:

http://buildroot.org/downloads/manual/manual.html#_using_the_generated_toolchain_outside_buildroot

Maybe it should be extended to contain more details, but at least it would be nice to not duplicate the information in the manual.

Thanks a lot!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
author
#2 lore raw

PATCH 1/1 manual: Add Section on using Buildroot's Toolchain Externally

Quoted 22 lines · Thomas Petazzoni

Dear Alan Ott,

Quoted 10 lines · Alan Ott
---
  docs/manual/customize-toolchain.txt | 30 ++++++++++++++++++++++++++++++
  1 file changed, 30 insertions(+)
docs/manual/customize-toolchain.txt +0 -0
index 31c9140..71687d3 100644

docs/manual/customize-toolchain.txt It allows to tune major settings, such as: · line 54

Quoted 6 lines
docs/manual/customize-toolchain.txt +3 -0
@@ -49,3 +49,33 @@ It allows to tune major settings, such as:
 
  These settings are available after selecting the +Buildroot toolchain+ type in
  the menu +Toolchain+.
+
+Using a Buildroot Toolchain from Outside Buildroot
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks a lot for this contribution. However, the manual already has a section about this topic, see:

Quoted 1 line

http://buildroot.org/downloads/manual/manual.html#_using_the_generated_toolchain_outside_buildroot

Oh no! So it does.

I was talking with Yann about this on the IRC earlier, and he suggested I add it to the manual. I should have looked a bit closer. Or maybe I misunderstood, and maybe he meant I should extend the part that was already there to add what we talked about on the IRC (wrapper, etc).

Quoted 2 lines

Maybe it should be extended to contain more details, but at least it would be nice to not duplicate the information in the manual.

What's there is pretty good. I wish I had found it before I had the problems I was having (which ultimately stemmed from not using --sysroot).

Thanks for all you do for buildroot. It's a great tool. Sorry for the noise....

Alan.

#3 lore raw

PATCH 1/1 manual: Add Section on using Buildroot's Toolchain Externally

In reply to Thomas Petazzoni

Thomas, Alan, All,

On 2014-03-20 02:58 +0100, Thomas Petazzoni spake thusly:

Quoted 21 lines · Alan Ott
Quoted 10 lines
---
 docs/manual/customize-toolchain.txt | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
docs/manual/customize-toolchain.txt +0 -0
index 31c9140..71687d3 100644

docs/manual/customize-toolchain.txt It allows to tune major settings, such as: · line 54

Quoted 6 lines
docs/manual/customize-toolchain.txt +3 -0
@@ -49,3 +49,33 @@ It allows to tune major settings, such as:
 
 These settings are available after selecting the +Buildroot toolchain+ type in
 the menu +Toolchain+.
+
+Using a Buildroot Toolchain from Outside Buildroot
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Thanks a lot for this contribution. However, the manual already has a section about this topic, see:

Quoted 1 line

http://buildroot.org/downloads/manual/manual.html#_using_the_generated_toolchain_outside_buildroot

Doh, I missed it when looking at the manual. :-/

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'