faster to compile.
A small selection of packages was tested going from:
Executed in 696.30 secs fish external
usr time 82.98 mins 395.00 micros 82.98 mins
sys time 9.02 mins 0.00 micros 9.02 mins
to:
Executed in 592.20 secs fish external
usr time 84.84 mins 361.00 micros 84.84 mins
sys time 8.85 mins 57.00 micros 8.85 mins
Tested by running make -j 12 and wiping staging/build_dir/target_x
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Since commit d18692c libxml2 is linked against iconv. Now libiio needs
access to iconv as well. Without it the build fails.
[ 32%] Building C object CMakeFiles/iio.dir/lock.c.o
[ 34%] Building C object CMakeFiles/iio.dir/iiod-client.c.o
[ 37%] Linking C shared library libiio.so
/builder/shared-workdir/build/sdk/staging_dir/toolchain-aarch64_generic_gcc-8.4.0_musl/bin/../lib/gcc/aarch64-openwrt-linux-musl/8.4.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
It seems to be an upstream bug which prevents linking when XML backend
is not selected:
../libiio.so.0.21: undefined reference to `encode_xml_ndup'
Until this is clarified with upstream, prevent OpenWrt users from
deselecting the XML backend. This increases the footprint of this
package, but renders it usable again.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
While at it making it as well kernel 5.4 compatible by backporting
upstream patch which synchronizes channel types and modifier lists in
the headers.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Provide configuration items to select individual backends. This
also allows to fine-tune the package dependencies.
In order to address #5637, we make this dep unconditionally
until upstream allow to opt-in/opt-out libavahi support.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
- remove upstreamed patch
- remove dependency to libavahi-common which does not exist,
seems that I have confused library name vs package name (fixes#5480)
(- only compile tested at the moment)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
On buildbots, the building directory seems to be not a subdir of
a git repo, so a variable expands into an empty string which in turn
results in a syntax error:
--snip--
-- Looking for in6addr_any - found
-- Found Git: /data/bowl-builder/arm_cortex-a5/build/sdk/staging_dir/host/bin/git (found version "2.1.4")
fatal: Not a git repository (or any parent up to mount point /data)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at CMakeLists.txt:114 (if):
if given arguments:
"STREQUAL" "/data/bowl-builder/arm_cortex-a5/build/sdk/build_dir/target-arm_cortex-a5_musl_eabi/libiio-0.11"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
--snap--
The patch quotes the if arguments and thus fixes the build.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
At the moment, the description for libiio is hidden by the short one, which
is intended for iiod. Fix this by removing the redefinition.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
While at, add a missing word in the description of the -utils package.
(Only compile tested at the moment for mxs platform.)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
libiio is a library for interfacing with Linux's Industrial Input/Output (IIO)
subsystem. The Linux IIO subsystem is intended to provide support for devices
that in some sense are analog to digital or digital to analog converters.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>