Compare commits

...

2 Commits

Author SHA1 Message Date
a66dd76f28 switched to minimalistic dev distro 2026-02-11 23:15:48 +01:00
a4d023f976 added custom distro 2026-02-11 23:08:38 +01:00
8 changed files with 99 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ BBLAYERS ?= " \
/home/yocto/ws/poky/meta-yocto-bsp \
/home/yocto/ws/layers/meta-arm/meta-arm \
/home/yocto/ws/layers/meta-arm/meta-arm-toolchain \
/home/yocto/ws/layers/meta-devdistro \
/home/yocto/ws/layers/meta-openembedded/meta-oe \
/home/yocto/ws/layers/meta-ti/meta-beagle \
/home/yocto/ws/layers/meta-ti/meta-ti-bsp \
/home/yocto/ws/layers/meta-ti/meta-ti-extras \

View File

@@ -36,7 +36,9 @@
#MACHINE ?= "genericx86-64"
#
# This sets the default machine to be qemux86-64 if no other machine is selected:
MACHINE ??= "beagleplay"
MACHINE = "beagleplay"
KERNEL_DEVICETREE = "k3-am625-beagleplay.dtb"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-ti-staging"
# These are some of the more commonly used values. Looking at the files in the
# meta/conf/machine directory, or the conf/machine directory of any additional layers
@@ -91,7 +93,7 @@ MACHINE ??= "beagleplay"
# Ultimately when creating custom policy, people will likely end up subclassing
# these defaults.
#
DISTRO ?= "poky"
DISTRO ?= "devdistro"
# As an example of a subclass there is a "bleeding" edge policy configuration
# where many versions are set to the absolute latest code from the upstream
# source control systems. This is just mentioned here as an example, its not
@@ -147,7 +149,6 @@ DISTRO ?= "poky"
# meta/classes-recipe/core-image.bbclass for more details.
# We default to enabling the debugging tweaks.
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
IMAGE_INSTALL:append = " vim apt"
#
# Additional image features

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"