Skip to content

Commit 2947395

Browse files
jiaxli-QCJiaxing Li
authored andcommitted
Add qcbor library for security feature support.
Add qcbor library for security feature support. The qcbor library is used for decoding and encoding data structures. Signed-off-by: Jiaxing Li <[email protected]>
1 parent f76c700 commit 2947395

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
SUMMARY = "Qualcomm QCBOR library"
2+
DESCRIPTION = " \
3+
QCBOR is a powerful, commercial-quality CBOR encoder-decoder. \
4+
The qcbor library is used for decoding and encoding data structures. \
5+
"
6+
HOMEPAGE = "https://github.com/laurencelundblade/QCBOR.git"
7+
SECTION = "libs"
8+
9+
LICENSE = "BSD-3-Clause"
10+
LIC_FILES_CHKSUM = "file://LICENSE;md5=9abe2371333f4ab0e62402a486f308a5"
11+
12+
inherit cmake ptest
13+
14+
SRC_URI = "\
15+
git://github.com/laurencelundblade/QCBOR.git;branch=master;protocol=https \
16+
"
17+
SRCREV = "7d9f0b787150d739ab50805008bc7142bc9b7822"
18+
PV = "0.0+git"
19+
20+
# QCBOR_TEST_MODE:OFF / LIB / APP
21+
QCBOR_TEST_MODE ?= "APP"
22+
23+
EXTRA_OECMAKE += "-DBUILD_QCBOR_TEST=${QCBOR_TEST_MODE}"
24+
25+
do_install:append() {
26+
if [ "${QCBOR_TEST_MODE}" = "APP" ]; then
27+
install -d ${D}${bindir}
28+
if [ -f ${B}/test/qcbortest ]; then
29+
install -m 0755 ${B}/test/qcbortest ${D}${bindir}/
30+
fi
31+
fi
32+
}
33+
34+
FILES:${PN}-ptest = ""
35+
FILES:${PN}-ptest += " ${bindir}/qcbortest"

0 commit comments

Comments
 (0)