All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] core-image-ptest-all,core-image-ptest-fast: Depend on core-image class
@ 2021-11-20 18:05 Khem Raj
  2021-11-20 18:05 ` [PATCH 2/2] core-image-base: Remove psplash from required features Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2021-11-20 18:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Use the default packages as mentioned in core-image-base without splash
since many machines ( e.g. raspberrypi ) add packages to enable wifi/bt
via MACHINE_EXTRA_RRECOMMENDS which are essential to boot the system
without errors, otherwise there are errors about BT firmware not being
found etc. which is then marked as failure and also services like btuart
fail to start and it marked as failure in system logs

Using default base package groups addresses this issue amicably

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/images/core-image-ptest-all.bb  | 3 +--
 meta/recipes-core/images/core-image-ptest-fast.bb | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/images/core-image-ptest-all.bb b/meta/recipes-core/images/core-image-ptest-all.bb
index 1472451675e..8edd9a2b886 100644
--- a/meta/recipes-core/images/core-image-ptest-all.bb
+++ b/meta/recipes-core/images/core-image-ptest-all.bb
@@ -1,7 +1,6 @@
-inherit features_check
+inherit core-image features_check
 REQUIRED_DISTRO_FEATURES = "ptest"
 
-require core-image-minimal.bb
 require conf/distro/include/ptest-packagelists.inc
 
 DESCRIPTION += "Also includes ptest packages."
diff --git a/meta/recipes-core/images/core-image-ptest-fast.bb b/meta/recipes-core/images/core-image-ptest-fast.bb
index 40df274c4c1..286f20e547c 100644
--- a/meta/recipes-core/images/core-image-ptest-fast.bb
+++ b/meta/recipes-core/images/core-image-ptest-fast.bb
@@ -1,7 +1,6 @@
-inherit features_check
+inherit core-image features_check
 REQUIRED_DISTRO_FEATURES = "ptest"
 
-require core-image-minimal.bb
 require conf/distro/include/ptest-packagelists.inc
 
 # Include only fast (< 30 sec) ptests
-- 
2.34.0



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

* [PATCH 2/2] core-image-base: Remove psplash from required features
  2021-11-20 18:05 [PATCH 1/2] core-image-ptest-all,core-image-ptest-fast: Depend on core-image class Khem Raj
@ 2021-11-20 18:05 ` Khem Raj
  2021-11-21 11:14   ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2021-11-20 18:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

base-image boots in degraded mode when using systems without display
system since there is no fb device detected and pslash service would
fail to start. Removing this image feature means that core-image-base is
complete for headless devices

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/images/core-image-base.bb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/meta/recipes-core/images/core-image-base.bb b/meta/recipes-core/images/core-image-base.bb
index 75a08cfc92a..ced8de6c14f 100644
--- a/meta/recipes-core/images/core-image-base.bb
+++ b/meta/recipes-core/images/core-image-base.bb
@@ -1,8 +1,6 @@
 SUMMARY = "A console-only image that fully supports the target device \
 hardware."
 
-IMAGE_FEATURES += "splash"
-
 LICENSE = "MIT"
 
 inherit core-image
-- 
2.34.0



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

* Re: [OE-core] [PATCH 2/2] core-image-base: Remove psplash from required features
  2021-11-20 18:05 ` [PATCH 2/2] core-image-base: Remove psplash from required features Khem Raj
@ 2021-11-21 11:14   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2021-11-21 11:14 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

On Sat, 2021-11-20 at 10:05 -0800, Khem Raj wrote:
> base-image boots in degraded mode when using systems without display
> system since there is no fb device detected and pslash service would
> fail to start. Removing this image feature means that core-image-base is
> complete for headless devices
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/images/core-image-base.bb | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/meta/recipes-core/images/core-image-base.bb b/meta/recipes-core/images/core-image-base.bb
> index 75a08cfc92a..ced8de6c14f 100644
> --- a/meta/recipes-core/images/core-image-base.bb
> +++ b/meta/recipes-core/images/core-image-base.bb
> @@ -1,8 +1,6 @@
>  SUMMARY = "A console-only image that fully supports the target device \
>  hardware."
>  
> -IMAGE_FEATURES += "splash"
> -
>  LICENSE = "MIT"
>  
>  inherit core-image

I think the way this was originally intended to work was to have a
MACHINE_FEATURE which represented the possibility of a display, then the image
could configure itself accordingly. Removing features from images to the lowest
common denominator of any given hardware doesn't seem like the correct thing to
do...

Cheers,

Richard



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

end of thread, other threads:[~2021-11-21 11:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 18:05 [PATCH 1/2] core-image-ptest-all,core-image-ptest-fast: Depend on core-image class Khem Raj
2021-11-20 18:05 ` [PATCH 2/2] core-image-base: Remove psplash from required features Khem Raj
2021-11-21 11:14   ` [OE-core] " Richard Purdie

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.