meta-raspberrypi/recipes-bsp/rpi-eeprom/rpi-eeprom_git.bb
Alper Ak 6d6f02ad1f Remove consecutive blank lines
Some of them were introduced by mass-removal of S = WORKDIR/git assignments;
rather than try to fix up (or redo) just these, I've run this sed command over
the whole tree:

sed -i -z -E 's/([ \t\f\v\r]*\n){3,}/\n\n/g' `find . -name *.bb -o -name *.inc`

The rationale is that more than one empty line is wasting vertical screen space, and
does nothing for readability.

Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-17 08:28:56 -07:00

68 lines
2.7 KiB
BlitzBasic

SUMMARY = "Installation scripts and binaries for the Raspberry Pi 4 EEPROM"
DESCRIPTION = "This repository contains the rpi4/rpi5 bootloader and scripts \
for updating it in the spi eeprom"
LICENSE = "BSD-3-Clause & Broadcom-RPi"
LIC_FILES_CHKSUM = "file://LICENSE;md5=a6c5149578a16272119f3f9c13d6549b"
SRC_URI = " \
git://github.com/raspberrypi/rpi-eeprom.git;protocol=https;branch=master \
"
SRCREV = "1bd0a1052b2e74d7af04de18d30b5edb12d8a423"
PV = "v2025.03.10-2712"
RDEPENDS:${PN} += " \
coreutils \
python3 \
python3-pycryptodomex \
openssl \
xxd \
pciutils \
"
inherit python3native
do_install() {
install -d ${D}${bindir}
# install executables
install -m 0755 ${S}/tools/vl805 ${D}${bindir}
install -m 0755 ${S}/rpi-eeprom-update ${D}${bindir}
install -m 0755 ${S}/rpi-eeprom-config ${D}${bindir}
install -m 0755 ${S}/rpi-eeprom-digest ${D}${bindir}
# copy firmware files
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-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-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-*"
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
# vl805 tool sources are not available (yet), as it comes as a precompiled
# binary only. It has ARM architecture whereas target machine is Aarch64. We
# need to disable arch check for it otherwise it cannot packed.
QAPATHTEST[arch] = ""
COMPATIBLE_MACHINE = "raspberrypi4|raspberrypi4-64|raspberrypi5"