All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] allow linux-lib-headers with external-toolchain-csl
@ 2011-03-02 15:05 Ben Gardiner
  2011-03-02 15:05 ` [PATCH v2 1/2] external-toolchain: allow override of linux-libc-headers provider Ben Gardiner
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Ben Gardiner @ 2011-03-02 15:05 UTC (permalink / raw)
  To: openembedded-devel, Denys Dmytriyenko; +Cc: Andrea Galbusera, Koen Kooi

This patch series enables the use of linux-libc-headers with
external CSL toolchain. This is useful when building userspace
applications to use ABI features not present in the headers bundled
with the CSL toolchain.

Version 1 of this patch was tested in arago [1] and found to work there.

Testing was performed there also by Andrea Galbusera <gizero@gmail.com>.
Who found that the changes enabled a couple of packages to pickup kernel
headers that were not bundled with the CSL toolchain.

I tested this series on 3dc72c4ca0a9ce677f6c3a56517626984b5eaaa0 of
git://git.openembedded.org/openembedded#master

Using the following local.conf (comment- and blank-lines trimmed):

SCRATCH ?= "${OEBASE}"
DL_DIR = "${SCRATCH}/downloads"
TMPDIR = "${SCRATCH}/arago-tmp"
BBFILES = "/media/unixdata/src/openembedded/openembedded-master/recipes/*/*.bb"
MACHINE = "da850-omapl138-evm"
DISTRO = "angstrom-2008.1"
ENABLE_BINARY_LOCALE_GENERATION = "0"
IMAGE_FSTYPES = "jffs2 tar.gz ext2.gz"
PARALLEL_MAKE = "-j 9"
BB_NUMBER_THREADS = "9"
BBINCLUDELOGS = "yes"
SOURCE_MIRROR_URL = "http://mirror/oe/"
INHERIT += "own-mirrors"
TOOLCHAIN_VENDOR = "-none"
TOOLCHAIN_TYPE = "external"
TOOLCHAIN_BRAND = "csl"
TOOLCHAIN_PATH = "/opt/codesourcery-arm-none-eabi-2009q1"

'bitbake net-tools' fails with the familiar error [2] of 
'error: redefinition of 'struct iphdr'' which is caused by a missing
#ifdef in the 2.6.29 linux-headers ip.h bundled with the 2009q1
toolchain I am using. 

Whereas with the patches applied and the following added to local.conf:
PREFERRED_PROVIDER_linux-libc-headers = "linux-libc-headers"

'bitbake net-tools' is successful. Since specifying the
PREFERRED_PROVIDER in local.conf now results in installation of the
linux-lib-headers version 2.6.31 specified by angstrom conf.

Ben Gardiner (2):
  external-toolchain: allow override of linux-libc-headers provider
  external-toolchain-csl: allow linux-libc-headers

 conf/distro/include/toolchain-external.inc |    2 +-
 conf/local.conf.sample                     |    4 ++++
 recipes/meta/external-toolchain-csl.bb     |   15 ++++++++++-----
 3 files changed, 15 insertions(+), 6 deletions(-)

[1] https://gforge.ti.com/gf/project/arago/mailman/?_forum_action=ForumMessageBrowse&thread_id=4152&action=ListThreads&mailman_id=39
[2] http://www.gossamer-threads.com/lists/linux/kernel/1025676



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-02 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 15:05 [PATCH v2 0/2] allow linux-lib-headers with external-toolchain-csl Ben Gardiner
2011-03-02 15:05 ` [PATCH v2 1/2] external-toolchain: allow override of linux-libc-headers provider Ben Gardiner
2011-03-02 15:05 ` [PATCH v2 2/2] external-toolchain-csl: allow linux-libc-headers Ben Gardiner
2011-03-02 17:50   ` Phil Blundell
2011-03-02 17:53     ` Ben Gardiner
2011-03-02 16:52 ` [PATCH v2 0/2] allow linux-lib-headers with external-toolchain-csl Tom Rini
2011-03-02 17:00   ` Ben Gardiner
2011-03-02 17:10     ` Tom Rini
     [not found]       ` <20110302171602.GO27067@edge>
2011-03-02 17:25         ` Ben Gardiner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.