-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathwolfmqtt_2.0.0.bb
More file actions
39 lines (30 loc) · 1.37 KB
/
Copy pathwolfmqtt_2.0.0.bb
File metadata and controls
39 lines (30 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
SUMMARY = "wolfMQTT Client Library"
DESCRIPTION = "wolfMQTT is a client library implementation of the MQTT \
protocol, written in ANSI C and targeted for embedded, RTOS, \
and resource-constrained environments. It has been built from \
the ground up to be multi-platform, space conscious, and \
extensible. It includes support for the MQTT v5.0 protocol."
HOMEPAGE = "https://www.wolfssl.com/products/wolfmqtt"
BUGTRACKER = "https://github.com/wolfssl/wolfmqtt/issues"
SECTION = "libs"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS += "virtual/wolfssl"
SRC_URI = "git://github.com/wolfssl/wolfMQTT.git;nobranch=1;protocol=https;rev=88d37edd4569d07ed3896273fdea9e80a117de76"
python () {
if d.getVar('UNPACKDIR', False):
d.setVar('S', '${UNPACKDIR}/${BP}')
else:
d.setVar('S', '${WORKDIR}/git')
}
inherit autotools pkgconfig wolfssl-helper wolfssl-compatibility
python __anonymous() {
wolfssl_varAppend(d, 'RDEPENDS', '${PN}', ' wolfssl')
}
EXTRA_OECONF = "--with-libwolfssl-prefix=${STAGING_EXECPREFIXDIR}"
# Add reproducible build flags
export CFLAGS += ' -g0 -O2 -ffile-prefix-map=${WORKDIR}=.'
export CXXFLAGS += ' -g0 -O2 -ffile-prefix-map=${WORKDIR}=.'
export LDFLAGS += ' -Wl,--build-id=none'
# Ensure consistent locale
export LC_ALL = "C"