build/pkg/linux-rpi3/build

20 lines
662 B
Plaintext
Executable File

# inherit functions from generic kernel package
source "$SCRIPTDIR/pkg/linux-lts/build"
VERSION="1.20200212-1"
SRCDIR="linux-raspberrypi-kernel_${VERSION}"
TARBALL="raspberrypi-kernel_${VERSION}.tar.gz"
URL="https://github.com/raspberrypi/linux/archive"
SHA256SUM="0843f6c2060bb33572a4db9778f012442c9c85cd6dccf48f5f7021db5f8dc453"
DEPENDS="initrd"
SUBPKG="linux linux-modules"
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"
}