xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-security/softhsm/softhsm_2.6.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "PKCS#11 HSM/Token Emulator"
2*4882a593SmuzhiyunHOMEPAGE = "https://www.opendnssec.org/softhsm/"
3*4882a593SmuzhiyunLICENSE = "BSD-2-Clause & ISC"
4*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=ef3f77a3507c3d91e75b9f2bdaee4210"
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunDEPENDS = "sqlite3"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRC_URI = "https://dist.opendnssec.org/source/softhsm-2.6.1.tar.gz"
9*4882a593SmuzhiyunSRC_URI[sha256sum] = "61249473054bcd1811519ef9a989a880a7bdcc36d317c9c25457fc614df475f2"
10*4882a593Smuzhiyun
11*4882a593Smuzhiyuninherit autotools pkgconfig siteinfo
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunEXTRA_OECONF += " --with-sqlite3=${STAGING_DIR_HOST}/usr"
14*4882a593SmuzhiyunEXTRA_OECONF += "${@oe.utils.conditional('SITEINFO_BITS', '64', ' --enable-64bit', '', d)}"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunPACKAGECONFIG ?= "ecc eddsa pk11 openssl"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunPACKAGECONFIG[npm] = ",--disable-non-paged-memory"
19*4882a593SmuzhiyunPACKAGECONFIG[ecc] = "--enable-ecc,--disable-ecc"
20*4882a593SmuzhiyunPACKAGECONFIG[gost] = "--enable-gost,--disable-gost"
21*4882a593SmuzhiyunPACKAGECONFIG[eddsa] = "--enable-eddsa, --disable-eddsa"
22*4882a593SmuzhiyunPACKAGECONFIG[fips] = "--enable-fips, --disable-fips"
23*4882a593SmuzhiyunPACKAGECONFIG[notvisable] = "--disable-visibility"
24*4882a593SmuzhiyunPACKAGECONFIG[openssl] = "--with-openssl=${STAGING_DIR_HOST}/usr --with-crypto-backend=openssl, --without-openssl, openssl, openssl"
25*4882a593SmuzhiyunPACKAGECONFIG[botan] = "--with-botan=${STAGING_DIR_HOST}/usr --with-crypto-backend=botan, --without-botan, botan"
26*4882a593SmuzhiyunPACKAGECONFIG[migrate] = "--with-migrate"
27*4882a593SmuzhiyunPACKAGECONFIG[pk11] = "--enable-p11-kit --with-p11-kit==${STAGING_DIR_HOST}/usr, --without-p11-kit, p11-kit, p11-kit"
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunRDEPENDS:${PN} = "sqlite3"
30*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
31