1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 19:19:46 +01:00
build/pkg/linux-rpi3/build
David Oberhollenzer 7dd6306b30 cleanup: derive LINUX_CPU from TARGET, merge linux packages
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-10-19 21:50:57 +02:00

18 lines
629 B
Text
Executable file

# inherit functions from generic kernel package
source "$SCRIPTDIR/pkg/linux/build"
VERSION="1.20180919-1"
SRCDIR="linux-raspberrypi-kernel_${VERSION}"
TARBALL="raspberrypi-kernel_${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/linux/archive"
SHA256SUM="b58a7a786b94957674ce3f64307ea7e7883ae2d1d871ea6ed5a5ce1b6846bdf4"
DEPENDS="initrd"
check_update() {
local version=$(echo $VERSION | sed 's/-/./g')
curl --silent -L "https://github.com/raspberrypi/linux/releases" | \
grep -o "raspberrypi-kernel_[0-9.]*-[0-9]" | \
sed 's/raspberrypi-kernel_//g' | sed 's/-/./g' | \
verson_find_greatest "$version"
}