[Buildroot] Building only toolchain

Peter Korsgaard jacmet at uclibc.org
Fri May 29 07:45:23 UTC 2009

>>>>> "Teemu" == Teemu Keskinarkaus <Teemu.Keskinarkaus at cc-systems.com> writes:

 Teemu> Hi,

 Teemu> Is it possible to build only toolchain in buildroot? I tried
 Teemu> to search the makefiles, but I couldn?t find a target that
 Teemu> would do it.

Sure, simply don't select and packages and no file systems, then it
will only build the toolchain.

 Teemu> It seems that there are some absolute paths stored in
 Teemu> buildroot toolchain binaries(at least ccache has) so I can?t
 Teemu> just copy them to another system. Or can the toolchain be
 Teemu> built somehow that it doesn?t store any local information
 Teemu> there?

Yes, the BR output is in general not relocatable.

 Teemu> I don?t want to build whole system, but just applications so
 Teemu> only toolchain is needed and not the whole buildroot. I also
 Teemu> like to use the same toolchain that was used in buildroot to
 Teemu> prevent any problems that might come from using different
 Teemu> toolchain.

No problem, as long as you don't move the toolchain around. We often
build pure toolchains with STAGING_DIR set to something like
/opt/cross/${DATE}, which can then simply be added to the path and

Bye, Peter Korsgaard

More information about the buildroot mailing list