[oe-commits] [meta-openembedded] 15/44: mraa: fix build for musl

git at git.openembedded.org git at git.openembedded.org
Sun Feb 11 20:07:13 UTC 2018


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master-next
in repository meta-openembedded.

commit 75356b6a76e965f6e282e8219e88afc1ab4f3240
Author: Tim Orling <timothy.t.orling at linux.intel.com>
AuthorDate: Sat Jan 27 02:24:28 2018 -0800

    mraa: fix build for musl
    
    * be16toh and le16toh are defined in endian.h
    
    Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 ...o_driver.c-include-endian.h-to-fix-musl-b.patch | 29 ++++++++++++++++++++++
 meta-oe/recipes-extended/mraa/mraa_git.bb          |  2 ++
 2 files changed, 31 insertions(+)

diff --git a/meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch b/meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch
new file mode 100644
index 0000000..401949e
--- /dev/null
+++ b/meta-oe/recipes-extended/mraa/mraa/0001-examples-iio_driver.c-include-endian.h-to-fix-musl-b.patch
@@ -0,0 +1,29 @@
+From 6c2649718fc9818da0d602a0b4767ea21a367e9e Mon Sep 17 00:00:00 2001
+From: Tim Orling <timothy.t.orling at linux.intel.com>
+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 <timothy.t.orling at linux.intel.com>
+---
+ 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
+
diff --git a/meta-oe/recipes-extended/mraa/mraa_git.bb b/meta-oe/recipes-extended/mraa/mraa_git.bb
index c4b9c6f..e1d593c 100644
--- a/meta-oe/recipes-extended/mraa/mraa_git.bb
+++ b/meta-oe/recipes-extended/mraa/mraa_git.bb
@@ -10,6 +10,8 @@ PV = "1.7.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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list