Skip to contentSkip to conversation

image: Include psplash only when screen machine feature is enabled

PATCH New Khem Raj 1 participant 1 message Nov 24, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v3 1/1 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

---
v3: Remove a typo '0'

 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
index 6c759fdf700..8a46b4852cd 100644
@@ -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", "", d)}"
 FEATURE_PACKAGES_splash = "${SPLASH}"
 
 IMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("IMAGE_FEATURES", d)}'
Signature · 1 line
2.34.0