fix: Ensure kernel versions match

This commit is contained in:
Stefan Reimer 2022-05-10 21:38:32 +02:00
parent b2b9b3f927
commit 2bd7e9ec9e
2 changed files with 8 additions and 1 deletions

5
.gitignore vendored
View File

@ -2,3 +2,8 @@ aports
distfiles distfiles
packages packages
work work
main
testing
unmaintained
community

View File

@ -2,7 +2,7 @@
# Maintainer: Stefan Reimer <stefan@zero-downtime.net> # Maintainer: Stefan Reimer <stefan@zero-downtime.net>
pkgname=aws-neuron-driver pkgname=aws-neuron-driver
pkgver=0.1.0 pkgver=0.1.0
pkgrel=0 pkgrel=2
pkgdesc="Linux Kernel module for AWS Neuron INF instances" pkgdesc="Linux Kernel module for AWS Neuron INF instances"
url="https://github.com/aws/aws-neuron-driver" url="https://github.com/aws/aws-neuron-driver"
arch="x86_64" arch="x86_64"
@ -32,6 +32,8 @@ package() {
cp neuron.ko "$pkgdir"/lib/modules/$KERNEL_VERSION cp neuron.ko "$pkgdir"/lib/modules/$KERNEL_VERSION
echo 'KERNEL=="neuron*", MODE="0666"' > "$pkgdir"/lib/udev/rules.d/90-neuron-udev.rules echo 'KERNEL=="neuron*", MODE="0666"' > "$pkgdir"/lib/udev/rules.d/90-neuron-udev.rules
depends="$(apk info linux-virt -d | grep description: | awk '{print $1}')"
} }
sha512sums=" sha512sums="