Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpi-update-firmware.bbclass: refactor rpi_install_firmware_to_rootfs
The current rpi_install_firmware_to_rootfs has several problems: - it's installing duplicated devicetrees to /boot/firmware, because it is installing all dtb/dtbo links but they are duplicated, for instance: uart2.dtbo and uart2-raspberrypi4-64.dtbo are pointing to a same file. - While RPI bootfs contains all files listed in IMAGE_BOOT_FILES, a end user can customize that variable to install the files they want to be in boot partition, but rpi_install_firmware_to_rootfs does not handle it. To fix the above, introduce a function mender_install_deployed_files which is implemented in the same way with how WIC handle IMAGE_BOOT_FILES, now the files in boot partition and the files in /boot/firmware of A/B partitions are consistent. Signed-off-by: Ming Liu <[email protected]>
- Loading branch information