Skip to contentSkip to conversation

recipes-extended: add qcbor recipe

PATCH In review Pawel Langowski 2 participants 2 messages Aug 16, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-extended: add qcbor recipe

---
 meta-oe/recipes-extended/qcbor/qcbor_git.bb | 32 +++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 meta-oe/recipes-extended/qcbor/qcbor_git.bb
meta-oe/recipes-extended/qcbor/qcbor_git.bb new file +32 -0
new file mode 100644
index 000000000000..6e87458c3a3e
@@ -0,0 +1,32 @@
+DESCRIPTION = " \
+    QCBOR is a powerful, commercial-quality CBOR encoder/decoder that \
+    implements these RFCs: RFC8949, RFC7049, RFC8742, RFC8943 \
+"
+
+HOMEPAGE = "https://github.com/laurencelundblade/QCBOR"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://README.md;beginline=442;endline=463;md5=b55643261d6d221dac2b7a395105af62"
+
+SRC_URI = "git://github.com/laurencelundblade/QCBOR;protocol=https;branch=master"
+
+SRCREV = "44754f738c6534a4304a83d4c6e97b3d3193d887"
+
+S = "${WORKDIR}/git"
+
+INSANE_SKIP:${PN}-dev += "ldflags"
+
+inherit pkgconfig
+
+CFLAGS += " \
+    -DUSEFULBUF_DISABLE_ALL_FLOAT \
+"
+
+do_install(){
+    install -d ${D}${libdir}
+    install -m 755 ${S}/libqcbor.a ${D}${libdir}/
+    install -d ${D}${includedir}/qcbor
+    install -m 644 ${S}/inc/*.h ${D}${includedir}
+    install -m 644 ${S}/inc/qcbor/*.h ${D}${includedir}/qcbor
+}
+
Signature · 1 line
2.41.0
#1 lore raw

Subject can be improved as per.

https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded

Quoted 18 lines · Pawel Langowski
---
  meta-oe/recipes-extended/qcbor/qcbor_git.bb | 32 +++++++++++++++++++++
  1 file changed, 32 insertions(+)

create mode 100644 meta-oe/recipes-extended/qcbor/qcbor_git.bb

meta-oe/recipes-extended/qcbor/qcbor_git.bb new file +7 -0
new file mode 100644
index 000000000000..6e87458c3a3e
@@ -0,0 +1,32 @@
+DESCRIPTION = " \
+    QCBOR is a powerful, commercial-quality CBOR encoder/decoder that \
+    implements these RFCs: RFC8949, RFC7049, RFC8742, RFC8943 \
+"
+
+HOMEPAGE = "https://github.com/laurencelundblade/QCBOR"
+

meta-oe/recipes-extended/qcbor/qcbor_git.bb line 17

Quoted 10 lines
meta-oe/recipes-extended/qcbor/qcbor_git.bb new file +10 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://README.md;beginline=442;endline=463;md5=b55643261d6d221dac2b7a395105af62"
+
+SRC_URI = "git://github.com/laurencelundblade/QCBOR;protocol=https;branch=master"
+
+SRCREV = "44754f738c6534a4304a83d4c6e97b3d3193d887"
+
+S = "${WORKDIR}/git"
+
+INSANE_SKIP:${PN}-dev += "ldflags"

why is this needed.

Quoted 26 lines
meta-oe/recipes-extended/qcbor/qcbor_git.bb new file +15 -1
+
+inherit pkgconfig
+
+CFLAGS += " \
+    -DUSEFULBUF_DISABLE_ALL_FLOAT \
+"
+
+do_install(){
+    install -d ${D}${libdir}
+    install -m 755 ${S}/libqcbor.a ${D}${libdir}/
+    install -d ${D}${includedir}/qcbor
+    install -m 644 ${S}/inc/*.h ${D}${includedir}
+    install -m 644 ${S}/inc/qcbor/*.h ${D}${includedir}/qcbor
+}
+
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#104420): https://lists.openembedded.org/g/openembedded-devel/message/104420
Mute This Topic: https://lists.openembedded.org/mt/100775715/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-