summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-07-13 05:34:40 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-07-13 05:35:07 +0300
commit48f8c7e1c315ef142aebe679be0c46cd379d0c35 (patch)
treeef1d94f5283d5be5740183eadfb16a247eb3fe58 /meta-rcar-gen3-adas
parentff6936b5b5172bf23d6ed7354b6aadfd10cfd629 (diff)
add IIO Utils
Diffstat (limited to 'meta-rcar-gen3-adas')
-rw-r--r--meta-rcar-gen3-adas/conf/layer.conf1
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/iio-utils/files/iio-utils.tar.gzbin0 -> 12531 bytes
-rw-r--r--meta-rcar-gen3-adas/recipes-bsp/iio-utils/iio-utils_%.bb31
3 files changed, 32 insertions, 0 deletions
diff --git a/meta-rcar-gen3-adas/conf/layer.conf b/meta-rcar-gen3-adas/conf/layer.conf
index 3c049cf..78517de 100644
--- a/meta-rcar-gen3-adas/conf/layer.conf
+++ b/meta-rcar-gen3-adas/conf/layer.conf
@@ -38,6 +38,7 @@ IMAGE_INSTALL_append_rcar-gen3 = " \
can-utils libsocketcan \
rsync \
mm-init \
+ iio-utils \
"
DISTRO_FEATURES_remove="x11"
diff --git a/meta-rcar-gen3-adas/recipes-bsp/iio-utils/files/iio-utils.tar.gz b/meta-rcar-gen3-adas/recipes-bsp/iio-utils/files/iio-utils.tar.gz
new file mode 100644
index 0000000..1282552
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/iio-utils/files/iio-utils.tar.gz
Binary files differ
diff --git a/meta-rcar-gen3-adas/recipes-bsp/iio-utils/iio-utils_%.bb b/meta-rcar-gen3-adas/recipes-bsp/iio-utils/iio-utils_%.bb
new file mode 100644
index 0000000..e84668c
--- /dev/null
+++ b/meta-rcar-gen3-adas/recipes-bsp/iio-utils/iio-utils_%.bb
@@ -0,0 +1,31 @@
+SUMMARY = "IIO Utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=574295575bba94ba7980d611516fe3d2"
+
+DEPENDS = "virtual/kernel"
+
+export KERNELDIR = "${STAGING_KERNEL_DIR}"
+
+S = "${WORKDIR}/iio-utils"
+
+SRC_URI = " \
+ file://iio-utils.tar.gz \
+"
+
+do_compile() {
+ cd ${S}
+ make all || die
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 755 ${S}/iio_event_monitor ${D}${bindir}
+ install -m 755 ${S}/lsiio ${D}${bindir}
+ install -m 755 ${S}/iio_generic_buffer ${D}${bindir}
+}
+
+FILES_${PN} = " \
+ ${bindir}/iio_event_monitor \
+ ${bindir}/lsiio \
+ ${bindir}/iio_generic_buffer \
+"