Skip to contentSkip to conversation

How can I add a library to my SDK

DISCUSSION Jimi Damon 3 participants 3 messages Jun 26, 2017

lore
Share & tools
lore

Jimi Damon

author
#0 lore raw

Hi,

I've added zeromq to a build by adding the meta-iot-cloud layer. This adds zeromq to the target rootfs, but I can't get this added to the host rootfs when I create an sdk ( using bitbake -c populate_sdk core-image-minimal ).

I've read about adding something like

*TOOLCHAIN_HOST_TASK_append = " zeromq"*

to my conf/local.conf, however, I only see error messages saying

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: core-image-minimal-dev-1.0-r0 do_populate_sdk: zeromq not found in the feeds (x86_64-nativesdk noarch any all) in /media/build/morty/build/tmp/deploy/rpm.
ERROR: core-image-minimal-dev-1.0-r0 do_populate_sdk: This is often caused by an empty package declared in a recipe's PACKAGES variable. (Empty packages are not constructed unless ALLOW_EMPTY_<pkg> = '1' is used.)
ERROR: core-image-minimal-dev-1.0-r0 do_populate_sdk: Function failed: do_populate_sdk
ERROR: Logfile of failure stored in: /media/build/morty/build/tmp/work/nitrogen6x-fslc-linux-gnueabi/core-image-minimal-dev/1.0-r0/temp/log.do_populate_sdk.20519
ERROR: Task (/media/build/morty/sources/poky/meta/recipes-core/images/core-image-minimal-dev.bb:do_populate_sdk) failed with exit code '1'

What is the approved way to add a library that was compiled for the target to the host ?

#1 lore raw
Quoted 3 lines · Jimi Damon

*TOOLCHAIN_HOST_TASK_append = " zeromq"*

For a target recipe you want TOOLCHAIN_TARGET_TASK_append.

Ross

#2 lore raw
In reply to Jimi Damon
Quoted 1 line · Jimi Damon

TOOLCHAIN_HOST_TASK_append = " zeromq"

you need to add the package meant for sdk host.

TOOLCHAIN_HOST_TASK_append = " nativesdk-zeromq"

also make sure that zeromq recipe has BBCLASSEXTEND for nativesdk
if not you might have to fix that first.