[PATCH 3/4] beaglebone-yocto: remove redundant boot files

AdrianF <[email protected]> Sat, 21 Jun 2025 18:26:25 +0200
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
From: Adrian Freihofer <[email protected]>

The beaglebone-yocto MACHINE uses wic to create the final image. The wks
file defines a boot partition like that:
  part /boot --source bootimg_partition --ondisk mmcblk0

This copies the files listed in IMAGE_BOOT_FILES variable from the
DEPLOY_DIR_IMAGE to the dedicated boot partition. Therefore installing
the kernel and the u-boot also into the rootfs is redundant.
This is tested on a beaglebone-black:
* Without this commit: systemd boots. Unmounting /boot shows the useless
  artifacts in the rootfs /boot directory.
* With this commit: The system boots. Unmounting /boot leads to an empty
  /boot directory.

Signed-off-by: Adrian Freihofer <[email protected]>
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
index 321d2c27c2a..4ebb771323f 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone-yocto.conf
@@ -18,9 +18,6 @@ WKS_FILE ?= "beaglebone-yocto.wks"
 # Setting this variable to "1" switches from zImage kernel to FIT image kernel
 FIT_IMAGE_KERNEL ?= "0"
 
-# Note: This is redundant if wic creates a separate /boot partition
-MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "${@'linux-yocto-fitimage' if d.getVar('FIT_IMAGE_KERNEL') == '1' else 'kernel-image kernel-devicetree'}"
-
 KERNEL_CLASSES += "${@'kernel-fit-extra-artifacts' if d.getVar('FIT_IMAGE_KERNEL') == '1' else ''}"
 do_image_wic[depends] += "\
     mtools-native:do_populate_sysroot \
-- 
2.49.0