diff mbox series

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

Message ID 20250621162642.804605-4-adrian.freihofer@siemens.com (mailing list archive)
State New
Headers show
Series FIT image beaglebone-yocto (poky part) | expand

Commit Message

AdrianF June 21, 2025, 4:26 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

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 <adrian.freihofer@siemens.com>
---
 meta-yocto-bsp/conf/machine/beaglebone-yocto.conf | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

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 \