All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about populate_sdk
@ 2017-09-13 11:08 Olaf Mandel
  2017-09-13 11:43 ` Anders Darander
  0 siblings, 1 reply; 3+ messages in thread
From: Olaf Mandel @ 2017-09-13 11:08 UTC (permalink / raw)
  To: yocto


[-- 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 --]

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

* Re: Question about populate_sdk
  2017-09-13 11:08 Question about populate_sdk Olaf Mandel
@ 2017-09-13 11:43 ` Anders Darander
  2017-09-13 12:18   ` Olaf Mandel
  0 siblings, 1 reply; 3+ messages in thread
From: Anders Darander @ 2017-09-13 11:43 UTC (permalink / raw)
  To: Olaf Mandel; +Cc: yocto

Hi, 

* Olaf Mandel <o.mandel@menlosystems.com> [170913 13:16]:

> 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?

No, all the dependencies should be part of the generated SDK.

I've seen this, and unfortunately, not had time to debug it, nor create
a small test example. And when I took time to make a small test, I
didn't immediately find theh issue...

See Yocto #11724, at https://bugzilla.yoctoproject.org/show_bug.cgi?id=11724

> 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.

Ah, a small test example? Perfect!
Could you add it the bug above? It would likely make it easier to debug.

Cheers
Anders

-- 
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB


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

* Re: Question about populate_sdk
  2017-09-13 11:43 ` Anders Darander
@ 2017-09-13 12:18   ` Olaf Mandel
  0 siblings, 0 replies; 3+ messages in thread
From: Olaf Mandel @ 2017-09-13 12:18 UTC (permalink / raw)
  To: yocto


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

Hello,

Am 13.09.2017 um 13:43 schrieb Anders Darander:
-Snipp-
> See Yocto #11724, at https://bugzilla.yoctoproject.org/show_bug.cgi?id=11724
-Snipp-
> Ah, a small test example? Perfect!
> Could you add it the bug above? It would likely make it easier to debug.
> 
Done.

Cheers,
Olaf
-- 
Olaf Mandel



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

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

end of thread, other threads:[~2017-09-13 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-13 11:08 Question about populate_sdk Olaf Mandel
2017-09-13 11:43 ` Anders Darander
2017-09-13 12:18   ` Olaf Mandel

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.