versioning bitbake build environment files(including local.conf and multiconfig files)

This commit is contained in:
vaughn committed 2026-10-09 00:01:55 -04:00
1 parent 91b78a6e0b
commit 9c5c4b96c8
14 files changed
+642

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
require arm-uboot.conf
#This config is designed to run on devices which normally boot straight to Windows Embedded
#The trick here is to essentially wrap u-boot into a faked WinCE binary file NK.bin
#This results in a somewhat ridiculous chainloading sequence, of Eboot->U-boot->grub-efi->linux but it should unlock some devices for us
OVERRIDES:append = ":eboot"
IMAGE_INSTALL += "ce-bin"
WKS_FILE = "plcos-bootdisk-eboot.wks.in"
+33
View File
@@ -0,0 +1,33 @@
# Create and deploy the vmlinux artifact which gets included into the FIT image
KERNEL_CLASSES += "kernel-fit-extra-artifacts"
# Do not install the kernel image package
#RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base = ""
# Install the FIT image package
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-yocto-fitimage"
# Configure the image.bbclass to depend on the FIT image instead of only
# the kernel to ensure the FIT image is built and deployed with the image
KERNEL_DEPLOY_DEPEND = "linux-yocto-fitimage:do_deploy"
SPL_BINARY = ""
WKS_FILES = "${WKS_FILE}"
include conf/machine/include/sunxi64.inc
MACHINE = "genericarm64"
KMACHINE = "genericarm64"
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
TMPDIR .= "-${BB_CURRENT_MC}"
#require linux-arm.inc
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
#KBRANCH = "v6.6/standard/preempt-rt/arm"
#IMAGE_FSTYPES += "wic wic.bmap"
WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
AUTO_SYSLINUXMENU = "0"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
#KERNEL_IMAGETYPE = "zImage"
#KERNEL_BOOTCMD = "bootz"
KERNEL_IMAGETYPE = "Image"
KERNEL_BOOTCMD = "booti"
+67
View File
@@ -0,0 +1,67 @@
#INHERIT += "grub-efi"
#inherit live-vm-common
EFIIMGDIR ??= "${S}/efi_img"
INITRD_LIVE ??= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}${IMAGE_MACHINE_SUFFIX}.${@d.getVar('INITRAMFS_FSTYPES').split()[0]}"
LIVE_ROOTFS_TYPE ??= "ext4"
ROOTFS ??= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${LIVE_ROOTFS_TYPE}"
OVERRIDES += ":arm-uefi"
#do_image_wic[recrdeptask] += " do_bootimg"
#do_bootimg[depends] += " ${INITRD_IMAGE_LIVE}:do_image_complete"
IMGCLASSES:append = " live-vm-common"
MACHINE = "genericarm64"
KMACHINE = "genericarm64"
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
TMPDIR .= "-${BB_CURRENT_MC}"
#require linux-arm.inc
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
#KBRANCH = "v6.6/standard/preempt-rt/arm"
#IMAGE_FSTYPES += "wic wic.bmap"
#WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
AUTO_SYSLINUXMENU = "0"
PREFERRED_PROVIDER_virtual/bootloader = "grub-efi"
#KERNEL_IMAGETYPE = "bzImage"
#KERNEL_IMAGETYPE = "zImage"
#KERNEL_BOOTCMD = "bootz"
#KERNEL_IMAGETYPE = "Image"
#KERNEL_BOOTCMD = "booti"
#SOC_FAMILY ??= ""
#include conf/machine/include/soc-family.inc
#MACHINEOVERRIDES =. "sunxi:sunxi64:"
#PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
#PREFERRED_VERSION_linux-mainline ?= "6.18.%"
#PREFERRED_PROVIDER_u-boot ?= "u-boot"
#PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
KERNEL_IMAGETYPE ?= "Image"
#IMAGE_FSTYPES += "live"
#ext4 tar.gz wic.gz wic.bmap"
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
#UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
#UBOOT_ENTRYPOINT ?= "0x40008000"
#UBOOT_LOADADDRESS ?= "0x40008000"
#UBOOT_BINARY ?= "u-boot.itb"
#SPL_BINARY ?= "u-boot-sunxi-with-spl.bin"
SERIAL_CONSOLES ?= "115200;ttyS0"
#MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
#SUNXI_BOOT_SPACE ?= "40"
# U-Boot on arm64 always asks for allwinner/<board>.dtb, so keep the
# directory from KERNEL_DEVICETREE.
IMAGE_BOOT_FILES ?= "${KERNEL_IMAGETYPE} ${@' '.join(os.path.basename(f) + ';' + f for f in (d.getVar('KERNEL_DEVICETREE') or '').split())}"
WKS_FILE:aarch64 = "plcos-bootdisk-arm-uefi.wks.in"
#WKS_FILES ?= "sunxi-sdcard-image.wks.in"
#WKS_FILE_DEPENDS ?= "virtual/kernel u-boot"
+28
View File
@@ -0,0 +1,28 @@
MACHINE = "beaglebone-yocto"
KMACHINE = "beaglebone"
COMPATIBLE_MACHINE:beaglebone-yocto = "beaglebone-yocto"
#KBUILD_DEFCONFIG ?= "defconfig"
#SRC_URI:linux-yocto-rt:append = "http://downloads.yoctoproject.org/mirror/sources/git2_git.yoctoproject.org.linux-yocto.git.tar.gz"
#PREFERRED_VERSION_linux-yocto-rt = "6.6%"
#LINUX_MINOR = "6"
#LINUX_VERSION = "6.6.x"
#COMPATIBLE_MACHINE="(${MACHINE})"
#COMPATIBLE_MACHINE:quilt-native="${MACHINE}"
TMPDIR .= "-${BB_CURRENT_MC}"
#SRCREV_meta = "0b45d854fcd717571edc261515273c17bfe57ad3"
#require linux-arm.inc
#KBRANCH:beaglebone-yocto = "v6.6/standard/preempt-rt/base"
#LINUX_VERSION:beaglebone-yocto ?= "6.6.x"
#update_sudoers () {
# sed -i 's/# %sudo/%sudo/' ${IMAGE_ROOTFS}/etc/sudoers
#}
#set_kernel_opts () {
# mkdir -p ${IMAGE_ROOTFS}/etc/sysctl.d
# echo 'kernel.sched_rt_runtime_us = -1' > ${IMAGE_ROOTFS}/etc/sysctl.d/kernel.sched_rt_runtime_us.conf
# echo 'processor.max_cstate = 1' > ${IMAGE_ROOTFS}/etc/sysctl.d/processor.max_cstate.conf
# echo 'isolcpus = 2,3' > ${IMAGE_ROOTFS}/etc/sysctl.d/isolcpus.conf
#}
#ROOTFS_POSTPROCESS_COMMAND:append =" update_sudoers;"
#ROOTFS_POSTPROCESS_COMMAND:append =" set_kernel_opts;"
#ROOTFS_POSTPROCESS_COMMAND:append =" do_test;"
+68
View File
@@ -0,0 +1,68 @@
# This file is your local configuration file and is where all local user settings
# are placed. The comments in this file give some guide to the options a new user
# to the system might want to change but pretty much any configuration option can
# be set in this file. More adventurous users can look at local.conf.extended
# which contains other examples of configuration which can be placed in this file
# but new users likely won't need any of them initially.
#
# Lines starting with the '#' character are commented out and in some cases the
# default values are provided as comments to show people example syntax. Enabling
# the option is a question of removing the # character and making any change to the
# variable as required.
#
# Wind River Linux Templates
#
# The following variables control the template inclusion mechanism.
#
# Specify templates you wish to use in a space separated list.
#WRTEMPLATE ?="feature/rt-latency-host"
#"feature/rt-latency-host"
#" feature/rt-latency-guest feature/rt-tune-host feature/rt-tune-guest"
# If you want to disable one or more templates
# Note: this matches the 'end' of any templates that were found.. so you can do
# things like:
#
# default (skip all default templates)
# feature/foobar (skip all layers feature/foobar)
# wr-base/feature/foobar (skip only feature/foobar in wr-base)
#WRTEMPLATE_SKIP = "feautre/item3 feature/item4 ..."
# Selectively enable or disable the template 'image.inc' additions to a given
# image recipe.
# (the default value is 1)
#WRTEMPLATE_IMAGE:pn-<recipe> = "0"
# Disable or enable processing of the special 'bsp-pkgs.*' template pieces.
# (the default value is 1)
#WRTEMPLATE_BSP_PKGS = "0"
#
# Machine Selection
#
# You need to select a specific machine to target the build with.
# Some machines are emulated, usually the name starts with qemu, these can boot
# and run in the QEMU emulator:
#
# 32 bit Intel Core 2 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
#MACHINE ?= "intel-core2-32"
# 64 bit Intel Core i7 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
MACHINE = "intel-corei7-64"
# 64 bit Intel Skylake CPU (and later) with MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX, and AVX2 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
#MACHINE ?= "intel-skylake-64"
# Intel X86 (64bit) PCs and servers
#below seems to be maintained by wind river
#MACHINE = "intel-x86-64"
TMPDIR .= "-${BB_CURRENT_MC}"
IMAGE_INSTALL:append = " intel-cmt-cat"
APPEND += " intel.max_cstate=1 "
#IMAGE_FSTYPES:append = " live"
IMAGE_FSTYPES += "iso"
#WKS_FILE = "image-efi-installer.wks"
#FIXME the below should be done with a distro override, so that only non-graphics distros have the codecs removed.
MACHINE_HWCODECS = ""
+19
View File
@@ -0,0 +1,19 @@
#require recipes-kernel/linux/linux-yocto.inc
#require recipes-kernel/linux/meta-intel-compat-kernel.inc
#FILESEXTRAPATHS:prepend := "${THISDIR}/linux-intel:"
KMETA_BRANCH = "6.12"
KERNEL_CONFIG_URI ?= "git://git.yoctoproject.org/yocto-kernel-cache;protocol=https;type=kmeta;name=meta;branch=${KMETA_BRANCH};destsuffix=${KMETA}"
SRC_URI:linux-yocto-rt:prepend = " \
${KERNEL_CONFIG_URI} \
"
PV = "${LINUX_VERSION}+git${SRCPV}"
KMETA = "kernel-meta"
KCONF_BSP_AUDIT_LEVEL = "0"
COMPATIBLE_MACHINE ?= "(genericarm64|beaglebone-yocto)"
KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
+35
View File
@@ -0,0 +1,35 @@
#MACHINE = "raspberrypi5"
#COMPATIBLE_MACHINE:raspberrypi5 = "raspberrypi5"
#DISTRO = "poky"
MACHINE = "raspberrypi-armv8"
WKS_FILE_DEPENDS_BOOTLOADERS = "u-boot"
DISTRO_FEATURES:remove = "3g wayland vulkan"
DISTRO_FEATURES_DEFAULTS:remove = "3g wayland vulkan"
COMPATIBLE_MACHINE:raspberrypi-armv8 = "raspberrypi-armv8"
TMPDIR .= "-${BB_CURRENT_MC}"
#I believe this only affects RPi Zero 2W and RPi 4
LICENSE_FLAGS_ACCEPTED += "synaptics-killswitch"
#IMAGE_FSTYPES += " wic wic.bmap"
#leaving VC4 graphics enabled causes the RPi to refuse to drop into a console, possibly because the base PLC-OS has no graphics
#TODO: for GUI images (in situations where this is confirmed not to break the loading sequence), use bitbake logic to enable VC4 graphics
#VC4DTBO = "vc4-kms-v3d"
#following methods to disable VC4 graphics (only added for raspberry pi) break something in cairo, meson, with some messages about the package configuration for egl and glesv2
#Not sure how to disable these, so we let it build as before, and in a bbappend file, disable the VC4 dtbo via config.txt
#DISABLE_VC4GRAPHICS = "1"
#MACHINE_FEATURES:remove = "vc4graphics"
################################################################
RPI_USE_U_BOOT = "1"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
#KERNEL_BOOTCMD = "booti"
EXTRA_IMAGEDEPENDS += " u-boot"
#from raspberrypi4-64.conf
#allows to boot on rpi4, does not break rpi5
ARMSTUB ?= "armstub8-gic.bin"
+85
View File
@@ -0,0 +1,85 @@
#SPL_BINARY = ""
WKS_FILES = "${WKS_FILE}"
#include conf/machine/include/sunxi64.inc
include conf/machine/include/sun55i.inc
MACHINE = "genericarm64"
KMACHINE = "genericarm64"
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
TMPDIR .= "-${BB_CURRENT_MC}"
#require linux-arm.inc
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
#KBRANCH = "v6.6/standard/preempt-rt/arm"
#IMAGE_FSTYPES += "wic wic.bmap"
WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
AUTO_SYSLINUXMENU = "0"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
#KERNEL_IMAGETYPE = "zImage"
#KERNEL_BOOTCMD = "bootz"
KERNEL_IMAGETYPE = "Image"
KERNEL_BOOTCMD = "booti"
#Including several .dtb's isn't necessarily helpful on its own, as u-boot must be directed to the correct one.
#A more device-specific image would provide a smaller image size and possibly a better guarantee that the correct .dtb is being used
#One possible solution is the stubble project from Ubuntu, but this has not yet been evaluated
#another possible solution is via FIT images, but this has also not been evaluated
KERNEL_DEVICETREE ??= ""
KERNEL_DEVICETREE += "allwinner/sun8i-h3-bananapi-m2-plus.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-lite.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-orangepi-zero.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-a64-pine64-plus.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-v40-bananapi-m2-berry.dtb"
KERNEL_DEVICETREE += "allwinner/sun5i-a13-olinuxino.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-r1.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-v3s-licheepi-zero.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olimex-som204-evb.dtb"
KERNEL_DEVICETREE += "allwinner/sun55i-t527-orangepi-4a.dtb"
KERNEL_DEVICETREE += "allwinner/sun55i-a527-cubie-a5e.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h6-orangepi-3-lts.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime2.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-m1-plus.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-a64-olinuxino.dtb"
KERNEL_DEVICETREE += "allwinner/sun4i-a10-olinuxino-lime.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-bananapi.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-prime.dtb"
KERNEL_DEVICETREE += "allwinner/sun4i-a10-marsboard.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-pc-plus.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-a64-bananapi-m64.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-r16-bananapi-m2m.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-orangepi-r1.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h618-orangepi-zero3.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-zero-plus2.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-m1.dtb"
KERNEL_DEVICETREE += "allwinner/sun4i-a10-pcduino.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-micro.dtb"
KERNEL_DEVICETREE += "allwinner/sun9i-a80-cubieboard4.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h6-orangepi-one-plus.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-cubietruck.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olimex-som-evb.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime2-emmc.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h5-nanopi-neo-plus2.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-zero-plus2.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h5-nanopi-neo2.dtb"
KERNEL_DEVICETREE += "allwinner/sun5i-a10s-olinuxino-micro.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-pcduino3.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-cubieboard2.dtb"
KERNEL_DEVICETREE += "allwinner/sun4i-a10-cubieboard.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-neo.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-pc2.dtb"
KERNEL_DEVICETREE += "allwinner/sun7i-a20-lamobo-r1.dtb"
KERNEL_DEVICETREE += "allwinner/sun4i-a10-a1000.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-neo-air.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-bananapi-m2-zero.dtb"
KERNEL_DEVICETREE += "allwinner/sun50i-h616-orangepi-zero2.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-pc.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-t113s-mangopi-mq-r-t113.dtb"
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-one.dtb"
UBOOT_MACHINE ?= "radxa-cubie-a5e_defconfig"
#overwrite for testing
KERNEL_DEVICETREE = "allwinner/sun55i-a527-cubie-a5e.dtb"
+67
View File
@@ -0,0 +1,67 @@
# This file is your local configuration file and is where all local user settings
# are placed. The comments in this file give some guide to the options a new user
# to the system might want to change but pretty much any configuration option can
# be set in this file. More adventurous users can look at local.conf.extended
# which contains other examples of configuration which can be placed in this file
# but new users likely won't need any of them initially.
#
# Lines starting with the '#' character are commented out and in some cases the
# default values are provided as comments to show people example syntax. Enabling
# the option is a question of removing the # character and making any change to the
# variable as required.
#
# Wind River Linux Templates
#
# The following variables control the template inclusion mechanism.
#
# Specify templates you wish to use in a space separated list.
#WRTEMPLATE ?="feature/rt-latency-host"
#"feature/rt-latency-host"
#" feature/rt-latency-guest feature/rt-tune-host feature/rt-tune-guest"
# If you want to disable one or more templates
# Note: this matches the 'end' of any templates that were found.. so you can do
# things like:
#
# default (skip all default templates)
# feature/foobar (skip all layers feature/foobar)
# wr-base/feature/foobar (skip only feature/foobar in wr-base)
#WRTEMPLATE_SKIP = "feautre/item3 feature/item4 ..."
# Selectively enable or disable the template 'image.inc' additions to a given
# image recipe.
# (the default value is 1)
#WRTEMPLATE_IMAGE:pn-<recipe> = "0"
# Disable or enable processing of the special 'bsp-pkgs.*' template pieces.
# (the default value is 1)
#WRTEMPLATE_BSP_PKGS = "0"
#
# Machine Selection
#
# You need to select a specific machine to target the build with.
# Some machines are emulated, usually the name starts with qemu, these can boot
# and run in the QEMU emulator:
#
# 32 bit Intel Core 2 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
#MACHINE ?= "intel-core2-32"
# 64 bit Intel Core i7 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
MACHINE = "genericx86-64"
KMACHINE = "common-pc-64"
# 64 bit Intel Skylake CPU (and later) with MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX, and AVX2 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
#MACHINE ?= "intel-skylake-64"
# Intel X86 (64bit) PCs and servers
#below seems to be maintained by wind river
#MACHINE = "intel-x86-64"
TMPDIR .= "-${BB_CURRENT_MC}"
#IMAGE_INSTALL:append = " intel-cmt-cat"
#APPEND += " intel.max_cstate=1 "
IMAGE_FSTYPES += "iso"
COMPATIBLE_MACHINE:genericx86-64 = "genericx86-64"
KMACHINE:genericx86-64 ?= "common-pc-64"