Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "Linux Kernel Crypto API User Space Interface Library" |
Patrick Williams | b58112e | 2024-03-07 11:16:36 -0600 | [diff] [blame] | 2 | HOMEPAGE = "https://www.chronox.de/libkcapi/index.html" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | LICENSE = "BSD-3-Clause | GPL-2.0-only" |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3d8a091d797491204567185a6efce70f" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 5 | |
| 6 | S = "${WORKDIR}/git" |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 7 | SRCREV = "fc937358e71253a6efaa3ba74885364976b040ea" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 8 | SRC_URI = "git://github.com/smuellerDD/libkcapi.git;branch=master;protocol=https \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 9 | " |
| 10 | |
| 11 | inherit autotools |
| 12 | |
| 13 | PACKAGECONFIG ??= "" |
| 14 | PACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash" |
| 15 | PACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,," |
| 16 | PACKAGECONFIG[hasher_only] = "--enable-kcapi-hasher --disable-lib-kdf --disable-lib-sym --disable-lib-aead --disable-lib-rng,,," |
| 17 | |
| 18 | do_install:append() { |
| 19 | # bindir contains testapp and apps. However it is always created, even |
| 20 | # when no binaries are installed (empty bin_PROGRAMS in Makefile.am), |
| 21 | rmdir --ignore-fail-on-non-empty ${D}${bindir} |
| 22 | |
| 23 | # Remove the generated binary checksum files |
| 24 | rm -f ${D}${bindir}/.*.hmac |
| 25 | rm -f ${D}${libdir}/.*.hmac |
| 26 | } |
| 27 | |
| 28 | CPPFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare" |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 29 | CPPFLAGS:remove:libc-musl:toolchain-clang = "-Wno-error=sign-conversion" |
| 30 | CPPFLAGS:append:libc-musl = " -Wno-error=sign-conversion" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 31 | |
| 32 | BBCLASSEXTEND = "native" |