From 90d4e6568a537addea00cebccb8d9762ad62c3de Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 13 Mar 2024 22:16:44 -0700 Subject: [PATCH] raspberrypi-firmware: Fetch using git URI This brings the matching binary blobs to latest kernel Signed-off-by: Khem Raj --- recipes-bsp/common/raspberrypi-firmware.inc | 13 ++++++++----- recipes-multimedia/picamera-libs/picamera-libs.bb | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/recipes-bsp/common/raspberrypi-firmware.inc b/recipes-bsp/common/raspberrypi-firmware.inc index 311da21..9de0d01 100644 --- a/recipes-bsp/common/raspberrypi-firmware.inc +++ b/recipes-bsp/common/raspberrypi-firmware.inc @@ -1,9 +1,12 @@ -RPIFW_DATE ?= "20230509~buster" - -RPIFW_SRC_URI ?= "https://archive.raspberrypi.com/debian/pool/main/r/raspberrypi-firmware/raspberrypi-firmware_1.${RPIFW_DATE}.orig.tar.xz" -RPIFW_S ?= "${WORKDIR}/raspberrypi-firmware-1.${RPIFW_DATE}" +RPIFW_DATE ?= "20240312" +SRCREV = "5689dd184872b809af91d6636a832b1484d90fef" +RPIFW_SRC_URI ?= "git://github.com/raspberrypi/firmware;protocol=https;branch=master" +RPIFW_S ?= "${WORKDIR}/git" SRC_URI = "${RPIFW_SRC_URI}" -SRC_URI[sha256sum] = "1d9eb83111826b708f461101766fd2000d45f1c171ad573936d000f623ca8098" PV = "${RPIFW_DATE}" + +# Firmware repo is huge due to its content nature being binary blobs +# use shallow clone to reduce amount of git metadata being pulled down +BB_GIT_SHALLOW = "1" diff --git a/recipes-multimedia/picamera-libs/picamera-libs.bb b/recipes-multimedia/picamera-libs/picamera-libs.bb index 2ebe413..f873a19 100644 --- a/recipes-multimedia/picamera-libs/picamera-libs.bb +++ b/recipes-multimedia/picamera-libs/picamera-libs.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://opt/vc/LICENCE;md5=86e53f5f5909ee66900418028de11780" include recipes-bsp/common/raspberrypi-firmware.inc -S = "${WORKDIR}/raspberrypi-firmware-1.${PV}" +S = "${RPIFW_S}" do_install(){ install -m 0755 -d ${D}${libdir}