All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin"
@ 2017-11-03 10:30 Samuel Martin
  2017-11-03 10:30 ` [Buildroot] [PATCH 2/2] package/ussp-push: add patches fixing the build Samuel Martin
  2017-11-03 21:00 ` [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Thomas Petazzoni
  0 siblings, 2 replies; 3+ messages in thread
From: Samuel Martin @ 2017-11-03 10:30 UTC (permalink / raw)
  To: buildroot

This reverts commit 53996bee433f09a91b12aa53b2be0f7d22c0acbe.

Commit 93a86b4dec9e73fbe0e186cdde8fb04a36a44762 fixes accept4 support
in uclibc on Blackfin, so re-enable iiod on this target.

Cc: Paul Cercueil <paul.cercueil@analog.com>
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
 package/libiio/Config.in | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/package/libiio/Config.in b/package/libiio/Config.in
index baa163126a..b58ac7fdb3 100644
--- a/package/libiio/Config.in
+++ b/package/libiio/Config.in
@@ -53,7 +53,6 @@ config BR2_PACKAGE_LIBIIO_IIOD
 	bool "IIO Daemon"
 	default y
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	depends on !BR2_bfin
 	select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
 	help
 	  Install the IIO Daemon.
@@ -74,10 +73,6 @@ comment "USB support in the IIO Daemon requires libaio, headers >= 3.18"
 
 comment "IIO Daemon needs a toolchain w/ threads"
 	depends on !BR2_TOOLCHAIN_HAS_THREADS
-	depends on !BR2_bfin
-
-comment "IIO Daemon is not yet available on Blackfin"
-	depends on BR2_bfin
 
 config BR2_PACKAGE_LIBIIO_TESTS
 	bool "Install test programs"
-- 
2.15.0

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

* [Buildroot] [PATCH 2/2] package/ussp-push: add patches fixing the build
  2017-11-03 10:30 [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Samuel Martin
@ 2017-11-03 10:30 ` Samuel Martin
  2017-11-03 21:00 ` [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Martin @ 2017-11-03 10:30 UTC (permalink / raw)
  To: buildroot

Fixes:
  http://autobuild.buildroot.net/results/bdd932424a45399836f27c435d6f1f6fb8b97c29
  http://autobuild.buildroot.net/results/287b7d35d64d72cbc587192cce1271bda9647608
  http://autobuild.buildroot.net/results/82e1484d9a43df7387137a1bd679a4d74d460a79

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
 .../0002-fix-build-again-obex-bluez.patch          | 28 +++++++++++++
 .../ussp-push/0003-add-OBEX_CharToUnicode.patch    | 47 ++++++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 package/ussp-push/0002-fix-build-again-obex-bluez.patch
 create mode 100644 package/ussp-push/0003-add-OBEX_CharToUnicode.patch

diff --git a/package/ussp-push/0002-fix-build-again-obex-bluez.patch b/package/ussp-push/0002-fix-build-again-obex-bluez.patch
new file mode 100644
index 0000000000..e98fe6ef13
--- /dev/null
+++ b/package/ussp-push/0002-fix-build-again-obex-bluez.patch
@@ -0,0 +1,28 @@
+From 2d732026044d8e6cd16465ee87a73ac9692c021b Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Fri, 3 Nov 2017 09:04:12 +0100
+Subject: [PATCH] fix build again obex/bluez
+
+[fetch from debian source: http://http.debian.net/debian/pool/main/u/ussp-push/ussp-push_0.11-4.debian.tar.xz]
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+---
+ src/obex_main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/obex_main.c b/src/obex_main.c
+index a7126e6..6233d7e 100644
+--- a/src/obex_main.c
++++ b/src/obex_main.c
+@@ -197,7 +197,7 @@ obex_t *__obex_connect(int devid, void *addr, int timeout, int *err)
+ 		*err = -1;
+ 		return NULL;
+ 	}
+-	if (!(handle = OBEX_Init(OBEX_TRANS_CUST, obex_event, 0))) {
++	if (!(handle = OBEX_Init(OBEX_TRANS_CUSTOM, obex_event, 0))) {
+ 		BTERROR("OBEX_Init failed: %s\n", strerror(errno));
+ 		obex_free(gt);
+ 		*err = -1;
+-- 
+2.15.0
+
diff --git a/package/ussp-push/0003-add-OBEX_CharToUnicode.patch b/package/ussp-push/0003-add-OBEX_CharToUnicode.patch
new file mode 100644
index 0000000000..a660b5526b
--- /dev/null
+++ b/package/ussp-push/0003-add-OBEX_CharToUnicode.patch
@@ -0,0 +1,47 @@
+From eafac77d76d2a23c191a56f715d6c4afc0800da8 Mon Sep 17 00:00:00 2001
+From: Samuel Martin <s.martin49@gmail.com>
+Date: Fri, 3 Nov 2017 09:10:01 +0100
+Subject: [PATCH] add OBEX_CharToUnicode
+
+[fetch from debian source: http://http.debian.net/debian/pool/main/u/ussp-push/ussp-push_0.11-4.debian.tar.xz]
+
+Signed-off-by: Samuel Martin <s.martin49@gmail.com>
+---
+ src/obex_main.c | 20 ++++++++++++++++++++
+ 1 file changed, 20 insertions(+)
+
+diff --git a/src/obex_main.c b/src/obex_main.c
+index 6233d7e..971cc37 100644
+--- a/src/obex_main.c
++++ b/src/obex_main.c
+@@ -84,7 +84,27 @@ void request_done(obex_t * handle, obex_object_t * object, int obex_cmd, int obe
+ 
+ int bt_debug;
+ 
++static int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size)
++{
++	int len, n;
++
++	if (uc == NULL || c == NULL)
++		return -1;
++
++	len = n = strlen((char *) c);
++	if (n*2+2 > size)
++		return -1;
++
++	uc[n*2+1] = 0;
++	uc[n*2] = 0;
+ 
++	while (n--) {
++		uc[n*2+1] = c[n];
++		uc[n*2] = 0;
++	}
++
++	return (len * 2) + 2;
++}
+ 
+ /*
+  * These two functions are from affix/profiles/obex/obex_io.c
+-- 
+2.15.0
+
-- 
2.15.0

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

* [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin"
  2017-11-03 10:30 [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Samuel Martin
  2017-11-03 10:30 ` [Buildroot] [PATCH 2/2] package/ussp-push: add patches fixing the build Samuel Martin
@ 2017-11-03 21:00 ` Thomas Petazzoni
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-11-03 21:00 UTC (permalink / raw)
  To: buildroot

Hello,

On Fri,  3 Nov 2017 11:30:33 +0100, Samuel Martin wrote:
> This reverts commit 53996bee433f09a91b12aa53b2be0f7d22c0acbe.
> 
> Commit 93a86b4dec9e73fbe0e186cdde8fb04a36a44762 fixes accept4 support
> in uclibc on Blackfin, so re-enable iiod on this target.
> 
> Cc: Paul Cercueil <paul.cercueil@analog.com>
> Signed-off-by: Samuel Martin <s.martin49@gmail.com>
> ---
>  package/libiio/Config.in | 5 -----
>  1 file changed, 5 deletions(-)

Both patches applied. Thanks!

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

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

end of thread, other threads:[~2017-11-03 21:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-03 10:30 [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Samuel Martin
2017-11-03 10:30 ` [Buildroot] [PATCH 2/2] package/ussp-push: add patches fixing the build Samuel Martin
2017-11-03 21:00 ` [Buildroot] [PATCH 1/2] Revert "libiio: Disable IIOD on Blackfin" Thomas Petazzoni

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.