1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-07-01 15:30:13 +02:00
build/pkg/firmware-rpi3/build
David Oberhollenzer 8052eaf596 Bump raspberry pi 3 firmware version
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-05-25 18:36:59 +02:00

40 lines
913 B
Plaintext
Executable file

VERSION="1.20180328"
SRCDIR="firmware-${VERSION}"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/firmware/archive"
SHA256SUM="44731225495bb211353dd86fbead980f8bb62930a3ec6711ed7094aff2397758"
DEPENDS=""
prepare() {
return
}
build() {
return
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
local DEVDEPLOY="$3"
cp -r "$SOURCE/hardfp/opt" "$DEPLOY/"
mkdir -p "$DEVDEPLOY/opt/vc"
mv "$DEPLOY/opt/vc/include" "$DEVDEPLOY"
cp -r "$DEPLOY/opt/vc/lib" "$DEVDEPLOY/opt/vc"
rm ${DEPLOY}/opt/vc/lib/*.a
rm -r "${DEPLOY}/opt/vc/lib/pkgconfig"
rm -r "${DEPLOY}/opt/vc/src"
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"
}