builds and runs on intel-x86 and rpi4 with acceptable realtime performance
This commit is contained in:
1 parent
2bce6fa556
commit
3faf544f0b
120 files changed
+6317
-1
No files matched your search
@@ -0,0 +1,98 @@
|
||||
SUMMARY = "Terminal-Only image with realtime optimizations"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PR = "r5"
|
||||
|
||||
IMAGE_INSTALL = " \
|
||||
${@bb.utils.contains('IMAGE_ENABLE_CONTAINER', '1', '', 'kernel-modules', d)} \
|
||||
packagegroup-base-extended \
|
||||
packagegroup-wr-base \
|
||||
packagegroup-wr-base-net \
|
||||
packagegroup-wr-base-discrete-tools \
|
||||
packagegroup-core-boot \
|
||||
packagegroup-plcos-core \
|
||||
hwlatdetect \
|
||||
tuned \
|
||||
openplc \
|
||||
rt-setup \
|
||||
i2c-tools \
|
||||
spitools \
|
||||
libgpiod \
|
||||
"
|
||||
#nfs-utils-client
|
||||
#packagegroup-wr-boot
|
||||
#swap "boot install" to "install boot" to try and get install to show up first in grub.cfg for hands-off autoinstall
|
||||
#install lines should be stripped during install-efi.sh anyway
|
||||
LABELS_LIVE = "install boot"
|
||||
inherit wrlinux-image
|
||||
inherit rtopts
|
||||
|
||||
#############################################################
|
||||
#IMAGE_FEATURES += " package-management wr-core-db wr-core-interactive wr-core-net wr-core-perl wr-core-python wr-core-sys-util wr-core-util wr-core-mail wr-bsps "
|
||||
|
||||
# ssh-server-openssh
|
||||
|
||||
DISTRO_FEATURES += " polkit "
|
||||
IMAGE_FEATURES += " splash package-management"
|
||||
#IMAGE_FEATURES += " ssh-server-dropbear hwcodecs "
|
||||
#CORE_IMAGE_BASE_INSTALL += " openssh"
|
||||
#linuxcnc linuxcnc-doc"
|
||||
|
||||
#DEPENDS += " cdrtools-native"
|
||||
|
||||
QB_MEM = "-m 2048"
|
||||
|
||||
IMAGE_FSTYPES += "wic wic.bmap"
|
||||
#WKS_FILE = "sdimage_bootpart.wks mkefidisk.wks"
|
||||
|
||||
inherit extrausers
|
||||
|
||||
IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
|
||||
IMAGE_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
|
||||
#TODO reference GRUB_IMAGE destination name via variables, otherwise this could break possible future 32 bit builds
|
||||
IMAGE_BOOT_FILES:append:rpi = " \
|
||||
grub.cfg;EFI/BOOT/grub.cfg \
|
||||
bootaa64.efi;EFI/BOOT/bootaa64.efi \
|
||||
"
|
||||
# ${EFI_PROVIDER}-bootaa64.efi:EFI/BOOT/bootaa64.efi
|
||||
#IMAGE_EFI_BOOT_FILES:append := " boot"
|
||||
|
||||
python do_bootimg:prepend() {
|
||||
#import os
|
||||
import glob
|
||||
deploy_dir = d.getVar("DEPLOY_DIR_IMAGE")
|
||||
os.system("install -d " + deploy_dir)
|
||||
iso_dir = d.getVar("ISODIR")
|
||||
os.system("install -d " + iso_dir)
|
||||
hdd_dir = d.getVar("HDDDIR")
|
||||
os.system("install -d " + hdd_dir)
|
||||
img_type = d.getVar("KERNEL_IMAGETYPE")
|
||||
files = glob.glob(deploy_dir + "/" + img_type + "-*")
|
||||
for file in files:
|
||||
os.system("install -m 644 -t " + iso_dir + " " + file + " | install -m 644 -t " + hdd_dir + " " + file )
|
||||
}
|
||||
python do_image:append() {
|
||||
# try:
|
||||
# os.system("ln -s /boot/EFI/BOOT " + d.getVar("ROOTFS") + "/boot/grub")
|
||||
# except E:
|
||||
# pass
|
||||
}
|
||||
efi_iso_populate:append() {
|
||||
# if [ ! -e "${EFIIMGDIR}/grub" ] ; then
|
||||
# ln -s /boot/EFI/BOOT "${EFIIMGDIR}/grub"
|
||||
# fi
|
||||
}
|
||||
|
||||
#below breaks something, it tries to make the file even when it already exists
|
||||
efi_populate:append() {
|
||||
# if [ ! -e "${DEST}/grub" ] ; then
|
||||
# ln -s /boot/EFI/BOOT "${DEST}/grub"
|
||||
# fi
|
||||
}
|
||||
populate_kernel:append() {
|
||||
#mv $dest/${KERNEL_IMAGETYPE} $dest/${KERNEL_IMAGETYPE}-
|
||||
}
|
||||
#hostname:pn-base-files = "plc"
|
||||
@@ -0,0 +1,41 @@
|
||||
SUMMARY = "PLC-OS dev image"
|
||||
|
||||
LICENSE = "CLOSED"
|
||||
|
||||
IMAGE_INSTALL:append := " \
|
||||
lat-plot \
|
||||
stress-ng \
|
||||
efibootmgr \
|
||||
efivar \
|
||||
efitools \
|
||||
"
|
||||
#nfs-utils-client
|
||||
|
||||
inherit wrlinux-image
|
||||
require plcos-image-base.bb
|
||||
inherit extrausers
|
||||
|
||||
IMAGE_FEATURES += " \
|
||||
ssh-server-openssh \
|
||||
"
|
||||
PLCOS_VARIANT = " dev"
|
||||
|
||||
DISTRO_FEATURES += ""
|
||||
EXTRA_IMAGE_FEATURES += "allow-root-login"
|
||||
|
||||
#CORE_IMAGE_BASE_INSTALL:append := " openssh"
|
||||
|
||||
# The following options will build a companion 'debug filesystem' in addition
|
||||
# to the normal deployable filesystem. This companion system allows a
|
||||
# debugger to know the symbols and related sources. It can be used to
|
||||
# debug a remote 'production' system without having to add the debug symbols
|
||||
# and sources to remote system. If IMAGE_FSTYPES_DEBUGFS is not defined, it
|
||||
# defaults to IMAGE_FSTYPES.
|
||||
#IMAGE_GEN_DEBUGFS = "1"
|
||||
#IMAGE_FSTYPES_DEBUGFS = "tar.bz2"
|
||||
#linuxcnc linuxcnc-doc"
|
||||
|
||||
EXTRA_USERS_PARAMS += " useradd plc-dev; \
|
||||
usermod -p '\$6\$TNPZD8XEuoDZWxLo\$WOIudv2UA5eePqcX0qgiS.o0feNZow1cAq9OnYLIZYsE6Jq2n.G/7792z73lx0h6EpBr/FUZpEqIDpWliK7Oy.' plc-dev; \
|
||||
usermod -p '\$6\$siB0EnTKa.T7axfN\$F.zJzll9xMkoe18TI0F8OknfCbsOfOw8hEcKM.6b1WIUqcAa3HyDwwMw.Yz4XrAFu.A1GfKG9dVUvuN/1rj2Y0' root; \
|
||||
usermod -a -G sudo plc-dev; "
|
||||
@@ -0,0 +1,64 @@
|
||||
# PLC-OS Graphical Image with some utilities. Suitable for HMI's, operator consoles, etc.
|
||||
# Although a best-attempt effort has been made to limit this effect, the introduction of graphics may nonetheless limit real-time performance.
|
||||
# This effect may vary from platform to platform, depending on various decisions in a given platform's hardware architecture.
|
||||
# This software is provided as-is, and so it is up to the user to ensure suiable perormance for a given use-case
|
||||
SUMMARY = "PLC-OS graphical image with terminal and Firefox"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PR = "r0"
|
||||
require plcos-image-base.bb
|
||||
|
||||
IMAGE_INSTALL += " \
|
||||
packagegroup-base-extended \
|
||||
packagegroup-wr-base \
|
||||
packagegroup-wr-base-net \
|
||||
packagegroup-wr-base-discrete-tools \
|
||||
packagegroup-wr-boot \
|
||||
nfs-utils-client \
|
||||
readline \
|
||||
pcmanfm \
|
||||
gnuplot \
|
||||
matchbox-terminal \
|
||||
firefox \
|
||||
pulseaudio \
|
||||
"
|
||||
#blt
|
||||
# chocolate-doom
|
||||
|
||||
inherit wrlinux-image
|
||||
inherit rtopts
|
||||
|
||||
DISTRO = "plcos-graphics"
|
||||
|
||||
IMAGE_FEATURES += " \
|
||||
hwcodecs \
|
||||
ssh-server-openssh \
|
||||
wr-core-db \
|
||||
wr-core-interactive \
|
||||
wr-core-net \
|
||||
wr-core-perl \
|
||||
wr-core-python \
|
||||
wr-core-sys-util \
|
||||
wr-core-util \
|
||||
wr-core-mail \
|
||||
wr-bsps \
|
||||
"
|
||||
|
||||
|
||||
#DISTRO_FEATURES += " x11 opengl wayland "
|
||||
IMAGE_FEATURES += " splash package-management ssh-server-dropbear hwcodecs weston "
|
||||
|
||||
CORE_IMAGE_BASE_INSTALL += " weston-xwayland matchbox-terminal pcmanfm vim firefox openssh"
|
||||
#linuxcnc linuxcnc-doc"
|
||||
|
||||
QB_MEM = "-m 2048"
|
||||
|
||||
#IMAGE_FSTYPES = "wic
|
||||
inherit extrausers
|
||||
EXTRA_USERS_PARAMS += " usermod -p '\$6\$siB0EnTKa.T7axfN\$F.zJzll9xMkoe18TI0F8OknfCbsOfOw8hEcKM.6b1WIUqcAa3HyDwwMw.Yz4XrAFu.A1GfKG9dVUvuN/1rj2Y0' weston; \
|
||||
usermod -a -G sudo weston; "
|
||||
|
||||
#CUSTOMER_RECIPES:multimedia-layer += 'vlc'
|
||||
@@ -0,0 +1,48 @@
|
||||
SUMMARY = "A very basic Wayland image with a terminal and Chromium"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
|
||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
PR = "r5"
|
||||
|
||||
IMAGE_INSTALL = " \
|
||||
${@bb.utils.contains('IMAGE_ENABLE_CONTAINER', '1', '', 'kernel-modules', d)} \
|
||||
packagegroup-base-extended \
|
||||
packagegroup-wr-base \
|
||||
packagegroup-wr-base-net \
|
||||
packagegroup-wr-base-discrete-tools \
|
||||
packagegroup-wr-boot \
|
||||
nfs-utils-client \
|
||||
"
|
||||
inherit wrlinux-image
|
||||
inherit rtopts
|
||||
|
||||
IMAGE_FEATURES += " \
|
||||
package-management \
|
||||
ssh-server-openssh \
|
||||
wr-core-db \
|
||||
wr-core-interactive \
|
||||
wr-core-net \
|
||||
wr-core-perl \
|
||||
wr-core-python \
|
||||
wr-core-sys-util \
|
||||
wr-core-util \
|
||||
wr-core-mail \
|
||||
wr-bsps \
|
||||
"
|
||||
|
||||
|
||||
DISTRO_FEATURES += " x11 opengl wayland pam "
|
||||
IMAGE_FEATURES += " splash package-management ssh-server-dropbear hwcodecs "
|
||||
|
||||
CORE_IMAGE_BASE_INSTALL += " matchbox-terminal pcmanfm vim sway firefox "
|
||||
#linuxcnc linuxcnc-doc"
|
||||
|
||||
QB_MEM = "-m 2048"
|
||||
|
||||
#IMAGE_FSTYPES = "wic
|
||||
inherit extrausers
|
||||
EXTRA_USERS_PARAMS += " useradd sway; \
|
||||
usermod -p '\$6\$siB0EnTKa.T7axfN\$F.zJzll9xMkoe18TI0F8OknfCbsOfOw8hEcKM.6b1WIUqcAa3HyDwwMw.Yz4XrAFu.A1GfKG9dVUvuN/1rj2Y0' sway; \
|
||||
usermod -a -G sudo sway; "
|
||||
Reference in new issue
Block a user