Skip to content
Snippets Groups Projects

use libcoap recipe from upstream

Merged Bartosz Golaszewski requested to merge brgl/oniro:brgl/add-libcoap-recipe into kirkstone
Files
5
# 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"
# 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=e44b3af4925ec58e9f49b9ff143b5493 \
file://ext/tinydtls/LICENSE;md5=ffb073dbb36e7ec5e091047332f302c5"
LIBCOAP_VERSION = "4.3.0"
SRC_URI = "gitsm://github.com/obgm/libcoap.git;protocol=https;branch=release-${LIBCOAP_VERSION}"
PV = "${LIBCOAP_VERSION}+git${SRCPV}"
SRCREV = "1da37b9abbe871675d5939395b498324ccc8ecfe"
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 --with-mbedtls"
BBCLASSEXTEND = "native nativesdk"
PACKAGE_BEFORE_PN = "${PN}-examples"
FILES:${PN}-examples = "${datadir}/libcoap/examples/*"
Loading