generated from timoschneider/yocto-template
added custom distro
This commit is contained in:
33
layers/meta-devdistro/conf/distro/devdistro.conf
Normal file
33
layers/meta-devdistro/conf/distro/devdistro.conf
Normal 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"
|
||||
16
layers/meta-devdistro/conf/layer.conf
Normal file
16
layers/meta-devdistro/conf/layer.conf
Normal 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"
|
||||
@@ -0,0 +1,9 @@
|
||||
DESCRIPTION = "Full headless image"
|
||||
|
||||
require dev-image-full.bb
|
||||
|
||||
IMAGE_INSTALL += "\
|
||||
dtc \
|
||||
gptfdisk \
|
||||
util-linux \
|
||||
"
|
||||
15
layers/meta-devdistro/recipes-core/images/dev-image-full.bb
Normal file
15
layers/meta-devdistro/recipes-core/images/dev-image-full.bb
Normal 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 \
|
||||
"
|
||||
@@ -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"
|
||||
10
layers/meta-devdistro/recipes-core/images/dev-image-net.bb
Normal file
10
layers/meta-devdistro/recipes-core/images/dev-image-net.bb
Normal 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"
|
||||
Reference in New Issue
Block a user