[yocto] Question about populate_sdk

Olaf Mandel o.mandel at menlosystems.com
Wed Sep 13 04:08:54 PDT 2017


Hello,

I hope this is the right place to ask this: I wanted to generate an SDK
bundle to work on an applications code outside of the bitbake
environment (also without devtool, if possible). So I selected an image
containing the application and ran the populate_sdk task of that image.
But the generated SDK is missing some dependencies of the application.

Is this expected? Or am I doing something wrong?

I made a minimal demo layer that shows the problem (see below for the 7
files making up the demo). I ran "bitbake -c populate_sdk test-image"
and I expected the file usr/lib/test-lib to be present in the SDK, but
it is not.


# meta-test/conf/bblayers.conf.sample
LCONF_VERSION = "7"
BBLAYERS ?= " \
  ##OEROOT##/meta \
  ##OEROOT##/meta-test \
  "

# meta-test/conf/layer.conf
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-core/*/*.bb"
BBFILE_COLLECTIONS += "test"
BBFILE_PATTERN_test = "^${LAYERDIR}/"
BBFILE_PRIORITY_test = "7"
LAYERDEPENDS_test = "core"

# meta-test/conf/local.conf.sample
CONF_VERSION = "1"
MACHINE = "qemux86-64"

# meta-test/recipes-core/images/test-image.bb
inherit core-image
IMAGE_INSTALL = "test-app"

# recipes-core/test-app/files/configure
#!/bin/sh
if [ -f "${PKG_CONFIG_SYSROOT_DIR:-}${libdir:-/usr/lib}/test-lib" ]; then
  echo "test-lib found."
else
  echo >&2 "test-lib not found!"
  exit 1
fi

# meta-test/recipes-core/test-app/test-app.bb
LICENSE = "PD"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
DEPENDS = "test-lib"
SRC_URI = "file://configure;subdir=${BPN}-${PV}"
do_configure () {
    sh configure
}

# meta-test/recipes-core/test-lib/test-lib.bb
LICENSE = "PD"
do_install () {
    install -d "${D}${libdir}"
    touch "${D}${libdir}/test-lib"
}
FILES_${PN} = "${libdir}/test-lib"


Thank you for any suggestions,
Olaf
-- 
Olaf Mandel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170913/2d9a020e/attachment.pgp>


More information about the yocto mailing list