1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-08 23:06:14 +02:00
build/pkg/firmware-rpi3/build
David Oberhollenzer c8d01f966a Use pkgtool to resolve and manage dependencies, add sub package support
Been working on this for too long, don't remember the specifics, will add
documentation.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-03 17:47:02 +01:00

32 lines
731 B
Plaintext
Executable file

VERSION="1.20181112"
SRCDIR="firmware-${VERSION}"
TARBALL="${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/firmware/archive"
SHA256SUM="eccb3221fe5fbf9e44e7d1a79b2f401eb7527a41fb8ea7fe7231bc188a8ff50b"
DEPENDS="toolchain"
prepare() {
return
}
build() {
return
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
cp -r "$SOURCE/hardfp/opt" "$DEPLOY"
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$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"
}