BigW Consortium Gitlab

Commit 9135c470 by David Frey

Added shared component for libiio

parent 301f888a
......@@ -50,3 +50,6 @@
[submodule "linux_kernel_modules/bmi088/BMI08x-Sensor-API"]
path = linux_kernel_modules/bmi088/BMI08x-Sensor-API
url = https://github.com/BoschSensortec/BMI08x-Sensor-API.git
[submodule "components/libiioComponent/libiio"]
path = components/libiioComponent/libiio
url = https://github.com/mangOH/libiio.git
externalBuild:
{
"cmake -DWITH_IIOD=OFF -DWITH_USB_BACKEND=OFF -DWITH_SERIAL_BACKEND=OFF -DWITH_NETWORK_BACKEND=OFF -DWITH_TESTS=OFF ${CURDIR}/libiio"
"cmake --build ."
"mkdir -p ${MANGOH_ROOT}/build/${MANGOH_BOARD}_${LEGATO_TARGET}/libs"
/*
* This is a bit gross. We need to bundle the files from a known location, but there's currently
* no way to know the name of the directory that we just created the .so files in.
*/
"cp -a libiio.so* ${MANGOH_ROOT}/build/${MANGOH_BOARD}_${LEGATO_TARGET}/libs/"
}
bundles:
{
file:
{
[rx] ${MANGOH_ROOT}/build/${MANGOH_BOARD}_${LEGATO_TARGET}/libs/libiio.so /usr/lib/
[rx] ${MANGOH_ROOT}/build/${MANGOH_BOARD}_${LEGATO_TARGET}/libs/libiio.so.0 /usr/lib/
[rx] ${MANGOH_ROOT}/build/${MANGOH_BOARD}_${LEGATO_TARGET}/libs/libiio.so.0.15 /usr/lib/
}
}
# libiio Legato Component
[libiio](https://wiki.analog.com/resources/tools-software/linux-software/libiio) is a library for
interacting with iio devices. This repository provides a Legato component which builds and bundles
libiio. A [mangOH fork](https://github.com/mangOH/libiio) of the [libiio git repository](
https://github.com/analogdevicesinc/libiio) is included as a git submodule.
To use this component, the Component.cdef of the component wishing to use libiio should be modified
as follows:
```
requires:
{
component:
{
${MANGOH_ROOT}/components/libiioComponent
}
lib:
{
libiio.so
libiio.so.0
libiio.so.0.15
}
}
cflags:
{
-I${MANGOH_ROOT}/components/libiioComponent/libiio
}
```
Subproject commit 58136469a7aef5634a1c249e1bb983d086a8adef
......@@ -91,6 +91,7 @@ componentSearch:
${CURDIR}/apps/RedSensorToCloud
${CURDIR}/apps/LocationTriangulation
${CURDIR}/apps/MqttClient
${CURDIR}/components
}
kernelModules:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment