mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
David Oberhollenzer
882ce4a8f4
- All linux packages generate "linux" and "linux-modules" - Preference mechanism is used to select the right source package - Rootfs depends on "linux-modules" to install the selected kernels modules into the squashfs image - The release pacakge depends on "linux" to install the appropriate kernel to the boot partition Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
19 lines
662 B
Text
Executable file
19 lines
662 B
Text
Executable file
# inherit functions from generic kernel package
|
|
source "$SCRIPTDIR/pkg/linux-lts/build"
|
|
|
|
VERSION="1.20190215-1"
|
|
SRCDIR="linux-raspberrypi-kernel_${VERSION}"
|
|
TARBALL="raspberrypi-kernel_${VERSION}.tar.gz"
|
|
URL="https://github.com/raspberrypi/linux/archive"
|
|
SHA256SUM="57ec23478db884eafe8fefd0bc1dbf557e93eda36fda1fe6a1db26e4b3f6fd12"
|
|
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"
|
|
}
|