[oe] External toolchain

Luca Bolognini l.bolognini at tiscali.it
Tue Feb 22 09:16:03 UTC 2011


Hi,
I would like to use an external toolchain (CodeSourcery2009q1) to 
cross-compile some packages for my beagleboard (more or less the same 
that happens in Arago) and then I expect not to download glibc package 
and cross-compile again libc, libpthread and so on. I would like to use 
the libraries inside my external CodeSourcery SDK.
I followed some 
hints by Denys and Tom ( http://lists.linuxtogo.
org/pipermail/openembedded-devel/2010-April/019521.html ) and I put 

# 
LUCA
TARGET_VENDOR = "-none"
TOOLCHAIN_TYPE ?= "external"

TOOLCHAIN_BRAND ?= "csl"
TOOLCHAIN_PATH = "/opt/ti/codesourcery"

TOOLCHAIN_SYSPATH = "${TOOLCHAIN_PATH}/arm-none-linux-gnueabi"

PATH_prepend = "${TOOLCHAIN_PATH}/bin:"
require 
conf/distro/include/toolchain-external.inc

inside my 
openembedded/conf/distro/angstrom-2008.1.conf

As you know, cross-
compiler provided by CodeSoucery is arm-none-linux-gnueabi-gcc but I 
get the following error with libtool-cross_2.2.6b.bb:
Build 
Configuration:
BB_VERSION        = "1.8.19"
METADATA_BRANCH   = 
"release-2010.12"
METADATA_REVISION = "dec3967"
TARGET_ARCH       = 
"arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = 
"beagleboard"
DISTRO            = "angstrom"
DISTRO_VERSION    = 
"2010.7-test-20110221"
TARGET_FPU        = "hard"
[...]
| checking for 
arm-angstrom-linux-gnueabi-gcc... arm-angstrom-linux-gnueabi-gcc -
march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-
interwork -mno-thumb
| checking whether the C compiler works... no
| 
configure: error: in `/home/bolognini/diskp2/diskp2.4/pure-
oe/build/tmp/work/armv7a-angstrom-linux-gnueabi/libtool-cross-2.2.6b-
r27.1/libtool-2.2.6b':
| configure: error: C compiler cannot create 
executables

Obviously OE doesn't have to find arm-angstrom-linux-
gnueabi-gcc, but why does it search for arm-angstrom-linux-gnueabi-gcc 
instead of arm-none-linux-gnueabi-gcc ?
What's wrong inside angstrom-
2008.1.conf or what am I missing?

Thank you for your support
Luca


Supera i limiti: raddoppia la velocità da 10 a 20 Mega!   Risparmia con Tutto Incluso: telefono + adsl 20 mega a soli 29,95 € al mese per due anni!  SCONTO DI 240 EURO!  http://abbonati.tiscali.it/telefono-adsl/prodotti/tc/tuttoincluso/?WT.mc_id=01fw 




More information about the Openembedded-devel mailing list