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"