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"
|
||||
Reference in new issue
Block a user