rpi-eeprom_git.bb 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. SUMMARY = "Installation scripts and binaries for the Raspberry Pi 4 EEPROM"
  2. DESCRIPTION = "This repository contains the rpi4/rpi5 bootloader and scripts \
  3. for updating it in the spi eeprom"
  4. LICENSE = "BSD-3-Clause & Broadcom-RPi"
  5. LIC_FILES_CHKSUM = "file://LICENSE;md5=a6c5149578a16272119f3f9c13d6549b"
  6. SRC_URI = " \
  7. git://github.com/raspberrypi/rpi-eeprom.git;protocol=https;branch=master \
  8. "
  9. SRCREV = "1bd0a1052b2e74d7af04de18d30b5edb12d8a423"
  10. PV = "v2025.03.10-2712"
  11. RDEPENDS:${PN} += " \
  12. coreutils \
  13. python3 \
  14. python3-pycryptodomex \
  15. openssl \
  16. xxd \
  17. pciutils \
  18. "
  19. inherit python3native
  20. do_install() {
  21. install -d ${D}${bindir}
  22. # install executables
  23. install -m 0755 ${S}/tools/vl805 ${D}${bindir}
  24. install -m 0755 ${S}/rpi-eeprom-update ${D}${bindir}
  25. install -m 0755 ${S}/rpi-eeprom-config ${D}${bindir}
  26. install -m 0755 ${S}/rpi-eeprom-digest ${D}${bindir}
  27. # copy firmware files
  28. install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/default
  29. install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/latest
  30. install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/default
  31. install -d ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/latest
  32. install -m 644 ${S}/firmware-2711/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/default
  33. install -m 644 ${S}/firmware-2711/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/latest
  34. install -m 644 ${S}/firmware-2712/default/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/default
  35. install -m 644 ${S}/firmware-2712/latest/* ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/latest
  36. ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/critical
  37. ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/stable
  38. ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2711/beta
  39. ln -s default ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/critical
  40. ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/stable
  41. ln -s latest ${D}${base_libdir}/firmware/raspberrypi/bootloader-2712/beta
  42. # copy default config
  43. install -d ${D}${sysconfdir}/default
  44. install -D ${S}/rpi-eeprom-update-default ${D}${sysconfdir}/default/rpi-eeprom-update
  45. }
  46. FILES:${PN} += "${base_libdir}/firmware/raspberrypi/bootloader-*"
  47. INHIBIT_PACKAGE_STRIP = "1"
  48. INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
  49. # vl805 tool sources are not available (yet), as it comes as a precompiled
  50. # binary only. It has ARM architecture whereas target machine is Aarch64. We
  51. # need to disable arch check for it otherwise it cannot packed.
  52. QAPATHTEST[arch] = ""
  53. COMPATIBLE_MACHINE = "raspberrypi4|raspberrypi4-64|raspberrypi5"