All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olaf Mandel <o.mandel@menlosystems.com>
To: yocto@yoctoproject.org
Subject: Question about populate_sdk
Date: Wed, 13 Sep 2017 13:08:54 +0200	[thread overview]
Message-ID: <264515b7-d412-2188-ad66-003c0e3d0dd8@menlosystems.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1934 bytes --]

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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 484 bytes --]

             reply	other threads:[~2017-09-13 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-13 11:08 Olaf Mandel [this message]
2017-09-13 11:43 ` Question about populate_sdk Anders Darander
2017-09-13 12:18   ` Olaf Mandel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=264515b7-d412-2188-ad66-003c0e3d0dd8@menlosystems.com \
    --to=o.mandel@menlosystems.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.