some cleanup of unused recipes, and some adjustments to assist with ARM testing

This commit is contained in:
vaughn committed 2026-10-08 23:40:14 -04:00
1 parent 271eb1a93f
commit 0b0b033991
18 files changed
+111 -273

No files matched your search

+58 -27
View File
@@ -14,7 +14,11 @@ IMAGE_INSTALL = " \
packagegroup-wr-base-discrete-tools \
packagegroup-core-boot \
packagegroup-plcos-core \
rt-tests \
hwlatdetect \
grub-efi \
grub \
grub-bootconf \
tuned \
openplc \
rt-setup \
@@ -29,9 +33,10 @@ IMAGE_INSTALL = " \
LABELS_LIVE = "install boot"
inherit wrlinux-image
inherit rtopts
inherit grub-efi
#inherit image_types
#############################################################
#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
@@ -39,7 +44,6 @@ 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"
@@ -50,17 +54,61 @@ IMAGE_FSTYPES += "wic wic.bmap"
inherit extrausers
IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
IMAGE_EFI_BOOT_FILES:append := " ${KERNEL_IMAGETYPE}-*"
#IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append := " ${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append := " startup.nsh"
#TODO reference GRUB_IMAGE destination name via variables, otherwise this could break possible future 32 bit builds
#BOOT_EFI =
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 \
"
# ${EFI_PROVIDER}-bootaa64.efi:EFI/BOOT/bootaa64.efi
#IMAGE_EFI_BOOT_FILES:append := " boot"
do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \
cdrtools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
"
#${@'%s:do_image_%s' % (d.getVar('PN'), d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_').split('.')[0]) if d.getVar('ROOTFS') else ''}
python do_bootimg:prepend() {
build_efi() {
#populate_kernel ${EFIIMGDIR}
#if [ "${EFI}" = "1" ]; then
# efi_populate ${EFIIMGDIR}
#fi
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
printf 'fs0:%s\%s\n' "$EFIPATH" "${EFI_BOOT_IMAGE}" >${DEPLOY_DIR_IMAGE}/startup.nsh
}
python do_bootimg:rpi() {
pass
}
#python do_bootimg:arm-uefi() {
# bb.build.exec_func('build_efi_cfg', d)
# bb.build.exec_func('build_efi', d)
# bb.build.exec_func('create_symlinks', d)
#}
#for some reason, adding my override (arm-uefi) to "python do_bootimg" causes bitbake to interpret the function as shell script, not as python.
#Since I don't have time for none of that, I'm just doing this in my own python function for non-x86 architectures
#(x86 is the only one that supports syslinux, which is a build requirement for OE's 'live' image classes, even for EFI-only images)
python do_build_boot() {
pass
}
python do_build_boot:arm-uefi() {
bb.build.exec_func('build_efi_cfg', d)
bb.build.exec_func('build_efi', d)
bb.build.exec_func('create_symlinks', d)
}
python do_bootimg:prepend:x86-64() {
#import os
import glob
deploy_dir = d.getVar("DEPLOY_DIR_IMAGE")
@@ -74,25 +122,8 @@ python do_bootimg:prepend() {
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
}
addtask build_boot before do_image_complete after do_rootfs
#do_image_wic[recrdeptask] += " do_bootimg"
#do_bootimg[depends] += " ${INITRD_IMAGE_LIVE}:do_image_complete"
#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"