added custom distro

This commit is contained in:
2026-02-11 23:08:38 +01:00
parent ba72023563
commit a4d023f976
6 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
DISTRO = "devdistro"
DISTRO_NAME = "Custom Headless Distro for development"
DISTRO_VERSION = "1.0"
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
# Use systemd (recommended for networking & ssh)
DISTRO_FEATURES:append = "\
systemd \
usrmerge \
ipv4 \
ipv6 \
"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = ""
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
# Explicitly remove graphics
DISTRO_FEATURES:remove = "\
x11 \
wayland \
opengl \
directfb \
"
# No display-related features
DISTRO_FEATURES_BACKFILL_CONSIDERED += "\
x11 wayland opengl directfb \
"
# Avoid pulling graphics via dependencies
PACKAGECONFIG:remove:pn-qemu-system-native = "sdl gtk"

View File

@@ -0,0 +1,16 @@
# Add layer to BitBake search path
BBPATH .= ":${LAYERDIR}"
# Where recipes live
BBFILES += "\
${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend \
"
# Layer identification (REQUIRED)
BBFILE_COLLECTIONS += "devdistro"
BBFILE_PATTERN_devdistro = "^${LAYERDIR}/"
BBFILE_PRIORITY_devdistro = "8"
# Yocto release compatibility (REQUIRED, else warning)
LAYERSERIES_COMPAT_devdistro = "scarthgap"

View File

@@ -0,0 +1,9 @@
DESCRIPTION = "Full headless image"
require dev-image-full.bb
IMAGE_INSTALL += "\
dtc \
gptfdisk \
util-linux \
"

View File

@@ -0,0 +1,15 @@
DESCRIPTION = "Full headless development image"
require dev-image-net.bb
IMAGE_FEATURES += "\
ssh-server-dropbear \
"
IMAGE_INSTALL += "\
btop \
ca-certificates \
curl \
htop \
vim \
"

View File

@@ -0,0 +1,10 @@
DESCRIPTION = "Minimal headless image"
LICENSE = "MIT"
inherit core-image
IMAGE_INSTALL = "\
packagegroup-core-boot \
"
IMAGE_INSTALL:remove = "grub grub-efi grub-pc"

View File

@@ -0,0 +1,10 @@
DESCRIPTION = "Minimal image with networking"
require dev-image-minimal.bb
IMAGE_INSTALL += "\
iproute2 \
ethtool \
"
SYSTEMD_AUTO_ENABLE += "systemd-networkd systemd-resolved"