added my Recipes
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 5de183dc436bb647361ab641d891c113e6a7dadd Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sun, 8 Mar 2020 16:30:48 -0700
|
||||
Subject: [PATCH] cmake: Use a regular expression to match x86 architectures
|
||||
|
||||
in OE we use i686 for qemux86 and this results in
|
||||
|
||||
-- INFO - Target arch is i686
|
||||
CMake Error at CMakeLists.txt:191 (message):
|
||||
Only x86, arm, mips, PERIPHERALMAN and mock platforms currently supported
|
||||
|
||||
So using a wildcard helps in using any x86 arch
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
CMakeLists.txt | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 250d9106..fb642722 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -176,8 +176,7 @@ else ()
|
||||
message (STATUS "INFO - Override arch is ${DETECTED_ARCH}")
|
||||
endif()
|
||||
|
||||
-if (DETECTED_ARCH STREQUAL "i586" OR DETECTED_ARCH STREQUAL "x86_64"
|
||||
- OR DETECTED_ARCH STREQUAL "i386")
|
||||
+if (DETECTED_ARCH MATCHES "i?86" OR DETECTED_ARCH STREQUAL "x86_64")
|
||||
set (X86PLAT ON)
|
||||
elseif (DETECTED_ARCH MATCHES "arm.*" OR DETECTED_ARCH MATCHES "aarch64")
|
||||
set (ARMPLAT ON)
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
From dbb5961f106ec42cd70689d933674c9c37aedfe1 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
||||
Date: Mon, 13 Apr 2020 20:12:11 +0200
|
||||
Subject: include: Declare gVERSION global as 'extern'.
|
||||
|
||||
Fixes build with '-fno-common'.
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/eclipse/mraa/pull/1012]
|
||||
Signed-off-by: Adrian Bunk <bunk@stusta.de>
|
||||
---
|
||||
include/version.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/version.h b/include/version.h
|
||||
index 47366ef..3a567a1 100644
|
||||
--- a/include/version.h
|
||||
+++ b/include/version.h
|
||||
@@ -11,8 +11,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
-const char* gVERSION;
|
||||
-const char* gVERSION_SHORT;
|
||||
+extern const char* gVERSION;
|
||||
+extern const char* gVERSION_SHORT;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
--
|
||||
2.17.1
|
||||
|
||||
66
meta-openembedded/meta-oe/recipes-extended/mraa/mraa_git.bb
Normal file
66
meta-openembedded/meta-oe/recipes-extended/mraa/mraa_git.bb
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY = "Linux Library for low speed I/O Communication"
|
||||
HOMEPAGE = "https://github.com/intel-iot-devkit/mraa"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=91e7de50a8d3cf01057f318d72460acd"
|
||||
|
||||
SRCREV = "7786c7ded5c9ce7773890d0e3dc27632898fc6b1"
|
||||
PV = "2.2.0+git${SRCPV}"
|
||||
|
||||
SRC_URI = "git://github.com/eclipse/${BPN}.git;protocol=https;branch=master \
|
||||
file://0001-cmake-Use-a-regular-expression-to-match-x86-architec.patch \
|
||||
file://0001-include-Declare-gVERSION-global-as-extern.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
# CMakeLists.txt checks the architecture, only x86 and ARM supported for now
|
||||
COMPATIBLE_HOST = "(x86_64.*|i.86.*|aarch64.*|arm.*)-linux"
|
||||
|
||||
inherit cmake setuptools3-base
|
||||
|
||||
DEPENDS += "json-c"
|
||||
|
||||
EXTRA_OECMAKE:append = " -DINSTALLTOOLS:BOOL=ON -DFIRMATA=ON -DCMAKE_SKIP_RPATH=ON -DPYTHON2_LIBRARY=OFF \
|
||||
-DPYTHON3_PACKAGES_PATH:PATH=${baselib}/python${PYTHON_BASEVERSION}/site-packages \
|
||||
-DPYTHON_LIBRARY=${STAGING_LIBDIR}/lib${PYTHON_DIR}${PYTHON_ABI}.so \
|
||||
-DPYTHON_INCLUDE_DIR=${STAGING_INCDIR}/${PYTHON_DIR}${PYTHON_ABI} \
|
||||
"
|
||||
|
||||
# Prepend mraa-utils to make sure bindir ends up in there
|
||||
PACKAGES =+ "${PN}-utils"
|
||||
|
||||
FILES:${PN}-doc += "${datadir}/mraa/examples/"
|
||||
|
||||
FILES:${PN}-utils = "${bindir}/"
|
||||
|
||||
# override this in local.conf to get needed bindings.
|
||||
# BINDINGS:pn-mraa="python"
|
||||
# will result in only the python bindings being built/packaged.
|
||||
# Note: 'nodejs' is disabled by default because the bindings
|
||||
# generation currently fails with nodejs (>v7.x).
|
||||
BINDINGS ??= "python"
|
||||
|
||||
# nodejs isn't available for armv4/armv5 architectures
|
||||
BINDINGS:armv4 ??= "python"
|
||||
BINDINGS:armv5 ??= "python"
|
||||
|
||||
PACKAGECONFIG ??= "${@bb.utils.contains('PACKAGES', 'node-${PN}', 'nodejs', '', d)} \
|
||||
${@bb.utils.contains('PACKAGES', '${PYTHON_PN}-${PN}', 'python', '', d)}"
|
||||
|
||||
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native ${PYTHON_PN},"
|
||||
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs-native,"
|
||||
PACKAGECONFIG[ft4222] = "-DUSBPLAT=ON -DFTDI4222=ON, -DUSBPLAT=OFF -DFTDI4222=OFF,, libft4222"
|
||||
|
||||
FILES:${PYTHON_PN}-${PN} = "${PYTHON_SITEPACKAGES_DIR}/"
|
||||
RDEPENDS:${PYTHON_PN}-${PN} += "${PYTHON_PN}"
|
||||
|
||||
FILES:node-${PN} = "${prefix}/lib/node_modules/"
|
||||
RDEPENDS:node-${PN} += "nodejs"
|
||||
|
||||
### Include desired language bindings ###
|
||||
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'nodejs', 'node-${PN}', '', d)}"
|
||||
PACKAGES =+ "${@bb.utils.contains('BINDINGS', 'python', '${PYTHON_PN}-${PN}', '', d)}"
|
||||
|
||||
TOOLCHAIN = "gcc"
|
||||
Reference in New Issue
Block a user