diff options
| author | unitexe <unitexe70@gmail.com> | 2026-01-02 11:19:40 -0600 |
|---|---|---|
| committer | unitexe <unitexe70@gmail.com> | 2026-01-03 15:23:14 -0600 |
| commit | a94f9b9fdf29d0f27349599aa73a585ba78949d6 (patch) | |
| tree | da4bff8f2e182f7651e4a45450226c6456df02e7 | |
| parent | e1cb12ad8c8fd8f06dafaa57d0dd5cf0272b9ddc (diff) | |
Introduce unit-poky distro and meta-unit-distro layer
Has the necessary features enabled for (rootless) podman and graphics with flutter.
| -rw-r--r-- | meta-unit-distro/LICENSE | 21 | ||||
| -rw-r--r-- | meta-unit-distro/conf/distro/include/containers.inc | 6 | ||||
| -rw-r--r-- | meta-unit-distro/conf/distro/include/graphics.inc | 6 | ||||
| -rw-r--r-- | meta-unit-distro/conf/distro/include/systemd.inc | 1 | ||||
| -rw-r--r-- | meta-unit-distro/conf/distro/unit-poky.conf | 12 | ||||
| -rw-r--r-- | meta-unit-distro/conf/layer.conf | 11 | ||||
| -rw-r--r-- | meta-unit-kas/include/layers/meta-unit-distro/unit-poky.yml | 4 |
7 files changed, 61 insertions, 0 deletions
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 <unitexe70@gmail.com>" + +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" diff --git a/meta-unit-kas/include/layers/meta-unit-distro/unit-poky.yml b/meta-unit-kas/include/layers/meta-unit-distro/unit-poky.yml new file mode 100644 index 0000000..565234f --- /dev/null +++ b/meta-unit-kas/include/layers/meta-unit-distro/unit-poky.yml @@ -0,0 +1,4 @@ +header: + version: 20 + +distro: unit-poky |
