I'm trying to use an external pre-built toolchain to build my distro. I added a "TCMODE ?= "external-sourcery" to my local.conf and modified the external-sourcery include file as follows:
diff --git a/meta/conf/distro/include/tcmode-external-sourcery.inc b/meta/conf/distro/include/tcmode-external-source index 1635eec..3ba564a 100644 --- a/meta/conf/distro/include/tcmode-external-sourcery.inc +++ b/meta/conf/distro/include/tcmode-external-sourcery.inc @@ -2,14 +2,16 @@ # Configuration to use external Sourcery G++ toolchain # -EXTERNAL_TOOLCHAIN ?= "/usr/local/csl/${TARGET_ARCH}" +#EXTERNAL_TOOLCHAIN ?= "/usr/local/csl/${TARGET_ARCH}" +EXTERNAL_TOOLCHAIN ?= "/opt/armada-sdk-5.0-64k/armv7-marvell-linux-gnueabi-softfp" TOOLCHAIN_PATH_ADD = "${EXTERNAL_TOOLCHAIN}/bin:" PATH =. "${TOOLCHAIN_PATH_ADD}" CSL_TARGET_SYS_powerpc ?= "powerpc-linux-gnu" CSL_TARGET_SYS_powerpc64 ?= "powerpc-linux-gnu" -CSL_TARGET_SYS_arm ?= "arm-none-linux-gnueabi" +#CSL_TARGET_SYS_arm ?= "arm-none-linux-gnueabi" +CSL_TARGET_SYS_arm ?= "arm-marvell-linux-gnueabi" CSL_TARGET_SYS_mips ?= "mips-linux-gnu" CSL_TARGET_SYS_mipsel ?= "mips-linux-gnu" CSL_TARGET_SYS_mips64 ?= "mips-linux-gnu" bitbake is able to find my toolchain, but it eventually fails trying to install the external sourcery toolchain for arm. ERROR: Function failed: do_install (see /development/dallasc/yocto/poky/build/tmp/work/armv5te-poky-linux-gnueabi/external-sourcery-toolchain-201111-0.-r7/temp/log.do_install.4466 for further information) ERROR: Logfile of failure stored in: /development/dallasc/yocto/poky/build/tmp/work/armv5te-poky-linux-gnueabi/external-sourcery-toolchain-201111-0.-r7/temp/log.do_install.4466 Log data follows: | DEBUG: Executing shell function do_install | ERROR: Function failed: do_install (see /development/dallasc/yocto/poky/build/tmp/work/armv5te-poky-linux-gnueabi/external-sourcery-toolchain-201111-0.-r7/temp/log.do_install.4466 for further information) | mv: cannot stat `/development/dallasc/yocto/poky/build/tmp/work/armv5te-poky-linux-gnueabi/external-sourcery-toolchain-201111-0.-r7/image/usr/lib/bin/*': No such file or directory NOTE: package external-sourcery-toolchain-201111-0.-r7: task do_install: Failed ERROR: Task 422 (/development/dallasc/yocto/poky/meta/recipes-core/meta/external-sourcery-toolchain.bb, do_install) failed with exit code '1' Should I be modifying this external-sourcery-toolchain recipe to point to my toolchain sysroot area? Just not sure what all needs to be done to use my own toolchain. Thanks _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto