Skip to contentSkip to conversation

External-Sourcery-Toolchain Related Issue

DISCUSSION Rohit2 Jindal 3 participants 5 messages May 23, 2013 – Jun 3, 2013 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

I want to install my existing Toolchain to Yocto Sysroot bypassing default yocto toolchain functionality.

My requirements are

1I will download toolchain from my git source ie tar file.

2I just want to install this toolchain to tmp/sysroot folder in build directory skipping compilation step.

Steps implemented

1 SRC_URI = "file:///home/toolchains_bin.tar<file:///\\home\toolchains_bin.tar>"

2 TCMODE="external-csl"

3 EXTERNAL_TOOLCHAIN = "/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux"

4CSL_TARGET_SYS_mips64 = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"

5CSL_TARGET_SYS = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"

6 TARGET_PREFIX = "${CSL_TARGET_SYS_mips64}-"

But when I tried to run

Build> bitbake linux (linux is recipe in my layer)

It gives me error :

ERROR: Failed to obtain CodeSourcery toolchain version: Execution of '/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux/bin/mips64-nlm-linux-gcc -v' failed: command not found

ERROR: Failed to obtain CodeSourcery toolchain version: Execution of '/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux/bin/mips64-nlm-linux-gcc -v' failed: command not found

and continue with the tasks executions like unpacking toolchains_bin.tar to $WORKDIR/mips64-poky-linux/.. and other linux do configure etc

Again run this recipe:

@Build>bitbake linux

NOTE. Once unpacked the toolchain to the location specified if I again run the above recipe then this error does not come.

Please suggest me the way around to skip this error coming at the first time when I build my recipe until my toolchain is not unpacked.

Thanks in advance!

Regards,

Rohit Jindal

===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================

#2 lore raw
Quoted 30 lines · On Thu, May 23, 2013 at 12:39 AM, Rohit2 Jindal…

I want to install my existing Toolchain to Yocto Sysroot bypassing default yocto toolchain functionality.****

** **

My requirements are****

** **

1I will download toolchain from my git source ie tar file.****

2I just want to install this toolchain to tmp/sysroot folder in build directory skipping compilation step.****

** **

** **

Steps implemented****

** **

1 SRC_URI = "file:///home/toolchains_bin.tar"****

2 TCMODE="external-csl" ****

3 EXTERNAL_TOOLCHAIN = "/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux"
****

Quoted 6 lines

4CSL_TARGET_SYS_mips64 = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"****

5CSL_TARGET_SYS = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"****

6 TARGET_PREFIX = "${CSL_TARGET_SYS_mips64}-"

The sourcery toolchain recipe pulls files from a codesourcery / mentor graphics Sourcery G++ toolchain installed at the EXTERNAL_TOOLCHAIN path. That SRC_URI will not do anything, and it expects the compiler to be available at parse time. Basically, the tcmode and recipe for sourcery is designed for a particular toolchain, not any random one, and is not structured at this time to allow extraction of a toolchain binary tarball. You'd have to customize / create your own based on the existing bits, using them as examples.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#3 lore raw

Yocto with Fedora 18

In reply to a message not in the archive

Hi,

I am facing some issue when I run yocto with fedora 18 :

1 When I run my recipe it stops after completing 63-tasks and again I have to rerun my recipe back to complete left out around 415 tasks. I did not got why it shows this type of behavior. But this thing didn't happen with fedora 9 or fedora 7. Please suggest how to make it work that it completes all the tasks in one go without need to rerun (bitbake linux) twice.
2 I modified external-sourcery-toolchain according to my requirement . Can you suggest me the way if I want to override "toolchain_setup ()" function of "tcmode-external-sourcery.inc" in my board.conf file or my recipe where ever possible.

Thanks in Advance.

Regards,
Rohit Jindal

===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================

#4 lore raw

Re: Yocto with Fedora 18

Quoted 5 lines · On Wednesday 29 May 2013 11:51:15 Rohit2 Jindal wrote:

1 When I run my recipe it stops after completing 63-tasks and again I have to rerun my recipe back to complete left out around 415 tasks. I did not got why it shows this type of behavior. But this thing didn't happen with fedora 9 or fedora 7. Please suggest how to make it work that it completes all the tasks in one go without need to rerun (bitbake linux) twice.

This is not normal behaviour. Can we see the full log of the first part please?

Quoted 4 lines

2 I modified external-sourcery-toolchain according to my requirement . Can you suggest me the way if I want to override "toolchain_setup ()" function
of "tcmode-external-sourcery.inc" in my board.conf file or my recipe where
ever possible.

You should probably be copying this file and editing it. Note that selection of the external toolchain would be a distro setting and not something set from machine configuration.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#5 lore raw
In reply to a message not in the archive

Thanks for your reply.

Can you give me pointers how to setup my toolchain from scratch in yocto . Which RECIPES I have to refer to setup my own toolchain recipes .

Thanks in advance

Regards,
Rohit Jindal

From: Rohit2 Jindal
Sent: Thursday, May 23, 2013 1:09 PM
To: '[email protected]'; '[email protected]'
Subject: External-Sourcery-Toolchain Related Issue

Hi,

I want to install my existing Toolchain to Yocto Sysroot bypassing default yocto toolchain functionality.

My requirements are

1I will download toolchain from my git source ie tar file.

2I just want to install this toolchain to tmp/sysroot folder in build directory skipping compilation step.

Steps implemented

1 SRC_URI = "file:///home/toolchains_bin.tar<file:///\\home\toolchains_bin.tar>"

2 TCMODE="external-csl"

3 EXTERNAL_TOOLCHAIN = "/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux"

4CSL_TARGET_SYS_mips64 = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"

5CSL_TARGET_SYS = "${TARGET_ARCH}${TARGET_TC_VENDOR}-${TCTYPE}"

6 TARGET_PREFIX = "${CSL_TARGET_SYS_mips64}-"

But when I tried to run

Build> bitbake linux (linux is recipe in my layer)

It gives me error :

ERROR: Failed to obtain CodeSourcery toolchain version: Execution of '/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux/bin/mips64-nlm-linux-gcc -v' failed: command not found

ERROR: Failed to obtain CodeSourcery toolchain version: Execution of '/home/yocto/poky/build/tmp/work/mips64-poky-linux/external-sourcery-toolchain/GCC-r8/toolchains_bin/mipscross/linux/bin/mips64-nlm-linux-gcc -v' failed: command not found

and continue with the tasks executions like unpacking toolchains_bin.tar to $WORKDIR/mips64-poky-linux/.. and other linux do configure etc

Again run this recipe:

@Build>bitbake linux

NOTE. Once unpacked the toolchain to the location specified if I again run the above recipe then this error does not come.

Please suggest me the way around to skip this error coming at the first time when I build my recipe until my toolchain is not unpacked.

Thanks in advance!

Regards,

Rohit Jindal

===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================