aboutsummaryrefslogtreecommitdiffstats
path: root/testing/aws-ena-driver-hardened
diff options
context:
space:
mode:
Diffstat (limited to 'testing/aws-ena-driver-hardened')
-rw-r--r--testing/aws-ena-driver-hardened/APKBUILD10
1 files changed, 6 insertions, 4 deletions
diff --git a/testing/aws-ena-driver-hardened/APKBUILD b/testing/aws-ena-driver-hardened/APKBUILD
index f20eaa69ed..904d0222fd 100644
--- a/testing/aws-ena-driver-hardened/APKBUILD
+++ b/testing/aws-ena-driver-hardened/APKBUILD
@@ -7,10 +7,12 @@ _pkgrel=0
# This APK is co-versioned with the kernel instead of using the upstream
# version, so pull in the kernel pkg version as _kernver and kernel pkg rel as
# _kernrel
-eval $(sed -n \
- -e '/^pkgver/s/^pkg/_kern/p' \
- -e '/^pkgrel/s/^pkg/_kern/p' \
- ../../main/linux-${_flavor}/APKBUILD)
+if [ -f ../../linux-${_flavor}/APKBUILD ]; then
+ eval $(sed -n \
+ -e '/^pkgver/s/^pkg/_kern/p' \
+ -e '/^pkgrel/s/^pkg/_kern/p' \
+ ../../main/linux-${_flavor}/APKBUILD)
+fi
# Vanilla kernels don't contain a flavor or pkgrel in the ABI
if [ "${_flavor}" = "vanilla" ]; then