From 35fed83032f04c9bd47a96432cfbc5c5147559e1 Mon Sep 17 00:00:00 2001 From: Max Stepanov Date: Thu, 21 Mar 2024 13:50:55 -0400 Subject: [PATCH] rpi-eeprom: Update to support raspberrypi5 machine - Upgraded rpi-eeprom to latest release - Updated recipe to support pi4 and pi5 machines Signed-off-by: Max Stepanov --- recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb | 29 +++++++++++++++--------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb b/recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb index dd0bfa4f..2e10253e 100644 --- a/recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb +++ b/recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb @@ -8,8 +8,8 @@ SRC_URI = " \ git://github.com/raspberrypi/rpi-eeprom.git;protocol=https;branch=master \ " -SRCREV = "759460850c2cb69e19567947a42fbed996e7bf61" -PV = "v.2024.01.05-2712" +SRCREV = "36e58db5c2a2656e553441f4f48f32227809105d" +PV = "v.2024.02.16-2712" S = "${WORKDIR}/git" @@ -34,22 +34,29 @@ do_install() { install -m 0755 ${S}/rpi-eeprom-digest ${D}${bindir} # copy firmware files - install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/default - install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader/latest + install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/default + install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/latest + install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/default + install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/latest - install -m 644 ${S}/firmware-2711/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/default - install -m 644 ${S}/firmware-2711/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader/latest + install -m 644 ${S}/firmware-2711/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/default + install -m 644 ${S}/firmware-2711/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/latest + install -m 644 ${S}/firmware-2712/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/default + install -m 644 ${S}/firmware-2712/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/latest - ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader/critical - ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader/stable - ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader/beta + ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/critical + ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/stable + ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/beta + ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/critical + ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/stable + ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/beta # copy default config install -d ${D}${sysconfdir}/default install -D ${S}/rpi-eeprom-update-default ${D}${sysconfdir}/default/rpi-eeprom-update } -FILES:${PN} += "${base_libdir}/firmware/raspberrypi/bootloader/*" +FILES:${PN} += "${base_libdir}/firmware/raspberrypi/bootloader-*" INHIBIT_PACKAGE_STRIP = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1" @@ -59,4 +66,4 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1" # need to disable arch check for it otherwise it cannot packed. QAPATHTEST[arch] = "" -COMPATIBLE_MACHINE = "raspberrypi4|raspberrypi4-64" +COMPATIBLE_MACHINE = "raspberrypi4|raspberrypi4-64|raspberrypi5"