added my Recipes
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
Disable building some things we don't need
|
||||
|
||||
Upstream-Status: Inappropriate [config]
|
||||
|
||||
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||
|
||||
---
|
||||
Makefile | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 33bd2d0..84262bd 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -115,7 +115,8 @@ LDFLAGS_AS = -shared -Wl,-soname,lib${MQTTLIB_AS}.so.${MAJOR_VERSION} -lpthread
|
||||
|
||||
all: build
|
||||
|
||||
-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}
|
||||
+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}
|
||||
|
||||
clean:
|
||||
rm -rf ${blddir}/*
|
||||
--
|
||||
@@ -0,0 +1,33 @@
|
||||
SUMMARY = "Paho MQTT - C libraries for the MQTT and MQTT-SN protocols"
|
||||
DESCRIPTION = "Client implementation of open and standard messaging protocols for Machine-to-Machine (M2M) and Internet of Things (IoT)."
|
||||
HOMEPAGE = "http://www.eclipse.org/paho/"
|
||||
SECTION = "console/network"
|
||||
LICENSE = "EPL-2.0 | EDL-1.0"
|
||||
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://LICENSE;md5=fd3b896dadaeec3410d753ffaeadcfac \
|
||||
file://edl-v10;md5=3adfcc70f5aeb7a44f3f9b495aa1fbf3 \
|
||||
file://epl-v20;md5=d9fc0efef5228704e7f5b37f27192723 \
|
||||
"
|
||||
|
||||
SRC_URI = "git://github.com/eclipse/paho.mqtt.c;protocol=https;branch=master"
|
||||
|
||||
SRCREV = "4157a27d39f1dd5b95750ecb6acd1481432785d8"
|
||||
|
||||
DEPENDS = "openssl"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
do_configure:prepend() {
|
||||
sed -i s:\ lib/cmake:\ ${baselib}/cmake:g ${S}/src/CMakeLists.txt
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
# paho-mqtt installes some thing that we don't want.
|
||||
rm -rf ${D}${prefix}/samples
|
||||
find ${D}${prefix} -maxdepth 1 -type f -delete
|
||||
}
|
||||
|
||||
EXTRA_OECMAKE = "-DPAHO_WITH_SSL=ON"
|
||||
Reference in New Issue
Block a user