Skip to content

allow linux-lib-headers with external-toolchain-csl

Ben Gardiner openembedded-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 6 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2external-toolchain: allow override of linux-libc-headers providerconf/distro/include/toolchain-external.inc+1 -10 replies
2/2external-toolchain-csl: allow linux-libc-headersconf/local.conf.sample recipes/meta/external-toolchain-csl.bb+14 -52 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchAndrea Galbusera
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] allow linux-lib-headers with external-toolchain-csl

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 <[email protected]>. 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