diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2020-03-10 10:29:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2020-03-20 18:39:57 +0100 |
commit | 23c86ac2c72d08bd396ebb8e074887060a8dff72 (patch) | |
tree | 772af2349d2ff6330ad65e889f3d5e3b9aed66ff | |
parent | 28b681820cbc07cde857ed721a21600a6040806b (diff) | |
download | alpine_aports-23c86ac2c72d08bd396ebb8e074887060a8dff72.tar.bz2 alpine_aports-23c86ac2c72d08bd396ebb8e074887060a8dff72.tar.xz alpine_aports-23c86ac2c72d08bd396ebb8e074887060a8dff72.zip |
main/linux-rpi: add check to verify kernel version
Verfify that the patch does not contain wrong kernel version
ref #11219
(cherry picked from commit bf10e38a44b00626894d1240fa094675668060fa)
-rw-r--r-- | main/linux-rpi/APKBUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/main/linux-rpi/APKBUILD b/main/linux-rpi/APKBUILD index 5709a43b9d..667ab6648c 100644 --- a/main/linux-rpi/APKBUILD +++ b/main/linux-rpi/APKBUILD | |||
@@ -165,6 +165,11 @@ build() { | |||
165 | unset LDFLAGS | 165 | unset LDFLAGS |
166 | for i in $_flavors; do | 166 | for i in $_flavors; do |
167 | cd "$srcdir"/build-$i | 167 | cd "$srcdir"/build-$i |
168 | local _kver=$(make kernelversion) | ||
169 | if [ "$_kver" != "$pkgver" ]; then | ||
170 | error "Version in Makefile ($_kver) does not correspond with pkgver ($pkgver)" | ||
171 | return 1 | ||
172 | fi | ||
168 | make ARCH="$_carch" CC="${CC:-gcc}" \ | 173 | make ARCH="$_carch" CC="${CC:-gcc}" \ |
169 | KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" | 174 | KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" |
170 | done | 175 | done |