blob: 903a4c91d02ee6523b0705f4b6798f340ad1a717 (
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
29
30
31
32
33
34
35
36
|
DESCRIPTION = "Intel QuickAssist Technology Library (QATlib)"
HOMEPAGE = "https://github.com/intel/qatlib"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=64dc5eee9d532c8a1633bb63ed0d1aac"
COMPATIBLE_HOST:x86-x32 = 'null'
COMPATIBLE_HOST:libc-musl:class-target = 'null'
SRC_URI = "git://github.com/intel/qatlib.git;protocol=https;branch=main"
SRCREV = "142e305970ec66a860945d20bb7c330f99ed900b"
S = "${WORKDIR}/git"
inherit autotools-brokensep systemd useradd
DEPENDS = "openssl zlib nasm-native"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM:${PN} = "qat"
SYSTEMD_SERVICE:${PN} = "qat.service"
# The systemd unit path "/lib/systemd/system" cannot be correctly passed to build system of QATlib. So hardcode here.
# Checking "cross_compiling" is not smart and sometimes causes fatal error due to wrong path of ELF file interpreter.
EXTRA_OECONF += "systemdsystemunitdir=${systemd_system_unitdir} cross_compiling=yes"
do_compile:append () {
oe_runmake samples
}
do_install:append () {
oe_runmake 'DESTDIR=${D}' samples-install
}
FILES:${PN} += "${datadir}/qat"
|