[meta-freescale] [PATCH 8/9] libpkcs11: add recipes

Chunrong Guo chunrong.guo at nxp.com
Mon Apr 2 20:50:20 PDT 2018


*include the following changes:
dd1bc90 - APP: Fix for Find Operation not working
a06dd4e - Removing Unused Functions
9c3a44c - Changing SecureKey name to Secure Object
8871bdc - Merge pull request #10 in DNDEV/libpkcs11 from ~NXA18717/libpkcs11:master to master
98431e8 - Added PKCS11 Application.
41adb66 - Fixing coverity issuse
66bc41b - Correcting error print message
af84c25 - Changing C_Initialize to return correct value
90de92f - Add RSA mechanisms to C_Sign api
7b5d69e - Adding LICENSE to libpkcs11 files
b55dcbd - Incorporate change in name for SK Attribute LABEL
e713e9a - Removing securekey_api.h and securekey_api_types.h
ed96d82 - Removing coverity issues
c3f7052 - Add support for OPENSSL verification in do_Sign api
fe8cb72 - Add do_Sign api in PKCS application
74aa2ce - Correct CKA_ALLOWED_MECHANISMS attribute addition for object
bbfcec7 - Review Rework: Patch 2 - Removing blackduck issues
64e9962 - Add implementation for CK_Sign
e62a602 - Changing printf to debug prints
25fa509 - Review Rework: Removing blackduck issues
e12226b - Miscellaneous Changes
3917342 - Add implementation for CK_SignInit
ced36ca - Review Rework: Adding code for per slot init in C_Initialize
39cfd5e - Adding code for keeping the position in find_list
5319ed0 - Changing names of some functions for blackduck
09fc58f - Adding Securekey function pointer per slot
7ee9cb1 - Adding general.c and general.h for general functions
81f78f7 - Review Rework: Adding session list per token
ee38111 - Review rework of comments.
26532be - Correcting the prints in the application.
80d65f4 - Adding more RSA mechanisms
57f325f - Review Rework: Creating 2 objects for each keypair object from securekey
ed02339 - Update securekey header files with sign and encrypt api's
2438a8f - Make global function list static & do runtime init
c6f51ea - Adding implementation for Object Related APIs
1bf7f57 - Review rework of comments given till now.
06eb609 - Adding framework for getting function pointers from Securekey
0ad6130 - Adding implementation for session functions
b0d331b - Adding implementation for general functions
6ca8cb9 - Adding file hierarchy framework
c08270f - Initial Commit

Signed-off-by: Chunrong Guo <chunrong.guo at nxp.com>
---
 recipes-extended/libpkcs11/libpkcs11_git.bb | 37 +++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 recipes-extended/libpkcs11/libpkcs11_git.bb

diff --git a/recipes-extended/libpkcs11/libpkcs11_git.bb b/recipes-extended/libpkcs11/libpkcs11_git.bb
new file mode 100644
index 0000000..600a131
--- /dev/null
+++ b/recipes-extended/libpkcs11/libpkcs11_git.bb
@@ -0,0 +1,37 @@
+DESCRIPTION = "PKCS library"
+LICENSE = "GPLv2 & BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=803852533e29eb1d6d5e55ad3078b625"
+
+SRC_URI = "git://source.codeaurora.org/external/qoriq/qoriq-components/libpkcs11;nobranch=1"
+SRCREV = "dd1bc90b0f2171d4dddd9d7d0fc5a2acfb067ab8"
+
+DEPENDS = "openssl secure-obj"
+
+S = "${WORKDIR}/git"
+
+WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}"
+export CROSS_COMPILE_HOST = "${CROSS_COMPILE}"
+export CROSS_COMPILE_TA = "${CROSS_COMPILE}"
+
+CFLAGS += "-fPIC"
+
+EXTRA_OEMAKE = 'CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}"'
+
+do_compile() {
+        export OPENSSL_PATH="${RECIPE_SYSROOT}/usr"
+        export CROSS_COMPILE="${WRAP_TARGET_PREFIX}"
+        oe_runmake all 
+}
+
+do_install(){
+    mkdir -p ${D}/${libdir}
+    mkdir -p ${D}/${includedir} ${D}/${bindir}
+    cp ${S}/out/export/lib/libpkcs11.so  ${D}/${libdir}
+    cp ${S}/out/export/include/*.h  ${D}/${includedir}
+    cp ${S}/out/export/app/pkcs11_app  ${D}/${bindir}
+}
+
+PARALLEL_MAKE = ""
+INSANE_SKIP_${PN} = "ldflags dev-deps"
+INSANE_SKIP_${PN}-dev = "ldflags dev-elf"
+COMPATIBLE_MACHINE = "(ls1043a|ls1046a|ls2088a|ls1088a)"
-- 
1.9.0



More information about the meta-freescale mailing list