All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libmraa: new package
@ 2016-01-04 19:46 Pieterjan Camerlynck
  2016-01-05  0:48 ` Arnout Vandecappelle
  2016-01-05 20:11 ` [Buildroot] [PATCH v2] mraa: " Pieterjan Camerlynck
  0 siblings, 2 replies; 10+ messages in thread
From: Pieterjan Camerlynck @ 2016-01-04 19:46 UTC (permalink / raw)
  To: buildroot

libmraa provides a unified interface for IO on Galileo, Edison,
Raspberry Pi and others

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
---
 package/Config.in          |  1 +
 package/libmraa/Config.in  | 17 +++++++++++++++++
 package/libmraa/libmraa.mk | 22 ++++++++++++++++++++++
 3 files changed, 40 insertions(+)
 create mode 100644 package/libmraa/Config.in
 create mode 100644 package/libmraa/libmraa.mk

diff --git a/package/Config.in b/package/Config.in
index 442021f..52f6b5b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -930,6 +930,7 @@ menu "Hardware handling"
 	source "package/libiqrf/Config.in"
 	source "package/libllcp/Config.in"
 	source "package/libmbim/Config.in"
+	source "package/libmraa/Config.in"
 	source "package/libnfc/Config.in"
 	source "package/libpciaccess/Config.in"
 	source "package/libphidget/Config.in"
