removed some of the dependencies on WR Linux (don't want *any* proprietary/nonlicensed code in first release)

This commit is contained in:
vaughn committed 2026-09-28 15:10:03 -04:00
1 parent eb9ff01ed8
commit 11b61fd490
6 files changed
+14 -167

No files matched your search

+13 -63
View File
@@ -8,11 +8,6 @@
VIRTUAL-RUNTIME_syslog ?= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', 'sysklogd', 'rsyslog', d)}"
VIRTUAL-RUNTIME_base-utils-syslog ?= "${VIRTUAL-RUNTIME_syslog}"
# 1. for xfce, The networkmanager is required by xfce4-power-manager,
# and it conflicts with connman. The setting can avoid connman-gnome
# be added to packagegroup-core-x11-sato's RDEPENDS (when build image plcos-image-glibc-std-sato).
# 2. for std-sato image, bind also conflicts with connman, this can avoid
# connman-gnome be added to packagegroup-core-x11-sato's RDEPENDS
NETWORK_MANAGER = ""
# common plcos distro definitions
@@ -28,7 +23,6 @@ PLCOS_NAME = "PLC-OS"
PLCOS_VERSION ??= "0.1"
PLCOS_UPDATE_VERSION = "0"
PLCOS_BRANCH ?= ""
#this may not be necessary, but is just for parity with poky
DISTRO = "plcos"
DISTRO_NAME ?= "${PLCOS_NAME}${PLCOS_VARIANT}"
@@ -40,37 +34,17 @@ DISTRO_PRETTY_VERSION ?= "${PLCOS_VERSION}${@' Update ${PLCOS_UPDATE_VERSION}' i
DISTRO_CODENAME ?= "wrynose"
#TODO: build own SDK
#SDK_VENDOR = "-wrlinuxsdk"
SDK_VENDOR = "-pokysdk"
#TARGET_VENDOR = "-wrs"
#possible issue of this making full path names too long??
TARGET_VENDOR = "-poky"
# Append 'osv-wrlinux' to the DISTROOVERRIDE
DISTROOVERRIDES:append = "${@['', ':'][(d.getVar('DISTRO', True) != '')]}poky"
LOCALCONF_VERSION = "2"
#from wrlinux
#SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${TARGET_ARCH}"
#SDK_PS1 ??= "(wrlinuxsdk-${SDK_ARCH}-${TARGET_ARCH}) \${PS1#(wrlinuxsdk-${SDK_ARCH}-${TARGET_ARCH}) }"
#from poky
SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}"
SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}"
#TCSDKMACH = "${@['', '_${SDK_OS}']['${SDK_OS}' != 'linux']}"
#TOOLCHAIN_OUTPUTNAME = "${DISTRO}-${DISTRO_VERSION}-${TCLIBC}-${SDK_ARCH}${TCSDKMACH}-${MACHINE_ARCH}-${PN}-sdk"
#TOOLCHAINEXT_OUTPUTNAME = "${DISTRO}-${DISTRO_VERSION}-${TCLIBC}-${SDK_ARCH}${TCSDKMACH}-${MACHINE_ARCH}-${PN}-sdk-ext"
#TOOLCHAIN_OUTPUTNAME:pn-buildtools-tarball:forcevariable = "${SDK_ARCH}-buildtools-nativesdk-standalone-${DISTRO_VERSION}"
# Workaround for extensible SDK
#TOOLCHAIN_OUTPUTNAME:pn-uninative-tarball = "${SDK_ARCH}-nativesdk-libc"
#ESDK_CLASS_INHERIT_DISABLE:append = " packagefeed-stability"
# Override these in wrlinux based distros to modify DISTRO_*
#CORE_IMAGE_BASE_INSTALL:append = " packagegroup-core-boot-wrs "
PLCOS_DEFAULT_DISTRO_FEATURES = "multiarch ptest"
#PLCOS_DEFAULT_DISTRO_FEATURES = "largefile multiarch pulseaudio kvm virtualization"
PLCOS_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot packagegroup-plcos-core"
@@ -79,20 +53,9 @@ PLCOS_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
#DISTRO_FEATURES:append = "${DISTRO_FEATURES_DEFAULTS} ${PLCOS_DEFAULT_DISTRO_FEATURES}"
DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULTS} ${PLCOS_DEFAULT_DISTRO_FEATURES}"
#DISTRO_FEATURES:class-native ?= "${DISTRO_FEATURES_DEFAULTS} ${PLCOS_DEFAULT_DISTRO_FEATURES}"
#DISTRO_FEATURES:class-nativesdk ?= "${DISTRO_FEATURES_DEFAULTS} ${PLCOS_DEFAULT_DISTRO_FEATURES}"
DISTRO_EXTRA_RDEPENDS += " ${PLCOS_DEFAULT_EXTRA_RDEPENDS}"
DISTRO_EXTRA_RRECOMMENDS += " ${PLCOS_DEFAULT_EXTRA_RRECOMMENDS}"
# do not include qemu-config by default
#WRLINUXQEMUDEPS = "${@bb.utils.contains("INCOMPATIBLE_LICENSE", "GPL-3.0-only", "", "qemu-config",d)}"
#WRLINUXQEMUDEPS = ""
#DISTRO_EXTRA_RDEPENDS:append:qemuall = " ${WRLINUXQEMUDEPS}"
#TCLIBCAPPEND = ""
#default locale / local language processing settings
#IMAGE_LINGUAS ?= ""
# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully
@@ -131,10 +94,8 @@ ERROR_QA:append = " ${WARN_TO_ERROR_QA}"
# Make sure that ldconfig is only enabled when the user has added ldconfig
# to the DISTRO_FEATURES
#This was set to BACKFILL_CONSIDERED in previous yocto versions, it seems the change may be breaking something for intel-x86
#DISTRO_FEATURES_OPTED_OUT += "ldconfig"
# Make sure that X11 is only enabled in a graphics configuration
#DISTRO_FEATURES_OPTED_OUT += "x11"
#DISTRO_FEATURES_OPTED_OUT += "ldconfig x11"
# Multilib configuration
MULTILIBS ?= ""
@@ -149,8 +110,10 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
#SKIP_RECIPE[xyz-abc] ?= "Recipe xyz-abc is blacklisted via SKIP_RECIPE"
# SANITY_TESTED_DISTROS used to defined the distribution list which we used to build PLC-OS
#cachyos is NOT officially supported by yocto/bitbake, but we have personally tested it without issue
SANITY_TESTED_DISTROS ?= " \
ubuntu-24.04 \n \
cachyos-260809 \n
"
# TODO: This works, but OE documentation recommends either working with the DISTRO_FEATURES variable, or with the DISTRO_FEATURES_OPTED_OUT variable
@@ -178,33 +141,29 @@ MACHINE_FEATURES:append = " efi"
#ROOT_HOME ?= "/root"
# initramfs image for plcos distro
#TODO investigate having own initramfs image; wrlinux has its own, but this one should be the yocto one
#TODO investigate having own initramfs image; some other yocto distros have their own (e.g. wrlinux), but for now we use default yocto/poky initramfs
INITRD_IMAGE_LIVE ?= "${@d.getVar('INITRAMFS_IMAGE', True) if d.getVar('INITRAMFS_IMAGE', True) else 'core-image-minimal-initramfs'}"
# The providers are fftwf, fftwl, fftw
PREFERRED_PROVIDER_virtual/fftw = "fftw"
# Set the default psplash from psplash-default to psplash-windriver
## Syslinux options for boot menus when using isolinux or linux live
SYSLINUX_TIMEOUT = "50"
#SYSLINUX_TIMEOUT = "50"
#SYSLINUX_SPLASH = "${@oe.utils.conditional('WRLINUX_BRANCH', 'LTS', '${LAYER_PATH_plcos}/files/syslinux/bootloading-blue-wrl.png', '${LAYER_PATH_plcos}/files/syslinux/bootloading-gray-wrl.png', d)}"
SYSLINUX_SPLASH = "${LAYER_PATH_meta-realtime}/recipes-extended/psplash/files/psplash-plcos-img.png"
AUTO_SYSLINUXMENU = "1"
#SYSLINUX_SPLASH = "${LAYER_PATH_meta-realtime}/recipes-extended/psplash/files/psplash-plcos-img.png"
#AUTO_SYSLINUXMENU = "1"
## "1" = Have graphics and serial in the boot menu when use grub-efi in iso
GRUB_GFXSERIAL = "0"
GRUB_TIMEOUT = "5"
#TODO consider handling this some other way, this seems hacky
GRUB_TIMEOUT ?= "0"
# Possibly eliminate busybox from an image. The variables defined here
# are used by oe-core packagegroup-core-boot.bb. The overrides are
# DISTRO names.
# are used by oe-core packagegroup-core-boot.bb.
VIRTUAL-RUNTIME_login_manager = "shadow"
# We assume that we provide base-utils. This variable must
# empty or one item.
#
#VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
# This runs the busybox-hwclock script during systemv
# init. This does NOT supply /sbin/hwclock, only a script!
@@ -213,10 +172,9 @@ VIRTUAL-RUNTIME_base-utils-hwclock = "busybox-hwclock"
# Supply replacements for busybox functions we really, really need.
#
VIRTUAL-RUNTIME_no-busybox = "packagegroup-core-base-utils"
#VIRTUAL-RUNTIME_base-utils = "packagegroup-core-base-utils"
#TODO: check if valuable, disabled for parity with poky
#IMAGE_INSTALL:append = " ${VIRTUAL-RUNTIME_no-busybox}"
#IMAGE_INSTALL:append = " ${VIRTUAL-RUNTIME_base-utils}"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto-rt"
@@ -227,11 +185,6 @@ INHERIT += "distrooverrides"
INHERIT += "poky-sanity"
# Define WR sample keys directory
#WR_SAMPLE_KEYS_DIR ?= "${LAYER_PATH_plcos-distro}/files/sample-keys"
# By default the sample keys are used
#WR_KEYS_DIR ?= "${WR_SAMPLE_KEYS_DIR}"
PREFERRED_VERSION_linux-yocto ?= "6.18%"
PREFERRED_VERSION_linux-yocto-rt ?= "6.18%"
@@ -269,9 +222,6 @@ WKS_FILE:aarch64 = "plcos-bootdisk-arm.wks.in"
DISTRO_FEATURES:append = " pam opengl usbhost largefile "
#DISTRO_FEATURES:append = " x11 wayland virtualization "
#TODO remove WRLinux
# The overrides osv-wrlinux will enable wrlinux specific bbappend
OVERRIDES:append = ":osv-wrlinux"
INHERIT += "rtopts"
APPEND += "rcu_nocb_poll nmi-watchdog=0 processor.max_cstate=1 noefi irqaffinity=0"
ROOTFS_POSTPROCESS_COMMAND += " set_kernel_opts;"