[Buildroot] External Toolchain: Calculation of SYSROOT_DIR in toolchain/toolchain-external/ext-tool.mk wrong?

Warlich, Christof christof.warlich at siemens.com
Wed Feb 1 15:41:03 UTC 2012


Hi Thomas,

> How is this toolchain built?

I can't say as I got the toolchain from another department. 

> Or more importantly, how is it packaged?
> 
> Isn't this problem simply caused by the fact that the root of your
> packaged toolchain is already inside 'usr/', instead of just above it?
> 
> In my case, I build a crosstool-ng toolchain with buildroot. I then
> package it by going to output/host and tarring the entire usr/
> directory. This way, the toolchain has a structure like (stripped):
> 
> usr/lib/gcc/
> usr/lib/gcc/powerpc-unknown-linux-gnu/
> usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/
> usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include/
> usr/lib/gcc/powerpc-unknown-linux-gnu/4.4.3/include/stdfix.h
> ...
> usr/sbin/
> usr/libexec/
> usr/libexec/awk/
> usr/libexec/awk/pwcat
> usr/libexec/awk/grcat
> usr/libexec/gcc/
> usr/libexec/gcc/powerpc-unknown-linux-gnu/
> usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/
> usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/install-tools/
> usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/install-tools/fixinc.sh
> usr/libexec/gcc/powerpc-unknown-linux-gnu/4.4.3/install-tools/mkheaders
> ...
> 
> I think your problem would be fixed if you change the way you package
> the toolchain.

Anyhow, the fix suggested by Thomas Petazzoni covers both :-).

> Of course, if this toolchain came to you pre-packaged, it may be
> better to fix buildroot to find everything automatically.

:-)

Cheers,

Chris


More information about the buildroot mailing list