diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-09-01 16:02:33 +1200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-07 10:57:36 +0200 |
| commit | 4d43e788f2c835948ebeb0180a5c1aaa09e8b3b5 (patch) | |
| tree | b0b7fe06b337ae6a83e65a83fabe00fae31f879e | |
| parent | e1b4dc72435bc3d61d2465c198207b9186894a05 (diff) | |
| download | meta-openembedded-4d43e788f2c835948ebeb0180a5c1aaa09e8b3b5.tar.gz | |
paho-mqtt-c: add recipe from meta-intel-iot-middleware and update
The following improvements have been made over the recipe that was in
meta-intel-iot-middleware (a layer which is no longer actively
maintained):
* Upgrade to 1.2.0. The version number being used previously (3.1) was
bogus - I guess someone saw that it supported the MQTT *protocol*
version 3.1 and assumed that was the library version. Since we are
renaming it to paho-mqtt-c at the same time to distinguish it from
other Eclipse Paho MQTT library flavours, we don't need to bump PE.
* Fix SRC_URI since the repository has been moved
* Fix "No GNU_HASH in the elf binary" QA error
* Add notice.html and about.html to LIC_FILES_CHKSUM since they cover
licensing
* Add description, Signed-off-by and Upstream-Status to makefile.patch
* Set short description in SUMMARY
* Drop unnecessary custom do_compile - the default implementation
basically does the same thing
* Drop RDEPENDS on openssl - linking already ensures runtime
dependencies get set correctly
* Move DEPENDS further up
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| -rw-r--r-- | meta-oe/recipes-connectivity/paho-mqtt-c/files/makefile.patch | 25 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/paho-mqtt-c/paho-mqtt-c_1.2.0.bb | 35 |
2 files changed, 60 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/paho-mqtt-c/files/makefile.patch b/meta-oe/recipes-connectivity/paho-mqtt-c/files/makefile.patch new file mode 100644 index 0000000000..a31bfaa749 --- /dev/null +++ b/meta-oe/recipes-connectivity/paho-mqtt-c/files/makefile.patch | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | Disable building some things we don't need | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [config] | ||
| 4 | |||
| 5 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
| 6 | |||
| 7 | --- | ||
| 8 | Makefile | 3 ++- | ||
| 9 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 10 | |||
| 11 | diff --git a/Makefile b/Makefile | ||
| 12 | index 33bd2d0..84262bd 100644 | ||
| 13 | --- a/Makefile | ||
| 14 | +++ b/Makefile | ||
| 15 | @@ -115,7 +115,8 @@ LDFLAGS_AS = -shared -Wl,-soname,lib${MQTTLIB_AS}.so.${MAJOR_VERSION} -lpthread | ||
| 16 | |||
| 17 | all: build | ||
| 18 | |||
| 19 | -build: | mkdir ${MQTTLIB_C_TARGET} ${MQTTLIB_CS_TARGET} ${MQTTLIB_A_TARGET} ${MQTTLIB_AS_TARGET} ${MQTTVERSION_TARGET} ${SYNC_SAMPLES} ${ASYNC_SAMPLES} ${SYNC_TESTS} ${SYNC_SSL_TESTS} ${ASYNC_TESTS} ${ASYNC_SSL_TESTS} | ||
| 20 | +build: | mkdir ${MQTTLIB_C_TARGET} ${MQTTLIB_CS_TARGET} ${MQTTLIB_A_TARGET} ${MQTTLIB_AS_TARGET} | ||
| 21 | +#${MQTTVERSION_TARGET} ${SYNC_SAMPLES} ${ASYNC_SAMPLES} ${SYNC_TESTS} ${SYNC_SSL_TESTS} ${ASYNC_TESTS} ${ASYNC_SSL_TESTS} | ||
| 22 | |||
| 23 | clean: | ||
| 24 | rm -rf ${blddir}/* | ||
| 25 | -- | ||
diff --git a/meta-oe/recipes-connectivity/paho-mqtt-c/paho-mqtt-c_1.2.0.bb b/meta-oe/recipes-connectivity/paho-mqtt-c/paho-mqtt-c_1.2.0.bb new file mode 100644 index 0000000000..fec380ce6f --- /dev/null +++ b/meta-oe/recipes-connectivity/paho-mqtt-c/paho-mqtt-c_1.2.0.bb | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | SUMMARY = "Paho MQTT - C libraries for the MQTT and MQTT-SN protocols" | ||
| 2 | DESCRIPTION = "Client implementation of open and standard messaging protocols for Machine-to-Machine (M2M) and Internet of Things (IoT)." | ||
| 3 | HOMEPAGE = "http://www.eclipse.org/paho/" | ||
| 4 | SECTION = "console/network" | ||
| 5 | LICENSE = "EPL-1.0 | EDL-1.0" | ||
| 6 | |||
| 7 | LIC_FILES_CHKSUM = " \ | ||
| 8 | file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3 \ | ||
| 9 | file://epl-v10;md5=659c8e92a40b6df1d9e3dccf5ae45a08 \ | ||
| 10 | file://notice.html;md5=a00d6f9ab542be7babc2d8b80d5d2a4c \ | ||
| 11 | file://about.html;md5=dcde438d73cf42393da9d40fabc0c9bc \ | ||
| 12 | " | ||
| 13 | |||
| 14 | SRC_URI = "git://github.com/eclipse/paho.mqtt.c;protocol=http" | ||
| 15 | |||
| 16 | SRCREV = "e8d34da24ad807f5e698b327d67591fd4b4bfa7e" | ||
| 17 | |||
| 18 | DEPENDS = "openssl" | ||
| 19 | |||
| 20 | S = "${WORKDIR}/git" | ||
| 21 | |||
| 22 | TARGET_CC_ARCH += "${LDFLAGS}" | ||
| 23 | |||
| 24 | do_install() { | ||
| 25 | install -d ${D}${libdir} | ||
| 26 | oe_libinstall -C build/output -so libpaho-mqtt3a ${D}${libdir} | ||
| 27 | oe_libinstall -C build/output -so libpaho-mqtt3as ${D}${libdir} | ||
| 28 | oe_libinstall -C build/output -so libpaho-mqtt3c ${D}${libdir} | ||
| 29 | oe_libinstall -C build/output -so libpaho-mqtt3cs ${D}${libdir} | ||
| 30 | install -d ${D}${includedir} | ||
| 31 | install -m 644 src/MQTTAsync.h ${D}${includedir} | ||
| 32 | install -m 644 src/MQTTClient.h ${D}${includedir} | ||
| 33 | install -m 644 src/MQTTClientPersistence.h ${D}${includedir} | ||
| 34 | } | ||
| 35 | |||
