[oe] [PATCH] [PATCH] distro: make TARGET_VENDOR a weak assignment to enable external-csl

Ben Gardiner bengardiner at nanometrics.ca
Wed Oct 13 18:37:33 UTC 2010


My apologies, Victor, for duplicating your efforts. I was
simultaneously preparing this patch on the 8th.

On Wed, Oct 13, 2010 at 1:44 PM, Koen Kooi <k.kooi at student.utwente.nl> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 13-10-10 18:42, Ben Gardiner wrote:
>> Trying to use an external toolchain like the 2009q1 toolchain from codesourcery
>> has some strange results since the toolchain has vendor 'none' but
>> distributions like angstrom set TARGET_VENDOR unconditionally.
>>
>> This changeset makes all assignments of TARGET_VENDOR in distros weak as was
>> suggested by Denys Dmytriyenko in a recent mailing list discussion [1].
>
> Well, not 2 days ago this idea was shot down:
> http://thread.gmane.org/gmane.comp.handhelds.openembedded/37918

Thank you, Koen, for pointing me to the recent discussion. I tried to
modify the toolchain-external.inc -- as you suggested in that thread
-- so that TARGET_VENDOR could be set by a TOOLCHAIN_VENDOR variable:

diff --git a/conf/distro/include/toolchain-external.inc
b/conf/distro/include/toolchain-external.inc
index ff83f5a..585d50e 100644
--- a/conf/distro/include/toolchain-external.inc
+++ b/conf/distro/include/toolchain-external.inc
@@ -6,3 +6,5 @@ PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}gcc =
"external-toolchain-${TOOLCHAIN
 PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}g++ =
"external-toolchain-${TOOLCHAIN_BRAND}"
 #PREFERRED_PROVIDER_linux-libc-headers =
"external-toolchain-${TOOLCHAIN_BRAND}"

+TOOLCHAIN_VENDOR ?= "${TARGET_VENDOR}"
+TARGET_VENDOR = "${TOOLCHAIN_VENDOR}"

and added TOOLCHAIN_VENDOR = "-none" in my local conf.

But it appears that the angstrom-2008.1 distro conf is still
overriding the TARGET_VENDOR variable:
$bitbake -i
/usr/lib/pymodules/python2.6/bb/shell.py:59: DeprecationWarning: The
popen2 module is deprecated.  Use the subprocess module.
  import sys, os, readline, socket, httplib, urllib, commands, popen2,
copy, shlex, Queue, fnmatch
BitBake Shell Version 0.5.3.1 (C) 2005 Michael 'Mickey' Lauer
<mickey at Vanille.de>
Type 'help' for more information, press CTRL-D to exit.
BB>> parse
[snip]
NOTE: Handling BitBake files: | (7131/7131) [100 %]
NOTE: Parsing finished. 0 cached, 6796 parsed, 335 skipped, 2 masked.

BB>> getvar TARGET_VENDOR
-angstrom
BB>> getvar TOOLCHAIN_VENDOR
-none
BB>> getvar TARGET_SYS
arm-angstrom-linux-gnueabi

So my initial attempt is not going to cut it. Could you elaborate on
what you imagine the necessary modifications to toolchain-external.inc
might be? I'm happy to implement and/or test.

Best Regards,
Ben Gardiner

---
Nanometrics Inc.
http://www.nanometrics.ca




More information about the Openembedded-devel mailing list