Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] image.bbclass: Allow creation of meta-packages for images
@ 2013-12-11 14:46 David Nyström
  2013-12-11 15:18 ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: David Nyström @ 2013-12-11 14:46 UTC (permalink / raw)
  To: openembedded-core

No packages were created for core-image-minimal et.c. which
is a known top level interface for Yocto/OE users.

When installing from a repo, it would be good if these interfaces
were common. If not, users are left with
packagegroup-core-*, which names are not always easy to parse.

Signed-off-by: David Nyström <david.nystrom@enea.com>
---
 meta/classes/image.bbclass | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index cc65e35..e875b8a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -8,11 +8,12 @@ POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_install_complementary populate_sdk;
 
 inherit gzipnative
 
+ALLOW_EMPTY_${PN} = "1"
+PACKAGES = "${PN}"
 LICENSE = "MIT"
-PACKAGES = ""
 DEPENDS += "${MLPREFIX}qemuwrapper-cross ${MLPREFIX}depmodwrapper-cross"
-RDEPENDS += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL}"
-RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
+RDEPENDS_${PN} += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL}"
+RRECOMMENDS_${PN} += "${PACKAGE_INSTALL_ATTEMPTONLY}"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
@@ -659,11 +660,6 @@ do_configure[noexec] = "1"
 do_compile[noexec] = "1"
 do_install[noexec] = "1"
 do_populate_sysroot[noexec] = "1"
-do_package[noexec] = "1"
-do_packagedata[noexec] = "1"
-do_package_write_ipk[noexec] = "1"
-do_package_write_deb[noexec] = "1"
-do_package_write_rpm[noexec] = "1"
 
 addtask rootfs before do_build
 # Allow the kernel to be repacked with the initramfs and boot image file as a single file
-- 
1.8.3.2



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

* Re: [PATCH] image.bbclass: Allow creation of meta-packages for images
  2013-12-11 14:46 [PATCH] image.bbclass: Allow creation of meta-packages for images David Nyström
@ 2013-12-11 15:18 ` Richard Purdie
  2013-12-12  9:11   ` David Nyström
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-12-11 15:18 UTC (permalink / raw)
  To: David Nyström; +Cc: openembedded-core

On Wed, 2013-12-11 at 15:46 +0100, David Nyström wrote:
> No packages were created for core-image-minimal et.c. which
> is a known top level interface for Yocto/OE users.
> 
> When installing from a repo, it would be good if these interfaces
> were common. If not, users are left with
> packagegroup-core-*, which names are not always easy to parse.
> 
> Signed-off-by: David Nyström <david.nystrom@enea.com>
> ---
>  meta/classes/image.bbclass | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)

I'm not sure we can do this since there isn't one magic package group
which represents a given image. The problem is it needs to account for
IMAGE_FEATURES as well and I think this could end up confusing users
more than helping them.

Cheers,

Richard

> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
> index cc65e35..e875b8a 100644
> --- a/meta/classes/image.bbclass
> +++ b/meta/classes/image.bbclass
> @@ -8,11 +8,12 @@ POPULATE_SDK_POST_TARGET_COMMAND += "rootfs_install_complementary populate_sdk;
>  
>  inherit gzipnative
>  
> +ALLOW_EMPTY_${PN} = "1"
> +PACKAGES = "${PN}"
>  LICENSE = "MIT"
> -PACKAGES = ""
>  DEPENDS += "${MLPREFIX}qemuwrapper-cross ${MLPREFIX}depmodwrapper-cross"
> -RDEPENDS += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL}"
> -RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
> +RDEPENDS_${PN} += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL}"
> +RRECOMMENDS_${PN} += "${PACKAGE_INSTALL_ATTEMPTONLY}"
>  
>  INHIBIT_DEFAULT_DEPS = "1"
>  
> @@ -659,11 +660,6 @@ do_configure[noexec] = "1"
>  do_compile[noexec] = "1"
>  do_install[noexec] = "1"
>  do_populate_sysroot[noexec] = "1"
> -do_package[noexec] = "1"
> -do_packagedata[noexec] = "1"
> -do_package_write_ipk[noexec] = "1"
> -do_package_write_deb[noexec] = "1"
> -do_package_write_rpm[noexec] = "1"
>  
>  addtask rootfs before do_build
>  # Allow the kernel to be repacked with the initramfs and boot image file as a single file




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

* Re: [PATCH] image.bbclass: Allow creation of meta-packages for images
  2013-12-11 15:18 ` Richard Purdie
@ 2013-12-12  9:11   ` David Nyström
  0 siblings, 0 replies; 3+ messages in thread
From: David Nyström @ 2013-12-12  9:11 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

On ons 11 dec 2013 16:18:30, Richard Purdie wrote:
> On Wed, 2013-12-11 at 15:46 +0100, David Nyström wrote:
>> No packages were created for core-image-minimal et.c. which
>> is a known top level interface for Yocto/OE users.
>>
>> When installing from a repo, it would be good if these interfaces
>> were common. If not, users are left with
>> packagegroup-core-*, which names are not always easy to parse.
>>
>> Signed-off-by: David Nyström <david.nystrom@enea.com>
>> ---
>>   meta/classes/image.bbclass | 12 ++++--------
>>   1 file changed, 4 insertions(+), 8 deletions(-)
>
> I'm not sure we can do this since there isn't one magic package group
> which represents a given image. The problem is it needs to account for
> IMAGE_FEATURES as well and I think this could end up confusing users
> more than helping them.
>
> Cheers,
>
> Richard

Hi Richard,

Yes, the package contents may vary, but should this not be up to the 
distro to be able
to configure meta-packages with a common top-level api ?

I suppose we can create our own ALLOW_EMPTY meta-package recipes, where 
items are RDEPEND:ed,
which in turn mirrors the contents of selected IMAGEs.

DISTRO_FEATURES and in some degree PACKAGE_CONFIG also alters package 
dependencies,
and contents. I can't really see how this is different.

Br,
David


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

end of thread, other threads:[~2013-12-12  9:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11 14:46 [PATCH] image.bbclass: Allow creation of meta-packages for images David Nyström
2013-12-11 15:18 ` Richard Purdie
2013-12-12  9:11   ` David Nyström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox