[yocto] How to install only a subset of the packages listed in a packagegroup?

Roberto ramatekd at gmail.com
Mon Nov 2 15:36:20 PST 2015


Hi,

 

I have written the following packagegroup called packagegroup-amatek.bb for
testing purposes :

 

# Copyright (C) 2012-2013 Freescale Semiconductor

# Released under the MIT license (see COPYING.MIT for the terms)

 

DESCRIPTION = "Example package group"

LICENSE = "MIT"

LIC_FILES_CHKSUM =
"file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \

 
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

 

PR = "r5"

 

inherit packagegroup

 

PROVIDES = "${PACKAGES}"

PACKAGES += " \

   ${PN}-package1 \

    ${PN}-package2 \

"

 

 

RDEPENDS_${PN}-package1 = " \

   package1-depend1 \

"

 

RDEPENDS_${PN}-package2 = " \

   package2-depend2 \

"

 

 

PACKAGE_ARCH = "${MACHINE_ARCH}"

 

If in my custom image file (amatek-image) I include only
packagegroup-amatek-package1:

 

IMAGE_INSTALL = "packagegroup-amatek-package1"

 

I would expect that package2-depend2 is not installed because it is a
dependency of the package packagegroup-amatek-package2 which is not
installed.

 

However, bitbake amatek-image -g -u depexp shows that package2-depend2 is
installed as well:

 

 <http://i.stack.imgur.com/xRj1E.png> enter image description here

 

Is this the expected behaviour?

Regards,

Roberto

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151103/1f4aa6b5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 4537 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151103/1f4aa6b5/attachment.png>


More information about the yocto mailing list