Skip to content

Commit

Permalink
rpi-eeprom: Update to support raspberrypi5 machine
Browse files Browse the repository at this point in the history
 - Upgraded rpi-eeprom to latest release
 - Updated recipe to support pi4 and pi5 machines

Signed-off-by: Max Stepanov <[email protected]>
  • Loading branch information
mast authored and agherzan committed Apr 9, 2024
1 parent d072cc8 commit 1879cb8
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"
Expand All @@ -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"

0 comments on commit 1879cb8

Please sign in to comment.