1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-24 20:10:42 +01:00
build/pkg/firmware-rpi/build
David Oberhollenzer 1fed6fa463 Generate Raspberry Pi device tree overlay file list on-the-fly
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-07-07 22:06:10 +02:00

31 lines
747 B
Text
Executable file

VERSION="1.20190620"
SRCDIR="firmware-${VERSION}"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/firmware/archive"
SHA256SUM="7ff2cfb5ea19fbd1d770ebbbcdab791830ebbc6fd36b6da1dee9edf4088f69d6"
DEPENDS="toolchain"
SUBPKG="boot-rpi boot-rpi-dtbo boot-rpi-dtb"
prepare() {
return
}
build() {
return
}
deploy() {
local SOURCE="$1"
cp -r ${SOURCE}/boot/* "$PKGDEPLOYDIR/"
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
pkg_scan_dir "$PKGDEPLOYDIR/overlays" |\
sed "s#$PKGDEPLOYDIR/##g" >> "$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"
}