* Understanding "Package groups"
@ 2014-07-01 17:05 Stefan Hofmann
2014-07-01 20:34 ` Rudolf Streif
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Hofmann @ 2014-07-01 17:05 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 885 bytes --]
Hi,
I made my first steps with yocto and everything worked fine so far. But
now I am struggling with "package groups". What I basically want, is a
image for a base system, which allows me to install additional packages
over the air with opkg. In my imagination package groups are something
like preselected packages, which need to be installed at once similar
like it is handled in Debian for X11-support for example. Is this right
? I have built core-image-base for testing purposes and tried to figure
out the dependencies by using the Hob tool. It says that bash will be
installed and the group "base/shell" is responsible for that. However it
is not installed, only ash and I cannot find a package group
"package-group-base-shell" in the receipes. It does however exist in the
work directory. So now I am somewhat confused.
Regards,
Stefan
--
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 3758 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Understanding "Package groups"
2014-07-01 17:05 Understanding "Package groups" Stefan Hofmann
@ 2014-07-01 20:34 ` Rudolf Streif
2014-07-09 12:57 ` Stefan Hofmann
0 siblings, 1 reply; 3+ messages in thread
From: Rudolf Streif @ 2014-07-01 20:34 UTC (permalink / raw)
To: Stefan Hofmann; +Cc: Yocto Discussion Mailing List
[-- Attachment #1: Type: text/plain, Size: 2930 bytes --]
Hi Stefan,
You probably have found the explanation on package groups in the reference
manual [1].
Package groups are recipes with the sole purpose to create dependencies to
simplify image creation. A package group recipe bundles multiple packages
together and then instead of having to explicitly specify each package in
the IMAGE_INSTALL variable you can simply specify the package group name.
Package group recipes look like this (from the manual):
DESCRIPTION = "My Custom Package Groups"
inherit packagegroup
PACKAGES = "\
packagegroup-custom-apps \
packagegroup-custom-tools \
"
RDEPENDS_packagegroup-custom-apps = "\
dropbear \
portmap \
psplash"
RDEPENDS_packagegroup-custom-tools = "\
oprofile \
oprofileui-server \
lttng-control \
lttng-viewer"
RRECOMMENDS_packagegroup-custom-tools = "\
kernel-module-oprofile"
Like any recipe they have a description. They inherit the
packagegroup.bbclass. A package group recipe can define multiple package
groups in the PACKAGES variable. For each package group listed in PACKAGES
you will then need to specify the packages that actually go into them with
conditional RDEPENDS_<packagegroupname> variables.
Package groups are only relevant for the YP build system. They do not
create package grouping for the package manager that you are using for your
target. However, if you select a package group from HOB then all of the
packages specified in that group should be installed in your target's
rootfs by YP.
Rudi
[1]
http://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#usingpoky-extend-customimage-customtasks
On Tue, Jul 1, 2014 at 10:05 AM, Stefan Hofmann <stefan.hofmann@mobserve.de>
wrote:
> Hi,
>
> I made my first steps with yocto and everything worked fine so far. But
> now I am struggling with "package groups". What I basically want, is a
> image for a base system, which allows me to install additional packages
> over the air with opkg. In my imagination package groups are something like
> preselected packages, which need to be installed at once similar like it is
> handled in Debian for X11-support for example. Is this right ? I have built
> core-image-base for testing purposes and tried to figure out the
> dependencies by using the Hob tool. It says that bash will be installed and
> the group "base/shell" is responsible for that. However it is not
> installed, only ash and I cannot find a package group
> "package-group-base-shell" in the receipes. It does however exist in the
> work directory. So now I am somewhat confused.
>
> Regards,
> Stefan
>
> --
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
[-- Attachment #2: Type: text/html, Size: 3989 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Understanding "Package groups"
2014-07-01 20:34 ` Rudolf Streif
@ 2014-07-09 12:57 ` Stefan Hofmann
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Hofmann @ 2014-07-09 12:57 UTC (permalink / raw)
To: Rudolf Streif; +Cc: Yocto Discussion Mailing List
[-- Attachment #1: Type: text/plain, Size: 3326 bytes --]
Hi Rudolf,
thank you for your explanation. bash has not been installed, but HOB did some changes on the configuration files and I modified the distribution. I deleted everything and created my own image receipe. It works fine now.
Regards,
Stefan
Am 01.07.2014 um 22:34 schrieb Rudolf Streif <rstreif@linuxfoundation.org>:
> Hi Stefan,
>
> You probably have found the explanation on package groups in the reference manual [1].
>
> Package groups are recipes with the sole purpose to create dependencies to simplify image creation. A package group recipe bundles multiple packages together and then instead of having to explicitly specify each package in the IMAGE_INSTALL variable you can simply specify the package group name.
>
> Package group recipes look like this (from the manual):
>
> DESCRIPTION = "My Custom Package Groups"
>
> inherit packagegroup
>
> PACKAGES = "\
> packagegroup-custom-apps \
> packagegroup-custom-tools \
> "
>
> RDEPENDS_packagegroup-custom-apps = "\
> dropbear \
> portmap \
> psplash"
>
> RDEPENDS_packagegroup-custom-tools = "\
> oprofile \
> oprofileui-server \
> lttng-control \
> lttng-viewer"
>
> RRECOMMENDS_packagegroup-custom-tools = "\
> kernel-module-oprofile"
>
>
> Like any recipe they have a description. They inherit the packagegroup.bbclass. A package group recipe can define multiple package groups in the PACKAGES variable. For each package group listed in PACKAGES you will then need to specify the packages that actually go into them with conditional RDEPENDS_<packagegroupname> variables.
>
> Package groups are only relevant for the YP build system. They do not create package grouping for the package manager that you are using for your target. However, if you select a package group from HOB then all of the packages specified in that group should be installed in your target's rootfs by YP.
>
> Rudi
>
>
>
> [1] http://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#usingpoky-extend-customimage-customtasks
>
>
> On Tue, Jul 1, 2014 at 10:05 AM, Stefan Hofmann <stefan.hofmann@mobserve.de> wrote:
> Hi,
>
> I made my first steps with yocto and everything worked fine so far. But now I am struggling with "package groups". What I basically want, is a image for a base system, which allows me to install additional packages over the air with opkg. In my imagination package groups are something like preselected packages, which need to be installed at once similar like it is handled in Debian for X11-support for example. Is this right ? I have built core-image-base for testing purposes and tried to figure out the dependencies by using the Hob tool. It says that bash will be installed and the group "base/shell" is responsible for that. However it is not installed, only ash and I cannot find a package group "package-group-base-shell" in the receipes. It does however exist in the work directory. So now I am somewhat confused.
>
> Regards,
> Stefan
>
> --
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 4665 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-09 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01 17:05 Understanding "Package groups" Stefan Hofmann
2014-07-01 20:34 ` Rudolf Streif
2014-07-09 12:57 ` Stefan Hofmann
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.