aboutsummaryrefslogtreecommitdiffstats
path: root/main/zfs-vanilla/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/zfs-vanilla/APKBUILD')
-rw-r--r--main/zfs-vanilla/APKBUILD21
1 files changed, 10 insertions, 11 deletions
diff --git a/main/zfs-vanilla/APKBUILD b/main/zfs-vanilla/APKBUILD
index fafa3e31a3..a32b0e1d8e 100644
--- a/main/zfs-vanilla/APKBUILD
+++ b/main/zfs-vanilla/APKBUILD
@@ -14,17 +14,6 @@ _krel=0
_kpkgver="$_kver-r$_krel"
_kabi="$_kver-$_krel-$_flavor"
-# verify the kernel version before entering chroot
-_kapkbuild=../../main/linux-vanilla/APKBUILD
-if [ -f $_kapkbuild ]; then
- ( . $_kapkbuild
- pkgname=$_name-$_flavor
- [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
- [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
- return 0
- )
-fi
-
pkgname=$_name-$_flavor
pkgver=$_kver
pkgrel=$(( $_krel + $_rel ))
@@ -45,6 +34,16 @@ builddir="$srcdir/$_name-$_ver"
prepare() {
default_prepare
+ # verify the kernel version
+ local _kapkbuild=../../main/linux-$_flavor-/APKBUILD
+ if [ -f $_kapkbuild ]; then
+ ( . $_kapkbuild
+ pkgname=$_name-$_flavor
+ [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
+ [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
+ return 0
+ )
+ fi
autoreconf -vif
}