diff --git a/package/libmraa/Config.in b/package/libmraa/Config.in
new file mode 100644
index 0000000..cfbe37c
--- /dev/null
+++ b/package/libmraa/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_LIBMRAA
+	bool "libmraa"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_ARM_CPU_ARMV7A || BR2_i386 || BR2_x86_64
+	help
+	  Libmraa is a C/C++ library with bindings to javascript & python
+	  to interface with the IO on Galileo, Edison & other platforms,
+	  with a structured and sane API where port names/numbering matches
+	  the board that you are on.
+
+	  http://iotdk.intel.com/docs/master/mraa
+
+comment "libmraa needs a toolchain w/ C++, threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
+		|| BR2_STATIC_LIBS
diff --git a/package/libmraa/libmraa.mk b/package/libmraa/libmraa.mk
new file mode 100644
index 0000000..099e883
--- /dev/null
+++ b/package/libmraa/libmraa.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# libmraa
+#
+################################################################################
+
+LIBMRAA_VERSION = v0.9.0
+LIBMRAA_SITE = $(call github,intel-iot-devkit,mraa,$(LIBMRAA_VERSION))
+LIBMRAA_LICENSE = MIT
+LIBMRAA_LICENSE_FILES = COPYING
+LIBMRAA_INSTALL_STAGING = YES
+
+LIBMRAA_CONF_OPTS += \
+	-DBUILDSWIG=OFF \
+	-DUSBPLAT=OFF \
+	-DFTDI4222=OFF \
+	-DIPK=OFF \
+	-DRPM=OFF \
+	-DENABLEEXAMPLES=OFF \
+	-DTESTS=OFF
+
+$(eval $(cmake-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] libmraa: new package
  2016-01-04 19:46 [Buildroot] [PATCH 1/1] libmraa: new package Pieterjan Camerlynck
@ 2016-01-05  0:48 ` Arnout Vandecappelle
  2016-01-05 17:50   ` Pieterjan Camerlynck
  2016-01-05 20:11 ` [Buildroot] [PATCH v2] mraa: " Pieterjan Camerlynck
  1 sibling, 1 reply; 10+ messages in thread
From: Arnout Vandecappelle @ 2016-01-05  0:48 UTC (permalink / raw)
  To: buildroot

 Hi Pieterjan,

On 04-01-16 20:46, Pieterjan Camerlynck wrote:
> libmraa provides a unified interface for IO on Galileo, Edison,
> Raspberry Pi and others
> 
> Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
> ---
>  package/Config.in          |  1 +
>  package/libmraa/Config.in  | 17 +++++++++++++++++
>  package/libmraa/libmraa.mk | 22 ++++++++++++++++++++++
>  3 files changed, 40 insertions(+)
>  create mode 100644 package/libmraa/Config.in
>  create mode 100644 package/libmraa/libmraa.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 442021f..52f6b5b 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -930,6 +930,7 @@ menu "Hardware handling"
>  	source "package/libiqrf/Config.in"
>  	source "package/libllcp/Config.in"
>  	source "package/libmbim/Config.in"
> +	source "package/libmraa/Config.in"
>  	source "package/libnfc/Config.in"
>  	source "package/libpciaccess/Config.in"
>  	source "package/libphidget/Config.in"
> diff --git a/package/libmraa/Config.in b/package/libmraa/Config.in
> new file mode 100644
> index 0000000..cfbe37c
> --- /dev/null
> +++ b/package/libmraa/Config.in
> @@ -0,0 +1,17 @@
> +config BR2_PACKAGE_LIBMRAA
> +	bool "libmraa"
> +	depends on BR2_INSTALL_LIBSTDCPP

 Actually it doesn't contain any C++ code as far as I can see. So you should
patch CMakeLists.txt to set

project (mraa C)

(and send that patch upstream).

> +	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on !BR2_STATIC_LIBS

 I don't see anything that would require dynamic libraries. Can you add a
comment why this is needed?

> +	depends on BR2_ARM_CPU_ARMV7A || BR2_i386 || BR2_x86_64

 It actually builds on any platform, except that the CMakeLists.txt explicitly
checks for arm or x86. But there is nothing armv7-specific, and supposedly the
library would still be useful on generic boards. So I'd just put BR2_arm.

> +	help
> +	  Libmraa is a C/C++ library with bindings to javascript & python

 Well, the js and python bindings aren't built... But that could be added in
follow-up patches so OK.

> +	  to interface with the IO on Galileo, Edison & other platforms,
> +	  with a structured and sane API where port names/numbering matches
> +	  the board that you are on.
> +
> +	  http://iotdk.intel.com/docs/master/mraa
> +
> +comment "libmraa needs a toolchain w/ C++, threads, dynamic library"
> +	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
> +		|| BR2_STATIC_LIBS
> diff --git a/package/libmraa/libmraa.mk b/package/libmraa/libmraa.mk
> new file mode 100644
> index 0000000..099e883
> --- /dev/null
> +++ b/package/libmraa/libmraa.mk
> @@ -0,0 +1,22 @@
> +################################################################################
> +#
> +# libmraa
> +#
> +################################################################################
> +
> +LIBMRAA_VERSION = v0.9.0
> +LIBMRAA_SITE = $(call github,intel-iot-devkit,mraa,$(LIBMRAA_VERSION))

 Upstream calls it mraa, not libmraa, so we prefer to stick to the same name.

 Otherwise looks good.

 Regards,
 Arnout

> +LIBMRAA_LICENSE = MIT
> +LIBMRAA_LICENSE_FILES = COPYING
> +LIBMRAA_INSTALL_STAGING = YES
> +
> +LIBMRAA_CONF_OPTS += \
> +	-DBUILDSWIG=OFF \
> +	-DUSBPLAT=OFF \
> +	-DFTDI4222=OFF \
> +	-DIPK=OFF \
> +	-DRPM=OFF \
> +	-DENABLEEXAMPLES=OFF \
> +	-DTESTS=OFF
> +
> +$(eval $(cmake-package))
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH 1/1] libmraa: new package
  2016-01-05  0:48 ` Arnout Vandecappelle
@ 2016-01-05 17:50   ` Pieterjan Camerlynck
  0 siblings, 0 replies; 10+ messages in thread
From: Pieterjan Camerlynck @ 2016-01-05 17:50 UTC (permalink / raw)
  To: buildroot

2016-01-05 1:48 GMT+01:00 Arnout Vandecappelle <arnout@mind.be>:
>  Hi Pieterjan,
>
> On 04-01-16 20:46, Pieterjan Camerlynck wrote:
>> libmraa provides a unified interface for IO on Galileo, Edison,
>> Raspberry Pi and others
>>
>> Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
>> ---
>>  package/Config.in          |  1 +
>>  package/libmraa/Config.in  | 17 +++++++++++++++++
>>  package/libmraa/libmraa.mk | 22 ++++++++++++++++++++++
>>  3 files changed, 40 insertions(+)
>>  create mode 100644 package/libmraa/Config.in
>>  create mode 100644 package/libmraa/libmraa.mk
>>
>> diff --git a/package/Config.in b/package/Config.in
>> index 442021f..52f6b5b 100644
>> --- a/package/Config.in
>> +++ b/package/Config.in
>> @@ -930,6 +930,7 @@ menu "Hardware handling"
>>       source "package/libiqrf/Config.in"
>>       source "package/libllcp/Config.in"
>>       source "package/libmbim/Config.in"
>> +     source "package/libmraa/Config.in"
>>       source "package/libnfc/Config.in"
>>       source "package/libpciaccess/Config.in"
>>       source "package/libphidget/Config.in"
>> diff --git a/package/libmraa/Config.in b/package/libmraa/Config.in
>> new file mode 100644
>> index 0000000..cfbe37c
>> --- /dev/null
>> +++ b/package/libmraa/Config.in
>> @@ -0,0 +1,17 @@
>> +config BR2_PACKAGE_LIBMRAA
>> +     bool "libmraa"
>> +     depends on BR2_INSTALL_LIBSTDCPP
>
>  Actually it doesn't contain any C++ code as far as I can see. So you should
> patch CMakeLists.txt to set
>
> project (mraa C)
>
> (and send that patch upstream).

You are right, the C++ api only exists of header files.

>> +     depends on BR2_TOOLCHAIN_HAS_THREADS
>> +     depends on !BR2_STATIC_LIBS
>
>  I don't see anything that would require dynamic libraries. Can you add a
> comment why this is needed?

I thought it was needed because of the following line in src/CmakeLists.txt:
add_library (mraa SHARED ${mraa_LIB_SRCS})

>> +     depends on BR2_ARM_CPU_ARMV7A || BR2_i386 || BR2_x86_64
>
>  It actually builds on any platform, except that the CMakeLists.txt explicitly
> checks for arm or x86. But there is nothing armv7-specific, and supposedly the
> library would still be useful on generic boards. So I'd just put BR2_arm.

Ok

>> +     help
>> +       Libmraa is a C/C++ library with bindings to javascript & python
>
>  Well, the js and python bindings aren't built... But that could be added in
> follow-up patches so OK.

Yes, the bindings are missing at the moment. I still need to figure
that part out.

>> +       to interface with the IO on Galileo, Edison & other platforms,
>> +       with a structured and sane API where port names/numbering matches
>> +       the board that you are on.
>> +
>> +       http://iotdk.intel.com/docs/master/mraa
>> +
>> +comment "libmraa needs a toolchain w/ C++, threads, dynamic library"
>> +     depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
>> +             || BR2_STATIC_LIBS
>> diff --git a/package/libmraa/libmraa.mk b/package/libmraa/libmraa.mk
>> new file mode 100644
>> index 0000000..099e883
>> --- /dev/null
>> +++ b/package/libmraa/libmraa.mk
>> @@ -0,0 +1,22 @@
>> +################################################################################
>> +#
>> +# libmraa
>> +#
>> +################################################################################
>> +
>> +LIBMRAA_VERSION = v0.9.0
>> +LIBMRAA_SITE = $(call github,intel-iot-devkit,mraa,$(LIBMRAA_VERSION))
>
>  Upstream calls it mraa, not libmraa, so we prefer to stick to the same name.

Ok. It's confusing because it says libmraa in the readme :-)

>  Otherwise looks good.
>
>  Regards,
>  Arnout
>
>> +LIBMRAA_LICENSE = MIT
>> +LIBMRAA_LICENSE_FILES = COPYING
>> +LIBMRAA_INSTALL_STAGING = YES
>> +
>> +LIBMRAA_CONF_OPTS += \
>> +     -DBUILDSWIG=OFF \
>> +     -DUSBPLAT=OFF \
>> +     -DFTDI4222=OFF \
>> +     -DIPK=OFF \
>> +     -DRPM=OFF \
>> +     -DENABLEEXAMPLES=OFF \
>> +     -DTESTS=OFF
>> +
>> +$(eval $(cmake-package))
>>
>
>
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v2] mraa: new package
  2016-01-04 19:46 [Buildroot] [PATCH 1/1] libmraa: new package Pieterjan Camerlynck
  2016-01-05  0:48 ` Arnout Vandecappelle
@ 2016-01-05 20:11 ` Pieterjan Camerlynck
  2016-01-06 12:56   ` Samuel Martin
  2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
  1 sibling, 2 replies; 10+ messages in thread
From: Pieterjan Camerlynck @ 2016-01-05 20:11 UTC (permalink / raw)
  To: buildroot

mraa provides a unified interface for IO on Galileo, Edison,
Raspberry Pi and others
---
Changes v1->v2:
- rename libmraa to mraa
- remove C++ compiler dependency
- depend on BR2_arm instead of BR2_ARM_CPU_ARMV7A

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
---
 package/Config.in                                  |  1 +
 .../mraa/0001-do-not-require-cpp-compiler.patch    | 28 ++++++++++++++++++++++
 package/mraa/Config.in                             | 15 ++++++++++++
 package/mraa/mraa.mk                               | 22 +++++++++++++++++
 4 files changed, 66 insertions(+)
 create mode 100644 package/mraa/0001-do-not-require-cpp-compiler.patch
 create mode 100644 package/mraa/Config.in
 create mode 100644 package/mraa/mraa.mk

diff --git a/package/Config.in b/package/Config.in
index 442021f..06ed4a8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -946,6 +946,7 @@ menu "Hardware handling"
 	source "package/libusb-compat/Config.in"
 	source "package/libv4l/Config.in"
 	source "package/libxkbcommon/Config.in"
+	source "package/mraa/Config.in"
 	source "package/mtdev/Config.in"
 	source "package/ne10/Config.in"
 	source "package/neardal/Config.in"
diff --git a/package/mraa/0001-do-not-require-cpp-compiler.patch b/package/mraa/0001-do-not-require-cpp-compiler.patch
new file mode 100644
index 0000000..fe58a26
--- /dev/null
+++ b/package/mraa/0001-do-not-require-cpp-compiler.patch
@@ -0,0 +1,28 @@
+From f490cf66dbbbdb80de20d8bb5c8cf5d663feb3c5 Mon Sep 17 00:00:00 2001
+From: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+Date: Tue, 5 Jan 2016 19:36:55 +0100
+Subject: [PATCH 1/1] do not require a C++ compiler
+
+By default, CMake assumes both a C and C++ compiler are required.
+This is not needed for mraa because it only provides C++ header
+files.
+
+Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9860556..34d8e16 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ cmake_minimum_required (VERSION 2.8)
+-project (mraa)
++project (mraa C)
+ 
+ FIND_PACKAGE (Threads REQUIRED)
+ 
+-- 
+1.9.1
+
diff --git a/package/mraa/Config.in b/package/mraa/Config.in
new file mode 100644
index 0000000..9e8918a
--- /dev/null
+++ b/package/mraa/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_MRAA
+	bool "mraa"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_STATIC_LIBS
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
+	help
+	  mraa is a C/C++ library with bindings to javascript & python
+	  to interface with the IO on Galileo, Edison & other platforms,
+	  with a structured and sane API where port names/numbering matches
+	  the board that you are on.
+
+	  http://iotdk.intel.com/docs/master/mraa
+
+comment "mraa needs a toolchain w/ threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
diff --git a/package/mraa/mraa.mk b/package/mraa/mraa.mk
new file mode 100644
index 0000000..9f3b953
--- /dev/null
+++ b/package/mraa/mraa.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# mraa
+#
+################################################################################
+
+MRAA_VERSION = v0.9.0
+MRAA_SITE = $(call github,intel-iot-devkit,mraa,$(MRAA_VERSION))
+MRAA_LICENSE = MIT
+MRAA_LICENSE_FILES = COPYING
+MRAA_INSTALL_STAGING = YES
+
+MRAA_CONF_OPTS += \
+	-DBUILDSWIG=OFF \
+	-DUSBPLAT=OFF \
+	-DFTDI4222=OFF \
+	-DIPK=OFF \
+	-DRPM=OFF \
+	-DENABLEEXAMPLES=OFF \
+	-DTESTS=OFF
+
+$(eval $(cmake-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v2] mraa: new package
  2016-01-05 20:11 ` [Buildroot] [PATCH v2] mraa: " Pieterjan Camerlynck
@ 2016-01-06 12:56   ` Samuel Martin
  2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
  1 sibling, 0 replies; 10+ messages in thread
From: Samuel Martin @ 2016-01-06 12:56 UTC (permalink / raw)
  To: buildroot

Hi Pieterjan,

On Tue, Jan 5, 2016 at 9:11 PM, Pieterjan Camerlynck
<pieterjan.camerlynck@gmail.com> wrote:
> mraa provides a unified interface for IO on Galileo, Edison,
> Raspberry Pi and others
> ---
> Changes v1->v2:
> - rename libmraa to mraa
> - remove C++ compiler dependency
> - depend on BR2_arm instead of BR2_ARM_CPU_ARMV7A
>
> Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
> ---
>  package/Config.in                                  |  1 +
>  .../mraa/0001-do-not-require-cpp-compiler.patch    | 28 ++++++++++++++++++++++
>  package/mraa/Config.in                             | 15 ++++++++++++
>  package/mraa/mraa.mk                               | 22 +++++++++++++++++
>  4 files changed, 66 insertions(+)
>  create mode 100644 package/mraa/0001-do-not-require-cpp-compiler.patch
>  create mode 100644 package/mraa/Config.in
>  create mode 100644 package/mraa/mraa.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 442021f..06ed4a8 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -946,6 +946,7 @@ menu "Hardware handling"
>         source "package/libusb-compat/Config.in"
>         source "package/libv4l/Config.in"
>         source "package/libxkbcommon/Config.in"
> +       source "package/mraa/Config.in"
>         source "package/mtdev/Config.in"
>         source "package/ne10/Config.in"
>         source "package/neardal/Config.in"
> diff --git a/package/mraa/0001-do-not-require-cpp-compiler.patch b/package/mraa/0001-do-not-require-cpp-compiler.patch
> new file mode 100644
> index 0000000..fe58a26
> --- /dev/null
> +++ b/package/mraa/0001-do-not-require-cpp-compiler.patch
> @@ -0,0 +1,28 @@
> +From f490cf66dbbbdb80de20d8bb5c8cf5d663feb3c5 Mon Sep 17 00:00:00 2001
> +From: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
> +Date: Tue, 5 Jan 2016 19:36:55 +0100
> +Subject: [PATCH 1/1] do not require a C++ compiler
> +
> +By default, CMake assumes both a C and C++ compiler are required.
> +This is not needed for mraa because it only provides C++ header
> +files.
> +
> +Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>

Please indicate the status with upstream of the patch
(submitted/merged/etc) and a ref. to the submission/discussion if any.
This  way, it will make easier bumping the package and this patch.

> +---
> + CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index 9860556..34d8e16 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -1,5 +1,5 @@
> + cmake_minimum_required (VERSION 2.8)
> +-project (mraa)
> ++project (mraa C)
> +
> + FIND_PACKAGE (Threads REQUIRED)
> +
> +--
> +1.9.1
> +
> diff --git a/package/mraa/Config.in b/package/mraa/Config.in
> new file mode 100644
> index 0000000..9e8918a
> --- /dev/null
> +++ b/package/mraa/Config.in
> @@ -0,0 +1,15 @@
> +config BR2_PACKAGE_MRAA
> +       bool "mraa"
> +       depends on BR2_TOOLCHAIN_HAS_THREADS
> +       depends on !BR2_STATIC_LIBS

Looping back with upstream [1], it seems there is no real reason to
only build shared object libs.
Consider dropping this "depends on" and picking up [2]. ;-)

> +       depends on BR2_arm || BR2_i386 || BR2_x86_64
> +       help
> +         mraa is a C/C++ library with bindings to javascript & python
> +         to interface with the IO on Galileo, Edison & other platforms,
> +         with a structured and sane API where port names/numbering matches
> +         the board that you are on.
> +
> +         http://iotdk.intel.com/docs/master/mraa
> +
> +comment "mraa needs a toolchain w/ threads, dynamic library"
> +       depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

... and don't forget to update the comment ;)

> diff --git a/package/mraa/mraa.mk b/package/mraa/mraa.mk
> new file mode 100644
> index 0000000..9f3b953
> --- /dev/null
> +++ b/package/mraa/mraa.mk
> @@ -0,0 +1,22 @@
> +################################################################################
> +#
> +# mraa
> +#
> +################################################################################
> +
> +MRAA_VERSION = v0.9.0
> +MRAA_SITE = $(call github,intel-iot-devkit,mraa,$(MRAA_VERSION))
> +MRAA_LICENSE = MIT
> +MRAA_LICENSE_FILES = COPYING
> +MRAA_INSTALL_STAGING = YES
> +
> +MRAA_CONF_OPTS += \
> +       -DBUILDSWIG=OFF \
> +       -DUSBPLAT=OFF \
> +       -DFTDI4222=OFF \
> +       -DIPK=OFF \
> +       -DRPM=OFF \
> +       -DENABLEEXAMPLES=OFF \
> +       -DTESTS=OFF
> +
> +$(eval $(cmake-package))
> --
> 1.9.1
>

[1] https://github.com/intel-iot-devkit/mraa/commit/d1ceeae4e3d830a4867da560b8da3ad5fa7fa8fb#commitcomment-15275905
[2] https://github.com/intel-iot-devkit/mraa/commit/86a0e10c037e5c069c48012f169f9e8e2587a0ef

> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

Regards,

-- 
Samuel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v3] mraa: new package
  2016-01-05 20:11 ` [Buildroot] [PATCH v2] mraa: " Pieterjan Camerlynck
  2016-01-06 12:56   ` Samuel Martin
@ 2016-01-06 17:24   ` Pieterjan Camerlynck
  2016-01-06 21:44     ` Samuel Martin
                       ` (2 more replies)
  1 sibling, 3 replies; 10+ messages in thread
From: Pieterjan Camerlynck @ 2016-01-06 17:24 UTC (permalink / raw)
  To: buildroot

mraa provides a unified interface for IO on Galileo, Edison,
Raspberry Pi and others

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
---
Changes v2->v3:
- add 0001-cmake-build-shared-libs-by-default-on-linux.patch
    Thank you Samuel Martin!
- add 0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
- remove !BR2_STATIC_LIBS dependency

Changes v1->v2:
- rename libmraa to mraa
- remove C++ compiler dependency
- depend on BR2_arm instead of BR2_ARM_CPU_ARMV7A

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
---
 package/Config.in                                  |  1 +
 ...ake-build-shared-libs-by-default-on-linux.patch | 53 ++++++++++++++++++++
 ...keLists.txt-do-not-require-a-CXX-compiler.patch | 57 ++++++++++++++++++++++
 package/mraa/Config.in                             | 14 ++++++
 package/mraa/mraa.mk                               | 22 +++++++++
 5 files changed, 147 insertions(+)
 create mode 100644 package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
 create mode 100644 package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
 create mode 100644 package/mraa/Config.in
 create mode 100644 package/mraa/mraa.mk

diff --git a/package/Config.in b/package/Config.in
index 442021f..06ed4a8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -946,6 +946,7 @@ menu "Hardware handling"
 	source "package/libusb-compat/Config.in"
 	source "package/libv4l/Config.in"
 	source "package/libxkbcommon/Config.in"
+	source "package/mraa/Config.in"
 	source "package/mtdev/Config.in"
 	source "package/ne10/Config.in"
 	source "package/neardal/Config.in"
diff --git a/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch b/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
new file mode 100644
index 0000000..9f7c95e
--- /dev/null
+++ b/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
@@ -0,0 +1,53 @@
+Upstream status: Merged
+Fetched from: https://github.com/intel-iot-devkit/mraa/commit/86a0e10c037e5c069c48012f169f9e8e2587a0ef
+
+From 86a0e10c037e5c069c48012f169f9e8e2587a0ef Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Wed, 6 Jan 2016 01:07:10 +0100
+Subject: [PATCH] cmake: build shared libs by default on linux
+
+The change allows to build shared libraries by default on Linux, while
+respecting the requested library build type when the standard CMake flag
+BUILD_SHARED_LIBS is defined.
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
+---
+ CMakeLists.txt     | 7 +++++++
+ src/CMakeLists.txt | 2 +-
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9860556..6a189b9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,6 +10,13 @@ set (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Installation path for
+ # Set CMAKE_LIB_INSTALL_DIR if not defined
+ include(GNUInstallDirs)
+ 
++# By default, build shared object libraries on linux
++if (UNIX AND NOT APPLE)
++  if (NOT DEFINED BUILD_SHARED_LIBS)
++    set(BUILD_SHARED_LIBS ON)
++  endif()
++endif()
++
+ # Appends the cmake/modules path to MAKE_MODULE_PATH variable.
+ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
+ 
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ceb31e4..6698fa4 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -111,7 +111,7 @@ set (mraa_LIB_GLOB_HEADERS
+   ${PROJECT_SOURCE_DIR}/api/mraa.hpp
+ )
+ 
+-add_library (mraa SHARED ${mraa_LIB_SRCS})
++add_library (mraa ${mraa_LIB_SRCS})
+ 
+ 
+ target_link_libraries (mraa ${mraa_LIBS})
+-- 
+1.9.1
+
diff --git a/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch b/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
new file mode 100644
index 0000000..a01395b
--- /dev/null
+++ b/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
@@ -0,0 +1,57 @@
+Upstream status: Merged
+Fetched from: https://github.com/intel-iot-devkit/mraa/commit/a87a104efeb83d4e762992e5be3b8908e6d2bf40
+
+From a87a104efeb83d4e762992e5be3b8908e6d2bf40 Mon Sep 17 00:00:00 2001
+From: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+Date: Tue, 5 Jan 2016 19:36:55 +0100
+Subject: [PATCH] CMakeLists.txt: do not require a C++ compiler
+
+By default, CMake assumes both a C and C++ compiler are required.
+This is not needed for mraa because it only provides C++ header
+files. Note that if using SWIG you need one and if using node.js 3+ you'll need
+a C++11 compiler
+
+Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
+---
+ CMakeLists.txt              | 2 +-
+ examples/c++/CMakeLists.txt | 2 ++
+ src/CMakeLists.txt          | 1 +
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6a189b9..4457efc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ cmake_minimum_required (VERSION 2.8)
+-project (mraa)
++project (mraa C)
+ 
+ FIND_PACKAGE (Threads REQUIRED)
+ 
+diff --git a/examples/c++/CMakeLists.txt b/examples/c++/CMakeLists.txt
+index 69714aa..d688d48 100644
+--- a/examples/c++/CMakeLists.txt
++++ b/examples/c++/CMakeLists.txt
+@@ -1,3 +1,5 @@
++enable_language(CXX)
++
+ add_executable (AioA0 AioA0.cpp)
+ add_executable (blink-io-cpp Blink-IO.cpp)
+ add_executable (Pwm3-cycle Pwm3-cycle.cpp)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6698fa4..05b546c 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -171,6 +171,7 @@ if (DOXYGEN_FOUND)
+ endif ()
+ 
+ if (BUILDSWIG)
++  enable_language(CXX)
+   find_package (SWIG)
+   if (SWIG_FOUND)
+     include (${SWIG_USE_FILE})
+-- 
+1.9.1
+
diff --git a/package/mraa/Config.in b/package/mraa/Config.in
new file mode 100644
index 0000000..2e5d3b1
--- /dev/null
+++ b/package/mraa/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MRAA
+	bool "mraa"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
+	help
+	  mraa is a C/C++ library with bindings to javascript & python
+	  to interface with the IO on Galileo, Edison & other platforms,
+	  with a structured and sane API where port names/numbering matches
+	  the board that you are on.
+
+	  http://iotdk.intel.com/docs/master/mraa
+
+comment "mraa needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/mraa/mraa.mk b/package/mraa/mraa.mk
new file mode 100644
index 0000000..9f3b953
--- /dev/null
+++ b/package/mraa/mraa.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# mraa
+#
+################################################################################
+
+MRAA_VERSION = v0.9.0
+MRAA_SITE = $(call github,intel-iot-devkit,mraa,$(MRAA_VERSION))
+MRAA_LICENSE = MIT
+MRAA_LICENSE_FILES = COPYING
+MRAA_INSTALL_STAGING = YES
+
+MRAA_CONF_OPTS += \
+	-DBUILDSWIG=OFF \
+	-DUSBPLAT=OFF \
+	-DFTDI4222=OFF \
+	-DIPK=OFF \
+	-DRPM=OFF \
+	-DENABLEEXAMPLES=OFF \
+	-DTESTS=OFF
+
+$(eval $(cmake-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v3] mraa: new package
  2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
@ 2016-01-06 21:44     ` Samuel Martin
  2016-01-09  0:10     ` Arnout Vandecappelle
  2016-01-09  8:36     ` [Buildroot] [PATCH v4 1/1] " Pieterjan Camerlynck
  2 siblings, 0 replies; 10+ messages in thread
From: Samuel Martin @ 2016-01-06 21:44 UTC (permalink / raw)
  To: buildroot

On Wed, Jan 6, 2016 at 6:24 PM, Pieterjan Camerlynck
<pieterjan.camerlynck@gmail.com> wrote:
> mraa provides a unified interface for IO on Galileo, Edison,
> Raspberry Pi and others
>
> Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>

[Build tests only]
Tested-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>

Regards,

-- 
Samuel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v3] mraa: new package
  2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
  2016-01-06 21:44     ` Samuel Martin
@ 2016-01-09  0:10     ` Arnout Vandecappelle
  2016-01-09  8:36     ` [Buildroot] [PATCH v4 1/1] " Pieterjan Camerlynck
  2 siblings, 0 replies; 10+ messages in thread
From: Arnout Vandecappelle @ 2016-01-09  0:10 UTC (permalink / raw)
  To: buildroot

On 06-01-16 18:24, Pieterjan Camerlynck wrote:
> mraa provides a unified interface for IO on Galileo, Edison,
> Raspberry Pi and others
> 
> Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>

Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

 One small additional comment below.

[snip]
> diff --git a/package/mraa/mraa.mk b/package/mraa/mraa.mk
> new file mode 100644
> index 0000000..9f3b953
> --- /dev/null
> +++ b/package/mraa/mraa.mk
> @@ -0,0 +1,22 @@
> +################################################################################
> +#
> +# mraa
> +#
> +################################################################################
> +
> +MRAA_VERSION = v0.9.0
> +MRAA_SITE = $(call github,intel-iot-devkit,mraa,$(MRAA_VERSION))
> +MRAA_LICENSE = MIT
> +MRAA_LICENSE_FILES = COPYING
> +MRAA_INSTALL_STAGING = YES
> +

 It might be good to add:

# USBPLAT only makes sense with FTDI4222, which requires the ftd2xx library,
# which doesn't exist in buildroot


 Regards,
 Arnout

> +MRAA_CONF_OPTS += \
> +	-DBUILDSWIG=OFF \
> +	-DUSBPLAT=OFF \
> +	-DFTDI4222=OFF \
> +	-DIPK=OFF \
> +	-DRPM=OFF \
> +	-DENABLEEXAMPLES=OFF \
> +	-DTESTS=OFF
> +
> +$(eval $(cmake-package))
> 


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v4 1/1] mraa: new package
  2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
  2016-01-06 21:44     ` Samuel Martin
  2016-01-09  0:10     ` Arnout Vandecappelle
@ 2016-01-09  8:36     ` Pieterjan Camerlynck
  2016-01-12 20:59       ` Peter Korsgaard
  2 siblings, 1 reply; 10+ messages in thread
From: Pieterjan Camerlynck @ 2016-01-09  8:36 UTC (permalink / raw)
  To: buildroot

mraa provides a unified interface for IO on Galileo, Edison,
Raspberry Pi and others

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
Tested-by: Samuel Martin <s.martin49@gmail.com>
Acked-by: Samuel Martin <s.martin49@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
Changes v3->v4:
- add comment about USBPLAT and FTDI4222 to mraa.mk

Changes v2->v3:
- add 0001-cmake-build-shared-libs-by-default-on-linux.patch
    Thank you Samuel Martin!
- add 0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
- remove !BR2_STATIC_LIBS dependency

Changes v1->v2:
- rename libmraa to mraa
- remove C++ compiler dependency
- depend on BR2_arm instead of BR2_ARM_CPU_ARMV7A

Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
---
 package/Config.in                                  |  1 +
 ...ake-build-shared-libs-by-default-on-linux.patch | 53 ++++++++++++++++++++
 ...keLists.txt-do-not-require-a-CXX-compiler.patch | 57 ++++++++++++++++++++++
 package/mraa/Config.in                             | 14 ++++++
 package/mraa/mraa.mk                               | 25 ++++++++++
 5 files changed, 150 insertions(+)
 create mode 100644 package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
 create mode 100644 package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
 create mode 100644 package/mraa/Config.in
 create mode 100644 package/mraa/mraa.mk

diff --git a/package/Config.in b/package/Config.in
index 442021f..06ed4a8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -946,6 +946,7 @@ menu "Hardware handling"
 	source "package/libusb-compat/Config.in"
 	source "package/libv4l/Config.in"
 	source "package/libxkbcommon/Config.in"
+	source "package/mraa/Config.in"
 	source "package/mtdev/Config.in"
 	source "package/ne10/Config.in"
 	source "package/neardal/Config.in"
diff --git a/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch b/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
new file mode 100644
index 0000000..9f7c95e
--- /dev/null
+++ b/package/mraa/0001-cmake-build-shared-libs-by-default-on-linux.patch
@@ -0,0 +1,53 @@
+Upstream status: Merged
+Fetched from: https://github.com/intel-iot-devkit/mraa/commit/86a0e10c037e5c069c48012f169f9e8e2587a0ef
+
+From 86a0e10c037e5c069c48012f169f9e8e2587a0ef Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Wed, 6 Jan 2016 01:07:10 +0100
+Subject: [PATCH] cmake: build shared libs by default on linux
+
+The change allows to build shared libraries by default on Linux, while
+respecting the requested library build type when the standard CMake flag
+BUILD_SHARED_LIBS is defined.
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
+---
+ CMakeLists.txt     | 7 +++++++
+ src/CMakeLists.txt | 2 +-
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 9860556..6a189b9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,6 +10,13 @@ set (LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "Installation path for
+ # Set CMAKE_LIB_INSTALL_DIR if not defined
+ include(GNUInstallDirs)
+ 
++# By default, build shared object libraries on linux
++if (UNIX AND NOT APPLE)
++  if (NOT DEFINED BUILD_SHARED_LIBS)
++    set(BUILD_SHARED_LIBS ON)
++  endif()
++endif()
++
+ # Appends the cmake/modules path to MAKE_MODULE_PATH variable.
+ set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
+ 
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ceb31e4..6698fa4 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -111,7 +111,7 @@ set (mraa_LIB_GLOB_HEADERS
+   ${PROJECT_SOURCE_DIR}/api/mraa.hpp
+ )
+ 
+-add_library (mraa SHARED ${mraa_LIB_SRCS})
++add_library (mraa ${mraa_LIB_SRCS})
+ 
+ 
+ target_link_libraries (mraa ${mraa_LIBS})
+-- 
+1.9.1
+
diff --git a/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch b/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
new file mode 100644
index 0000000..a01395b
--- /dev/null
+++ b/package/mraa/0002-CMakeLists.txt-do-not-require-a-CXX-compiler.patch
@@ -0,0 +1,57 @@
+Upstream status: Merged
+Fetched from: https://github.com/intel-iot-devkit/mraa/commit/a87a104efeb83d4e762992e5be3b8908e6d2bf40
+
+From a87a104efeb83d4e762992e5be3b8908e6d2bf40 Mon Sep 17 00:00:00 2001
+From: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+Date: Tue, 5 Jan 2016 19:36:55 +0100
+Subject: [PATCH] CMakeLists.txt: do not require a C++ compiler
+
+By default, CMake assumes both a C and C++ compiler are required.
+This is not needed for mraa because it only provides C++ header
+files. Note that if using SWIG you need one and if using node.js 3+ you'll need
+a C++11 compiler
+
+Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
+Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
+---
+ CMakeLists.txt              | 2 +-
+ examples/c++/CMakeLists.txt | 2 ++
+ src/CMakeLists.txt          | 1 +
+ 3 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6a189b9..4457efc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ cmake_minimum_required (VERSION 2.8)
+-project (mraa)
++project (mraa C)
+ 
+ FIND_PACKAGE (Threads REQUIRED)
+ 
+diff --git a/examples/c++/CMakeLists.txt b/examples/c++/CMakeLists.txt
+index 69714aa..d688d48 100644
+--- a/examples/c++/CMakeLists.txt
++++ b/examples/c++/CMakeLists.txt
+@@ -1,3 +1,5 @@
++enable_language(CXX)
++
+ add_executable (AioA0 AioA0.cpp)
+ add_executable (blink-io-cpp Blink-IO.cpp)
+ add_executable (Pwm3-cycle Pwm3-cycle.cpp)
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6698fa4..05b546c 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -171,6 +171,7 @@ if (DOXYGEN_FOUND)
+ endif ()
+ 
+ if (BUILDSWIG)
++  enable_language(CXX)
+   find_package (SWIG)
+   if (SWIG_FOUND)
+     include (${SWIG_USE_FILE})
+-- 
+1.9.1
+
diff --git a/package/mraa/Config.in b/package/mraa/Config.in
new file mode 100644
index 0000000..2e5d3b1
--- /dev/null
+++ b/package/mraa/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MRAA
+	bool "mraa"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
+	help
+	  mraa is a C/C++ library with bindings to javascript & python
+	  to interface with the IO on Galileo, Edison & other platforms,
+	  with a structured and sane API where port names/numbering matches
+	  the board that you are on.
+
+	  http://iotdk.intel.com/docs/master/mraa
+
+comment "mraa needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/mraa/mraa.mk b/package/mraa/mraa.mk
new file mode 100644
index 0000000..299beb0
--- /dev/null
+++ b/package/mraa/mraa.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# mraa
+#
+################################################################################
+
+MRAA_VERSION = v0.9.0
+MRAA_SITE = $(call github,intel-iot-devkit,mraa,$(MRAA_VERSION))
+MRAA_LICENSE = MIT
+MRAA_LICENSE_FILES = COPYING
+MRAA_INSTALL_STAGING = YES
+
+# USBPLAT only makes sense with FTDI4222, which requires the ftd2xx library,
+# which doesn't exist in buildroot
+
+MRAA_CONF_OPTS += \
+	-DBUILDSWIG=OFF \
+	-DUSBPLAT=OFF \
+	-DFTDI4222=OFF \
+	-DIPK=OFF \
+	-DRPM=OFF \
+	-DENABLEEXAMPLES=OFF \
+	-DTESTS=OFF
+
+$(eval $(cmake-package))
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [Buildroot] [PATCH v4 1/1] mraa: new package
  2016-01-09  8:36     ` [Buildroot] [PATCH v4 1/1] " Pieterjan Camerlynck
