[yocto] After update to yocto 2.0 from 1.8 can not install app to /usr/sbin in SDK

Krzeminski, Marcin (Nokia - PL/Wroclaw) marcin.krzeminski at nokia.com
Thu Nov 19 02:59:07 PST 2015


Hello,

After migration to poky 2.0 there is a problem with SDK creation for custom cmake app.
Cmake install line is:

install(TARGETS flashcreator DESTINATION sbin)

Here is a recipe (without SRC URI):

SECTION = "libs"
LICENSE = "CLOSED"
PR = "r1"

S = "${WORKDIR}/git"

DEPENDS = "libxml2"
RDEPENDS_${PN} = "libxml2"

inherit cmake
BBCLASSEXTEND = "native nativesdk"

In yocto 2.0 it is not possible to create SDK with this app:

ERROR: QA Issue: nativesdk-net-bootcreator: Files/directories were installed but not shipped in any package:
  /opt
  /opt/poky
  /opt/poky/2.0
  /opt/poky/2.0/sysroots
  /opt/poky/2.0/sysroots/i686-pokysdk-linux
  /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr
  /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/sbin
  /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/sbin/netbootcreator
  /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/sbin/.debug
  /opt/poky/2.0/sysroots/i686-pokysdk-linux/usr/sbin/.debug/netbootcreator
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
nativesdk-net-bootcreator: 10 installed and not shipped files. [installed-vs-shipped]

>From bitbake conf file it seem that /usr/sbin directory is under FILES filter.
Adding FILES_${PN} += "${sbin}/*} did not helped.
If I change cmake to install in /usr/bin all is working fine.
Does this behavior is somehow expected?

Regards,
Marcin Krzeminski


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151119/8929a13c/attachment.html>


More information about the yocto mailing list