mraa: Update recipe to use v1.9.0
PATCH 1/2 mraa: Update recipe to use v1.9.0
The musl endian patch has been merged upstream so is no longer needed
Signed-off-by Brendan Le Foll <[email protected]>
--- ...o_driver.c-include-endian.h-to-fix-musl-b.patch | 29 ---------------------- meta-oe/recipes-extended/mraa/mraa_git.bb | 8 +++--- 2 files changed, 3 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch
meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From 6c2649718fc9818da0d602a0b4767ea21a367e9e Mon Sep 17 00:00:00 2001 -From: Tim Orling <[email protected]> -Date: Sat, 27 Jan 2018 02:06:36 -0800 -Subject: [PATCH] examples/iio_driver.c: include endian.h to fix musl build - -* be16toh and le16toh are defined in endian.h - -Upstream-Status: Pending - -Signed-off-by: Tim Orling <[email protected]> ---- - examples/iio_driver.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/examples/iio_driver.c b/examples/iio_driver.c -index c5a0181..e3dc438 100644 ---- a/examples/iio_driver.c -+++ b/examples/iio_driver.c -@@ -23,6 +23,7 @@ - */ - - #include <unistd.h> -+#include <endian.h> - #include "mraa/iio.h" - - static void --- -2.13.6 -
meta-oe/recipes-extended/mraa/mraa_git.bb +3 -5
@@ -3,15 +3,13 @@ HOMEPAGE = "https://github.com/intel-iot-devkit/mraa" SECTION = "libs" LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=66493d54e65bfc12c7983ff2e884f37f" +LIC_FILES_CHKSUM = "file://COPYING;md5=4b92a3b497d7943042a6db40c088c3f2" -SRCREV = "8ddbcde84e2d146bc0f9e38504d6c89c14291480" -PV = "1.7.0-git${SRCPV}" +SRCREV = "fbb7d9232067eac3f4508a37a8f7ea0c4fcebacb" +PV = "1.9.0-git${SRCPV}" SRC_URI = "git://github.com/intel-iot-devkit/${BPN}.git;protocol=http" -SRC_URI_append_libc-musl = " file://0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch" - S = "${WORKDIR}/git" # CMakeLists.txt checks the architecture, only x86 and ARM supported for now
Signature · 1 line
2.16.2
PATCH 2/2 upm: Update recipe to use v1.6.0
ads1x15 patch is no longer required as it has been merged upstream
Signed-off-by Brendan Le Foll <[email protected]>
--- ...15-fixed-case-logic-in-getThresh-function.patch | 54 ---------------------- meta-oe/recipes-extended/upm/upm_git.bb | 5 +- 2 files changed, 2 insertions(+), 57 deletions(-) delete mode 100644 meta-oe/recipes-extended/upm/files/ads1x15-fixed-case-logic-in-getThresh-function.patch
meta-oe/recipes-extended/upm/files/ads1x15-fixed-case-logic-in-getThresh-function.patch deleted +0 -54
@@ -1,54 +0,0 @@ -From c64d04d084f47b4cb3e1cdee6e96348fcc6a756e Mon Sep 17 00:00:00 2001 -From: Mihai Tudor Panu <[email protected]> -Date: Tue, 30 May 2017 15:14:09 -0700 -Subject: [PATCH 1/1] ads1x15: fixed case logic in getThresh() function - -Signed-off-by: Mihai Tudor Panu <[email protected]> - -Upstream-Status: Backported [c64d04d084f47b4cb3e1cdee6e96348fcc6a756e] - -Signed-off-by: Patrick Ohly <[email protected]> - ---- - src/ads1x15/ads1x15.cxx | 4 ++-- - src/ads1x15/ads1x15.hpp | 2 +- - 2 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/src/ads1x15/ads1x15.cxx b/src/ads1x15/ads1x15.cxx -index 35782709..47701b2a 100644 ---- a/src/ads1x15/ads1x15.cxx -+++ b/src/ads1x15/ads1x15.cxx -@@ -116,7 +116,7 @@ ADS1X15::setContinuous(bool mode){ - - float - ADS1X15::getThresh(ADSTHRESH reg){ -- if( THRESH_HIGH && THRESH_LOW) return getLastSample(reg); -+ if(reg == THRESH_HIGH || reg == THRESH_LOW) return getLastSample(reg); - else return 0.0; - } - -@@ -137,7 +137,7 @@ ADS1X15::setThresh(ADSTHRESH reg, float value){ - case 2: - case 3: - set_value = value / getMultiplier(); -- set_value = set_value << m_bitShift; -+ set_value = set_value << m_bitShift; - if(i2c->writeWordReg(reg, swapWord(set_value)) != mraa::SUCCESS){ - throw std::runtime_error(std::string(__FUNCTION__) + ": I2c.write() failed"); - return; -diff --git a/src/ads1x15/ads1x15.hpp b/src/ads1x15/ads1x15.hpp -index 7524572d..efd8c8ec 100644 ---- a/src/ads1x15/ads1x15.hpp -+++ b/src/ads1x15/ads1x15.hpp -@@ -390,7 +390,7 @@ namespace upm { - * @param reg ADSTHRES enum value. - * Returns 0.0 unless THRESH_HIGH or THRESH_LOW requested. - */ -- float getThresh(ADSTHRESH reg = THRESH_LOW); -+ float getThresh(ADSTHRESH reg = THRESH_DEFAULT); - - /** - * Sets threshold levels or configures for conversion ready --- -2.11.0 -
meta-oe/recipes-extended/upm/upm_git.bb +2 -3
@@ -7,12 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=66493d54e65bfc12c7983ff2e884f37f" DEPENDS = "libjpeg-turbo mraa" -SRCREV = "106b6c706268522ab0168a4ddb19e89ce832e084" -PV = "1.3.0-git${SRCPV}" +SRCREV = "cc7fec9ae0228add9011bf1c2cd5e0ca2ba0d4f0" +PV = "1.6.0-git${SRCPV}" SRC_URI = " \ git://github.com/intel-iot-devkit/${BPN}.git;protocol=http \ - file://ads1x15-fixed-case-logic-in-getThresh-function.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.16.2