* question about packagegroups
@ 2013-06-12 8:08 Nicolas Dechesne
2013-06-12 8:24 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Dechesne @ 2013-06-12 8:08 UTC (permalink / raw)
To: Yocto list discussion
hello,
i am creating a packagegroup to organize better my image/recipes. i am
doing something along these lines:
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"
and in my imageA i am pulling *only* packagegroup-custom-tools with
IMAGE_INSTALL.
What I notice is that all packages listed in my packagegroup even the
ones from packagegroup-custom-apps which isn't pulled in my image are
built when building my image. Of course they are not installed, but
why are they built? it is wasting a large amount of time, while it's
not even needed. is that really expected or am i doing something wrong
here?
thanks
nicolas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about packagegroups
2013-06-12 8:08 question about packagegroups Nicolas Dechesne
@ 2013-06-12 8:24 ` Gary Thomas
2013-06-12 8:28 ` Nicolas Dechesne
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2013-06-12 8:24 UTC (permalink / raw)
To: yocto
On 2013-06-12 09:08, Nicolas Dechesne wrote:
> hello,
>
> i am creating a packagegroup to organize better my image/recipes. i am
> doing something along these lines:
>
> 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"
>
> and in my imageA i am pulling *only* packagegroup-custom-tools with
> IMAGE_INSTALL.
>
> What I notice is that all packages listed in my packagegroup even the
> ones from packagegroup-custom-apps which isn't pulled in my image are
> built when building my image. Of course they are not installed, but
> why are they built? it is wasting a large amount of time, while it's
> not even needed. is that really expected or am i doing something wrong
> here?
The problem is that bitbake runs recipes, not packages. So in order to
get the package 'packagegroup-custom-tools', you have to build your main
recipe which will also build 'packagegroup-custom-apps'
I've run across this myself and what I did was to split my package groups
(then called tasks) into separate recipes.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question about packagegroups
2013-06-12 8:24 ` Gary Thomas
@ 2013-06-12 8:28 ` Nicolas Dechesne
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Dechesne @ 2013-06-12 8:28 UTC (permalink / raw)
To: Gary Thomas; +Cc: Yocto list discussion
On Wed, Jun 12, 2013 at 10:24 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> The problem is that bitbake runs recipes, not packages. So in order to
> get the package 'packagegroup-custom-tools', you have to build your main
> recipe which will also build 'packagegroup-custom-apps'
>
> I've run across this myself and what I did was to split my package groups
> (then called tasks) into separate recipes.
ok, i was suspecting something like that.. but i wasn't sure why. ok,
i will just split my recipes, then.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-12 8:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-12 8:08 question about packagegroups Nicolas Dechesne
2013-06-12 8:24 ` Gary Thomas
2013-06-12 8:28 ` Nicolas Dechesne
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.