mirror of
https://github.com/pygos/build.git
synced 2024-06-28 05:50:13 +02:00
Move the Raspberry Pi 3 pkg-config files to /lib and add pseudo packages for OpenGL ES. Other implementations will have to add equivalent packages and use the provided machanism. Packages that requires GLES can simply rely on adding that package to their dependency list. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
37 lines
948 B
Plaintext
Executable file
37 lines
948 B
Plaintext
Executable file
VERSION="1.20190215"
|
|
SRCDIR="firmware-${VERSION}"
|
|
TARBALL="${VERSION}.tar.gz"
|
|
URL="https://github.com/raspberrypi/firmware/archive"
|
|
SHA256SUM="6b6db5f15c400bc1224266fd44238dd9b2479fd09f8a55e36ccdac2120632f8f"
|
|
DEPENDS="toolchain"
|
|
SUBPKG="boot-rpi boot-rpi-dtbo rpi-vc rpi-vc-dev boot-rpi-dtb gles2 gles2-dev"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
return
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
|
|
cp -r "$SOURCE/hardfp/opt" "$PKGDEPLOYDIR"
|
|
cp -r ${SOURCE}/boot/* "$PKGDEPLOYDIR/"
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
|
|
strip_files ${PKGDEPLOYDIR}/opt/vc/bin/*
|
|
strip_files ${PKGDEPLOYDIR}/opt/vc/lib/*.so
|
|
strip_files ${PKGDEPLOYDIR}/opt/vc/lib/plugins/*.so
|
|
|
|
mkdir -p "$PKGDEPLOYDIR/lib"
|
|
mv "$PKGDEPLOYDIR/opt/vc/lib/pkgconfig" "$PKGDEPLOYDIR/lib"
|
|
}
|
|
|
|
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"
|
|
}
|