[Buildroot] [PATCH v3 2/2] buildroot: target: Add Blackfin architecture support.

Sonic Zhang sonic.adi at gmail.com
Tue Mar 26 09:36:24 UTC 2013


Ho Thomas,

On Tue, Mar 26, 2013 at 4:41 PM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Sonic Zhang,
>
> On Tue, 26 Mar 2013 16:16:07 +0800, Sonic Zhang wrote:
>
>> > If you need to have different prefixes, isn't it possible to hook into one
>> > of these variables, instead of creating a new variable
>> > CROSS_COMPILE_SHARED_ELF/FLAT ?
>> > Depending on the elf/flat choice, you would then for example set
>> > BR2_TOOLCHAIN_EXTERNAL_PREFIX (possible from kconfig directly) (but this
>> > would work only for external toolchains), or override TARGET_CROSS.
>> > With such a change, you can reuse TARGET_CC and TARGET_READELF.
>>
>> I do set BR2_TOOLCHAIN_EXTERNAL_PREFIX to bfin-uclinux via kconfig to
>> build the complete packages in buildroot. Meanwhile, I would like to
>> install FDPIC libraries as well from the bfin-linux-uclibc toolchain
>> folder, which is different from the bfin-uclinux I set to
>> BR2_TOOLCHAIN_EXTERNAL_PREFIX.
>>
>> Blackfin toolchain bfin-linux-uclibc and bfin-uclinux are located in
>> different path.
>
> But the current external toolchain logic in
> toolchain/toolchain-external/ext-tool.mk only extracts either the
> bfin-uclinux sysroot *or* the bfin-linux-uclibc sysroot, so you in
> practice don't have both at the same time, at least with the current
> Buildroot. So presumably this would also need to be changed, right?

Yes, that's why the installation target copy library files from the
original toolchain folder other than the sysroot.

Regards,

Sonic



More information about the buildroot mailing list