1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 19:19:46 +01:00
build/pkg/firmware-rpi3/build

32 lines
726 B
Text
Raw Normal View History

VERSION="1.20180619"
SRCDIR="firmware-${VERSION}"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/firmware/archive"
SHA256SUM="e657478923220947321503ef980f3a6772d6f1e11b48c5c359bdb5e3d49355d9"
DEPENDS=""
prepare() {
return
}
build() {
return
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
cp -r "$SOURCE/hardfp/opt" "$DEPLOY"
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
strip_files ${DEPLOY}/opt/vc/{bin,sbin}/*
strip_files ${DEPLOY}/opt/vc/lib/*.so
strip_files ${DEPLOY}/opt/vc/lib/plugins/*.so
}
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"
}