From f9fe8e73e33900f7913ccc5e01d362091966a37c Mon Sep 17 00:00:00 2001 From: Amit Kucheria <amit.kucheria.ext@huawei.com> Date: Tue, 1 Jun 2021 01:35:12 +0530 Subject: [PATCH] Add coap recipe to All Scenario OS Closes OSTC/planning/core-os#84 Signed-off-by: Amit Kucheria <amit.kucheria.ext@huawei.com> --- .../recipes-connectivity/coap/coap_git.bb | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-ohos-staging/recipes-connectivity/coap/coap_git.bb diff --git a/meta-ohos-staging/recipes-connectivity/coap/coap_git.bb b/meta-ohos-staging/recipes-connectivity/coap/coap_git.bb new file mode 100644 index 00000000..8d638085 --- /dev/null +++ b/meta-ohos-staging/recipes-connectivity/coap/coap_git.bb @@ -0,0 +1,35 @@ +# SPDX-FileCopyrightText: Huawei Inc. +# +# SPDX-License-Identifier: Apache-2.0 + +SUMMARY = "A C implementation of IETF Constrained Application Protocol (RFC 7252)" +DESCRIPTION = "libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwidth, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252. For further information related to CoAP, see http://coap.technology." + +HOMEPAGE = "http://libcoap.net/" +SECTION = "libs/network" + +PROVIDES = "coap libcoap libcoap.so" + +# WARNING: Code until 2017-06-01 is dual-licensed as GPLv2 and BSD 2-Clause, it is BSD after that +LICENSE = "GPLv2 | BSD" +LIC_FILES_CHKSUM = "file://COPYING;md5=faed8f005d476edd3f250599a4bb9a75 \ + file://LICENSE;md5=4cba1bd050d08b2154b5c29de3a0e9c2 \ + file://ext/tinydtls/LICENSE;md5=ffb073dbb36e7ec5e091047332f302c5" + +LIBCOAP_VERSION = "4.2.1" +SRC_URI = "gitsm://github.com/obgm/libcoap.git;protocol=https;branch=release-${LIBCOAP_VERSION}" +PV = "${LIBCOAP_VERSION}+git${SRCPV}" +SRCREV = "50530704df9a82cd1f12c24e5a8f337b14c98d58" + +S = "${WORKDIR}/git" + +# FIXME: make it depend on something akin to virtual/tls so we can support openssl, gnutls as well +DEPENDS = "mbedtls" + +inherit pkgconfig autotools + +# Specify any options you want to pass to the configure script using EXTRA_OECONF: +EXTRA_OECONF = "--disable-doxygen --disable-manpages" + +BBCLASSEXTEND = "native nativesdk" + -- GitLab