Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target
@ 2017-03-13 19:35 Matthew Fornero
  2017-03-14 15:05 ` Cercueil, Paul
  2017-03-14 22:41 ` Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Matthew Fornero @ 2017-03-13 19:35 UTC (permalink / raw)
  To: buildroot

If building on a machine with MATLAB installed, the MATLAB bindings will
default to ON, which is not the desired behavior for a cross build.

The bindings are designed to be called from within MATLAB, and we are
not currently running MATLAB on buildroot-generated targets.

This does not preclude the use of the bindings from a host connecting
over the network backend (assuming libiio on the host has the bindings
enabled).

Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
---
 package/libiio/libiio.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
index 8977610..aaa6c70 100644
--- a/package/libiio/libiio.mk
+++ b/package/libiio/libiio.mk
@@ -14,6 +14,7 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
 	-DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
 	-DWITH_NETWORK_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \
 	-DWITH_MATLAB_BINDINGS_API=OFF \
+	-DMATLAB_BINDINGS=OFF \
 	-DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \
 	-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
 	-DWITH_DOC=OFF
-- 
2.1.4

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

* [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target
  2017-03-13 19:35 [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target Matthew Fornero
@ 2017-03-14 15:05 ` Cercueil, Paul
  2017-03-14 22:41 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Cercueil, Paul @ 2017-03-14 15:05 UTC (permalink / raw)
  To: buildroot

Makes sense.

Acked-By: Paul Cercueil <paul.cercueil@analog.com>

-- 
???__????____??____
? /__\??(??_ \(_??_)??| Paul Cercueil        paul.cercueil at analog.com
?/(__)\??)(_) )_)(_???| Software Engineer    github.com/pcercuei
(__)(__)(____/(____)??| Analog Devices, S.L. Paterna (Valencia) SPAIN

Le lundi 13 mars 2017 ? 15:35 -0400, Matthew Fornero a ?crit?:
> If building on a machine with MATLAB installed, the MATLAB bindings
> will
> default to ON, which is not the desired behavior for a cross build.
> 
> The bindings are designed to be called from within MATLAB, and we are
> not currently running MATLAB on buildroot-generated targets.
> 
> This does not preclude the use of the bindings from a host connecting
> over the network backend (assuming libiio on the host has the
> bindings
> enabled).
> 
> Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
> ---
> ?package/libiio/libiio.mk | 1 +
> ?1 file changed, 1 insertion(+)
> 
> diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
> index 8977610..aaa6c70 100644
> --- a/package/libiio/libiio.mk
> +++ b/package/libiio/libiio.mk
> @@ -14,6 +14,7 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
> ?	-DWITH_LOCAL_BACKEND=$(if
> $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
> ?	-DWITH_NETWORK_BACKEND=$(if
> $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \
> ?	-DWITH_MATLAB_BINDINGS_API=OFF \
> +	-DMATLAB_BINDINGS=OFF \
> ?	-DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \
> ?	-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
> ?	-DWITH_DOC=OFF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170314/ce4dda88/attachment.asc>

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

* [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target
  2017-03-13 19:35 [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target Matthew Fornero
  2017-03-14 15:05 ` Cercueil, Paul
@ 2017-03-14 22:41 ` Thomas Petazzoni
  2017-03-14 23:22   ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2017-03-14 22:41 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 13 Mar 2017 15:35:02 -0400, Matthew Fornero wrote:
> If building on a machine with MATLAB installed, the MATLAB bindings will
> default to ON, which is not the desired behavior for a cross build.
> 
> The bindings are designed to be called from within MATLAB, and we are
> not currently running MATLAB on buildroot-generated targets.
> 
> This does not preclude the use of the bindings from a host connecting
> over the network backend (assuming libiio on the host has the bindings
> enabled).
> 
> Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
> ---
>  package/libiio/libiio.mk | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, after slightly tweaking the commit title. Thanks!

Peter: perhaps we want this for the LTS branch? Not sure.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target
  2017-03-14 22:41 ` Thomas Petazzoni
@ 2017-03-14 23:22   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2017-03-14 23:22 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 > Hello,
 > On Mon, 13 Mar 2017 15:35:02 -0400, Matthew Fornero wrote:
 >> If building on a machine with MATLAB installed, the MATLAB bindings will
 >> default to ON, which is not the desired behavior for a cross build.
 >> 
 >> The bindings are designed to be called from within MATLAB, and we are
 >> not currently running MATLAB on buildroot-generated targets.
 >> 
 >> This does not preclude the use of the bindings from a host connecting
 >> over the network backend (assuming libiio on the host has the bindings
 >> enabled).
 >> 
 >> Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
 >> ---
 >> package/libiio/libiio.mk | 1 +
 >> 1 file changed, 1 insertion(+)

 > Applied to master, after slightly tweaking the commit title. Thanks!

 > Peter: perhaps we want this for the LTS branch? Not sure.

It seems pretty safe to add it. Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-03-14 23:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 19:35 [Buildroot] [PATCH] libiio: Disable MATLAB Bindings on Target Matthew Fornero
2017-03-14 15:05 ` Cercueil, Paul
2017-03-14 22:41 ` Thomas Petazzoni
2017-03-14 23:22   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox