New issue
Advanced search Search tips

Issue 706459 link

Starred by 3 users

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 719559



Sign in to add a comment

Add libiio to ChromeOS

Project Member Reported by gwendal@chromium.org, Mar 29 2017

Issue description

libiio: https://github.com/analogdevicesinc/libiio is not part of Gentoo.

The package has 2 functions:
1 - a user space library that normalize IIO sensor access
    in particular it defines message for setting sensors and retrieving 
    data.

2 - a daemon iiod, to access sensors remotely.

We don't need iiod (our daemon will be different, multiplexing access to sensors from Chrome and Android), but 1 would save some coding.

Does it make sense to ask Gentoo to add libiio into the distribution, or having it under chromeos-overlay?
 
Cc: amstan@chromium.org

Comment 2 by vapier@chromium.org, Mar 29 2017

i don't have a prob adding it to Gentoo.  so if you want to write a CL and post it to portage-stable, we can do review there, and then i can push to Gentoo.

Comment 3 by amstan@chromium.org, Mar 29 2017

Looks like Anatol already played with this on Arch Linux: https://aur.archlinux.org/packages/libiio/

Looks pretty simple (click "View PKGBUILD" on the right).
Owner: gwendal@chromium.org
Status: Started (was: Untriaged)
Uploaded  https://chromium-review.googlesource.com/496826:

This CL just add a small libiio with just the local backend, no iiod daemon.

Creating a CL for gentoo is not trivial, as the package is very customizable:
- several backend (usb, serial, network)
- iio daemon
- test binaries to access remote iiod servers.
- python bindings...

Blocking: 719559
Project Member

Comment 6 by bugdroid1@chromium.org, May 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/9d37caf5a513359f8e27ac23ef0ba90a6d3fe891

commit 9d37caf5a513359f8e27ac23ef0ba90a6d3fe891
Author: Gwendal Grignou <gwendal@chromium.org>
Date: Sat May 20 01:03:02 2017

libiio: Add stripped down libiio library

Add library to talk to local IIO devices.
Compile just libiio library, with just the local backend, and no iio daemon.

BUG=chromium:706459
TEST=Check on EVE: check with equery-eve f libiio only .h and library is
installed:
/usr/lib64/libiio.so -> libiio.so.0
/usr/lib64/libiio.so.0 -> libiio.so.0.9
/usr/lib64/libiio.so.0.9
On veyron:
/usr/lib/libiio.so -> libiio.so.0
/usr/lib/libiio.so.0 -> libiio.so.0.9
/usr/lib/libiio.so.0.9

Change-Id: I365a22d932fb3a37cd9699d06367f3dbe0c79888
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/496826
Reviewed-by: Mike Frysinger <vapier@chromium.org>

[add] https://crrev.com/9d37caf5a513359f8e27ac23ef0ba90a6d3fe891/dev-libs/libiio/Manifest
[add] https://crrev.com/9d37caf5a513359f8e27ac23ef0ba90a6d3fe891/dev-libs/libiio/libiio-0.9.ebuild

Comment 7 Deleted

Comment 8 Deleted

Sign in to add a comment