core-image: Add hwcodecs IMAGE_FEATURE
Currently hardware codecs are being injected in rather ugly ways and end up either in no or all images. This adds a dedicated IMAGE_FEATURE for them based on the MACHINE_HWCODECS variable. We may need to refine this in due course but this patch at least illustrates the concept. (From OE-Core rev: 1cb370587fd72e3f0f69678748108cc4116767fb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b064818003
commit
f19bdeab37
|
@ -23,6 +23,7 @@ LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3
|
||||||
# - ssh-server-dropbear - SSH server (dropbear)
|
# - ssh-server-dropbear - SSH server (dropbear)
|
||||||
# - ssh-server-openssh - SSH server (openssh)
|
# - ssh-server-openssh - SSH server (openssh)
|
||||||
# - qt4-pkgs - Qt4/X11 and demo applications
|
# - qt4-pkgs - Qt4/X11 and demo applications
|
||||||
|
# - hwcodecs - Install hardware acceleration codecs
|
||||||
# - package-management - installs package management tools and preserves the package manager database
|
# - package-management - installs package management tools and preserves the package manager database
|
||||||
# - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins
|
# - debug-tweaks - makes an image suitable for development, e.g. allowing passwordless root logins
|
||||||
# - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs
|
# - dev-pkgs - development packages (headers, etc.) for all installed packages in the rootfs
|
||||||
|
@ -41,6 +42,7 @@ PACKAGE_GROUP_ssh-server-dropbear = "packagegroup-core-ssh-dropbear"
|
||||||
PACKAGE_GROUP_ssh-server-openssh = "packagegroup-core-ssh-openssh"
|
PACKAGE_GROUP_ssh-server-openssh = "packagegroup-core-ssh-openssh"
|
||||||
PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
|
PACKAGE_GROUP_package-management = "${ROOTFS_PKGMANAGE}"
|
||||||
PACKAGE_GROUP_qt4-pkgs = "packagegroup-core-qt-demoapps"
|
PACKAGE_GROUP_qt4-pkgs = "packagegroup-core-qt-demoapps"
|
||||||
|
PACKAGE_GROUP_hwcodecs = "${MACHINE_HWCODECS}"
|
||||||
|
|
||||||
|
|
||||||
# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2'
|
# IMAGE_FEATURES_REPLACES_foo = 'bar1 bar2'
|
||||||
|
@ -50,6 +52,8 @@ IMAGE_FEATURES_REPLACES_ssh-server-openssh = "ssh-server-dropbear"
|
||||||
# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
|
# IMAGE_FEATURES_CONFLICTS_foo = 'bar1 bar2'
|
||||||
# An error exception would be raised if both image features foo and bar1(or bar2) are included
|
# An error exception would be raised if both image features foo and bar1(or bar2) are included
|
||||||
|
|
||||||
|
MACHINE_HWCODECS ??= ""
|
||||||
|
|
||||||
python __anonymous() {
|
python __anonymous() {
|
||||||
# Ensure we still have a splash screen for existing images
|
# Ensure we still have a splash screen for existing images
|
||||||
if base_contains("IMAGE_FEATURES", "apps-console-core", "1", "", d) == "1":
|
if base_contains("IMAGE_FEATURES", "apps-console-core", "1", "", d) == "1":
|
||||||
|
|
|
@ -2,7 +2,7 @@ DESCRIPTION = "A foundational basic image without support for X that can be \
|
||||||
reasonably used for customization and is suitable for implementations that \
|
reasonably used for customization and is suitable for implementations that \
|
||||||
conform to Linux Standard Base (LSB)."
|
conform to Linux Standard Base (LSB)."
|
||||||
|
|
||||||
IMAGE_FEATURES += "splash ssh-server-openssh"
|
IMAGE_FEATURES += "splash ssh-server-openssh hwcodecs"
|
||||||
|
|
||||||
IMAGE_INSTALL = "\
|
IMAGE_INSTALL = "\
|
||||||
${CORE_IMAGE_BASE_INSTALL} \
|
${CORE_IMAGE_BASE_INSTALL} \
|
||||||
|
|
|
@ -2,7 +2,7 @@ DESCRIPTION = "Image with Sato, a mobile environment and visual style for \
|
||||||
mobile devices. The image supports X11 with a Sato theme, Pimlico \
|
mobile devices. The image supports X11 with a Sato theme, Pimlico \
|
||||||
applications, and contains terminal, editor, and file manager."
|
applications, and contains terminal, editor, and file manager."
|
||||||
|
|
||||||
IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbear"
|
IMAGE_FEATURES += "splash package-management x11-base x11-sato ssh-server-dropbear hwcodecs"
|
||||||
|
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue