core-image-ptest-all,core-image-ptest-fast: Depend on core-image class
PATCH v2 1/2 core-image-ptest-all,core-image-ptest-fast: Depend on core-image class
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
--- 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(-)
meta/recipes-core/images/core-image-ptest-all.bb +1 -2
@@ -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."
meta/recipes-core/images/core-image-ptest-fast.bb +1 -2
@@ -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
Signature · 1 line
2.34.0
PATCH v2 2/2 image: Include psplash only when screen machine feature is enabled
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
--- meta/classes/image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
@@ -53,7 +53,7 @@ FEATURE_INSTALL_OPTIONAL[vardepvalue] = "${FEATURE_INSTALL_OPTIONAL}" # Define some very basic feature package groups FEATURE_PACKAGES_package-management = "${ROOTFS_PKGMANAGE}" -SPLASH ?= "psplash" +SPLASH ?= "${@bb.utils.contains("MACHINE_FEATURES", "screen", "psplash", "0", d)}" FEATURE_PACKAGES_splash = "${SPLASH}" IMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("IMAGE_FEATURES", d)}'
Signature · 1 line
2.34.0