blob: e0f0cd9891c18227d113654ac4376b684ae1f9b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
pkgname=hailo-pci
pkgver=4.20.0
pkgrel=1
pkgdesc="Hailo AI accelerator PCIe driver and matching firmware"
arch=('aarch64' 'x86_64')
url="https://hailo.ai/"
license=('GPL-2.0')
makedepends=('gcc')
provides=('hailo8_fw.bin' 'hailo_pci.ko')
source=("https://github.com/hailo-ai/hailort-drivers/archive/v${pkgver}.tar.gz")
sha256sums=('42759c946d1680bcb8b3b24039021323d1bec51e030fb422a6256e01b0454477')
build() {
cd hailort-drivers-${pkgver}
./download_firmware.sh
cd linux/pcie
make all
}
package() {
cd hailort-drivers-${pkgver}
install -Dvm 644 hailo8_fw.${pkgver}.bin ${pkgdir}/usr/lib/firmware/hailo/hailo8_fw.bin
install -Dvm 644 linux/pcie/build/release/$(uname -m)/hailo_pci.ko \
${pkgdir}/usr/lib/modules/$(uname -r)/kernel/extra/hailo_pci.ko
}
|