1*4882a593SmuzhiyunSUMMARY = "Linux Kernel Crypto API User Space Interface Library" 2*4882a593SmuzhiyunHOMEPAGE = "http://www.chronox.de/libkcapi.html" 3*4882a593SmuzhiyunLICENSE = "BSD-3-Clause | GPL-2.0-only" 4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=a2562899bc38f1735868f0bf0c1dd1a5" 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunS = "${WORKDIR}/git" 7*4882a593SmuzhiyunSRCREV = "1429ab42d48123cc8f73b96c69a87fb9c6d8a7c9" 8*4882a593SmuzhiyunSRC_URI = "git://github.com/smuellerDD/libkcapi.git;branch=master;protocol=https \ 9*4882a593Smuzhiyun " 10*4882a593Smuzhiyun 11*4882a593Smuzhiyuninherit autotools 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunPACKAGECONFIG ??= "" 14*4882a593SmuzhiyunPACKAGECONFIG[testapp] = "--enable-kcapi-test,,,bash" 15*4882a593SmuzhiyunPACKAGECONFIG[apps] = "--enable-kcapi-speed --enable-kcapi-hasher --enable-kcapi-rngapp --enable-kcapi-encapp --enable-kcapi-dgstapp,,," 16*4882a593SmuzhiyunPACKAGECONFIG[hasher_only] = "--enable-kcapi-hasher --disable-lib-kdf --disable-lib-sym --disable-lib-aead --disable-lib-rng,,," 17*4882a593Smuzhiyun 18*4882a593Smuzhiyundo_install:append() { 19*4882a593Smuzhiyun # bindir contains testapp and apps. However it is always created, even 20*4882a593Smuzhiyun # when no binaries are installed (empty bin_PROGRAMS in Makefile.am), 21*4882a593Smuzhiyun rmdir --ignore-fail-on-non-empty ${D}${bindir} 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun # Remove the generated binary checksum files 24*4882a593Smuzhiyun rm -f ${D}${bindir}/.*.hmac 25*4882a593Smuzhiyun rm -f ${D}${libdir}/.*.hmac 26*4882a593Smuzhiyun} 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunCPPFLAGS:append:libc-musl:toolchain-clang = " -Wno-error=sign-compare" 29*4882a593SmuzhiyunCPPFLAGS:remove:libc-musl:toolchain-clang = "-Wno-error=sign-conversion" 30*4882a593SmuzhiyunCPPFLAGS:append:libc-musl = " -Wno-error=sign-conversion" 31*4882a593Smuzhiyun 32*4882a593SmuzhiyunBBCLASSEXTEND = "native" 33