@ 2016-01-12 20:59       ` Peter Korsgaard
  0 siblings, 0 replies; 10+ messages in thread
From: Peter Korsgaard @ 2016-01-12 20:59 UTC (permalink / raw)
  To: buildroot

>>>>> "Pieterjan" == Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com> writes:

 > mraa provides a unified interface for IO on Galileo, Edison,
 > Raspberry Pi and others

 > Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com>
 > Tested-by: Samuel Martin <s.martin49@gmail.com>
 > Acked-by: Samuel Martin <s.martin49@gmail.com>
 > Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
 > ---
 > Changes v3->v4:
 > - add comment about USBPLAT and FTDI4222 to mraa.mk

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-01-12 20:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 19:46 [Buildroot] [PATCH 1/1] libmraa: new package Pieterjan Camerlynck
2016-01-05  0:48 ` Arnout Vandecappelle
2016-01-05 17:50   ` Pieterjan Camerlynck
2016-01-05 20:11 ` [Buildroot] [PATCH v2] mraa: " Pieterjan Camerlynck
2016-01-06 12:56   ` Samuel Martin
2016-01-06 17:24   ` [Buildroot] [PATCH v3] " Pieterjan Camerlynck
2016-01-06 21:44     ` Samuel Martin
2016-01-09  0:10     ` Arnout Vandecappelle
2016-01-09  8:36     ` [Buildroot] [PATCH v4 1/1] " Pieterjan Camerlynck
2016-01-12 20:59       ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.