1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 15:37:11 +01:00
build/pkg/firmware-rpi/build
David Oberhollenzer 2f5077eb96 Bump Raspberry Pi firmware version
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 21:55:55 +02:00

22 lines
658 B
Text
Executable file

VERSION="1.20200212"
SRCDIR="firmware-${VERSION}"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/firmware/archive"
SHA256SUM="e3b0577beb62d886a45016447bdf8c2d57b794d3d71b502868b16ba82ff8fe43"
DEPENDS="toolchain"
SUBPKG="boot-rpi boot-rpi-dtbo boot-rpi-dtb"
deploy() {
local SOURCE="$1"
cp -r ${SOURCE}/boot/* "$PKGDEPLOYDIR/"
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
pkg_scan_dir "overlays" >> "$PKGDEPLOYDIR/boot-rpi-dtbo.files"
}
check_update() {
curl --silent -L https://github.com/raspberrypi/firmware/releases | \
grep -o "[0-9.]\+tar.gz" | sed 's/.tar.gz//g' | \
verson_find_greatest "$VERSION"
}