From a94f9b9fdf29d0f27349599aa73a585ba78949d6 Mon Sep 17 00:00:00 2001 From: unitexe Date: Fri, 2 Jan 2026 11:19:40 -0600 Subject: Introduce unit-poky distro and meta-unit-distro layer Has the necessary features enabled for (rootless) podman and graphics with flutter. --- meta-unit-distro/LICENSE | 21 +++++++++++++++++++++ meta-unit-distro/conf/distro/include/containers.inc | 6 ++++++ meta-unit-distro/conf/distro/include/graphics.inc | 6 ++++++ meta-unit-distro/conf/distro/include/systemd.inc | 1 + meta-unit-distro/conf/distro/unit-poky.conf | 12 ++++++++++++ meta-unit-distro/conf/layer.conf | 11 +++++++++++ 6 files changed, 57 insertions(+) create mode 100644 meta-unit-distro/LICENSE create mode 100644 meta-unit-distro/conf/distro/include/containers.inc create mode 100644 meta-unit-distro/conf/distro/include/graphics.inc create mode 100644 meta-unit-distro/conf/distro/include/systemd.inc create mode 100644 meta-unit-distro/conf/distro/unit-poky.conf create mode 100644 meta-unit-distro/conf/layer.conf (limited to 'meta-unit-distro') diff --git a/meta-unit-distro/LICENSE b/meta-unit-distro/LICENSE new file mode 100644 index 0000000..c41c5ae --- /dev/null +++ b/meta-unit-distro/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 unitexe + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/meta-unit-distro/conf/distro/include/containers.inc b/meta-unit-distro/conf/distro/include/containers.inc new file mode 100644 index 0000000..77adbb5 --- /dev/null +++ b/meta-unit-distro/conf/distro/include/containers.inc @@ -0,0 +1,6 @@ +require conf/distro/include/meta-virt-container-podman.inc + +DISTRO_FEATURES:append = " virtualization" +DISTRO_FEATURES:append = " pam" + +VIRTUAL-RUNTIME_dbus = "dbus-broker" diff --git a/meta-unit-distro/conf/distro/include/graphics.inc b/meta-unit-distro/conf/distro/include/graphics.inc new file mode 100644 index 0000000..f141001 --- /dev/null +++ b/meta-unit-distro/conf/distro/include/graphics.inc @@ -0,0 +1,6 @@ +DISTRO_FEATURES:remove = "directfb" +DISTRO_FEATURES:remove = "x11" + +DISTRO_FEATURES:append = " wayland" +DISTRO_FEATURES:append = " pam" +DISTRO_FEATURES:append = " opengl" diff --git a/meta-unit-distro/conf/distro/include/systemd.inc b/meta-unit-distro/conf/distro/include/systemd.inc new file mode 100644 index 0000000..116315b --- /dev/null +++ b/meta-unit-distro/conf/distro/include/systemd.inc @@ -0,0 +1 @@ +INIT_MANAGER = "systemd" diff --git a/meta-unit-distro/conf/distro/unit-poky.conf b/meta-unit-distro/conf/distro/unit-poky.conf new file mode 100644 index 0000000..27315f5 --- /dev/null +++ b/meta-unit-distro/conf/distro/unit-poky.conf @@ -0,0 +1,12 @@ +require conf/distro/poky.conf +require conf/distro/include/systemd.inc +require conf/distro/include/containers.inc +require conf/distro/include/graphics.inc + +DISTRO = "unit-poky" +DISTRO_NAME = "Unit Poky" +DISTRO_VERSION = "0.1-snapshot-${DATE}" + +MAINTAINER = "unitexe " + +DISTROOVERRIDES = "poky" diff --git a/meta-unit-distro/conf/layer.conf b/meta-unit-distro/conf/layer.conf new file mode 100644 index 0000000..84a5773 --- /dev/null +++ b/meta-unit-distro/conf/layer.conf @@ -0,0 +1,11 @@ +BBPATH .= ":${LAYERDIR}" + +BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" + +BBFILE_COLLECTIONS += "unit-distro" +BBFILE_PATTERN_unit-distro := "^${LAYERDIR}/" +BBFILE_PRIORITY_unit-distro = "9" + +LAYERDEPENDS_unit-distro = "core yocto virtualization-layer" + +LAYERSERIES_COMPAT_unit-distro = "whinlatter" -- cgit v1.2.3