Skip to content
Snippets Groups Projects
Commit e55421a7 authored by Eilís Ní Fhlannagáin's avatar Eilís Ní Fhlannagáin
Browse files

oniro-linux.conf: Rethink how DISTRO_FEATURES/IMAGE_FEATURES are defined


Right now, we do a remove in DISTRO_FEATURES, that, while we don't
neccessarily support them, due to the finality of :remove we force our
end users to not use them either.

By moving DISTRO_FEATURES:remove to DEFAULT_DISTRO_FEATURES:remove, we
allow end users to still use oniro.conf but add in those removed
features.

We also move IMAGE_FEATURES from a distro level var to the image.
IMAGE_FEATURES should generally be put in image recipes. This also gives
end users a way to use Oniro and work around our :remove defaults.

Signed-off-by: default avatarEilís Ní Fhlannagáin <pidge@pidge.org>
parent d0a360ac
No related branches found
No related tags found
1 merge request!68oniro-linux.conf: Rethink how DISTRO_FEATURES/IMAGE_FEATURES are defined
...@@ -23,6 +23,10 @@ ONIRO_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch pam rauc secur ...@@ -23,6 +23,10 @@ ONIRO_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch pam rauc secur
ONIRO_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot" ONIRO_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
ONIRO_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet" ONIRO_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
# Remove some of the default Poky DISTRO_FEATURES_DEFAULT we inherited, but do not use.
# Removing this here allows us to readd them, if the end user requires them.
DISTRO_FEATURES_DEFAULT:remove = " nfs nfc 3g pcmcia x11"
DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${ONIRO_DEFAULT_DISTRO_FEATURES}" DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${ONIRO_DEFAULT_DISTRO_FEATURES}"
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}" SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
...@@ -63,12 +67,6 @@ TCLIBC = "musl" ...@@ -63,12 +67,6 @@ TCLIBC = "musl"
INIT_MANAGER = "systemd" INIT_MANAGER = "systemd"
# Remove some of the default Poky DISTRO_FEATURES we inherited, but do not use.
DISTRO_FEATURES:remove = " nfs nfc 3g pcmcia x11"
# Remove some of the default Poky IMAGE_FEATURES we inherited, but do not need.
IMAGE_FEATURES:remove = " nfs-server nfs-client nfs-utils"
PREFERRED_VERSION_linux-yocto = "5.10%" PREFERRED_VERSION_linux-yocto = "5.10%"
PREFERRED_PROVIDER_virtual/kernel:qemuarm = "linux-oniro" PREFERRED_PROVIDER_virtual/kernel:qemuarm = "linux-oniro"
PREFERRED_PROVIDER_virtual/kernel:qemuarm64 = "linux-oniro" PREFERRED_PROVIDER_virtual/kernel:qemuarm64 = "linux-oniro"
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
inherit oniro-image inherit oniro-image
# Remove some of the default Poky IMAGE_FEATURES we inherited, but do not need.
# Best practices here are IMAGE_FEATURES should be used within image recipes.
IMAGE_FEATURES:remove = " nfs-server nfs-client nfs-utils"
IMAGE_INSTALL:append = "\ IMAGE_INSTALL:append = "\
packagegroup-oniro-core \ packagegroup-oniro-core \
packagegroup-net-essentials \ packagegroup-net-essentials \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment