Skip to content

Commit

Permalink
package/libiio: Update to the latest git HEAD and add HWMON support
Browse files Browse the repository at this point in the history
This commit temporarily downloads from latest git HEAD,
until v0.24 is released.
This version also features HWMON support.


Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
  • Loading branch information
mhennerich committed Apr 5, 2022
1 parent ffef98e commit d8793da
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions package/libiio/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ config BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
help
Enable the local backend of the library.

config BR2_PACKAGE_LIBIIO_HWMON_SUPPORT
bool "hwmon support"
default y
help
Enable hwmon support.

config BR2_PACKAGE_LIBIIO_LOCAL_CONFIG
bool "Local context attributes"
depends on BR2_PACKAGE_LIBINI
Expand Down
1 change: 1 addition & 0 deletions package/libiio/libiio.hash
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ sha256 81c414d5c47b715d9bc9275b9fabbfd9e9483e60c035f3001b5977932049595d libiio-
sha256 03d13165cbeb83b036743cbd9a10e336c728da162714f39d13250a3d94305cac libiio-0.21.tar.gz
sha256 742adfae2c6f7f443772bf08729693855c1799d1ff6cb86d707045c81d014dbf libiio-fb64aca8adcaa607b482091b23b8edf10e5c1ad8.tar.gz
sha256 df1577740ea93dca732e7d7c04786600cb083117901dee793f3d38980754af00 libiio-0.23.tar.gz
sha256 359df9cbb200361c6bd13d4ed3400e9ecb9d483f1dc5d7a57797e7b590bc5ac3 libiio-60de6b948a04d4074d2feca46dbb64dca92ae60d-br1.tar.gz
18 changes: 12 additions & 6 deletions package/libiio/libiio.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
#
################################################################################

LIBIIO_VERSION = 0.23
LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))
#LIBIIO_VERSION = 0.24
#LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))

#LIBIIO_VERSION = fb64aca8adcaa607b482091b23b8edf10e5c1ad8
#LIBIIO_SITE = /~https://github.com/analogdevicesinc/libiio.git
#LIBIIO_SITE_METHOD = git
LIBIIO_VERSION = 60de6b948a04d4074d2feca46dbb64dca92ae60d
LIBIIO_SITE = /~https://github.com/analogdevicesinc/libiio.git
LIBIIO_SITE_METHOD = git

LIBIIO_INSTALL_STAGING = YES
LIBIIO_LICENSE = LGPL-2.1+
Expand All @@ -25,7 +25,7 @@ LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
-DWITH_DOC=OFF

# -DLIBIIO_VERSION_GIT=fb64aca \
-DLIBIIO_VERSION_GIT=60de6b948 \

ifeq ($(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),y)
LIBIIO_DEPENDENCIES += libini
Expand All @@ -52,6 +52,12 @@ else
LIBIIO_CONF_OPTS += -DWITH_SERIAL_BACKEND=OFF
endif

ifeq ($(BR2_PACKAGE_LIBIIO_HWMON_SUPPORT),y)
LIBIIO_CONF_OPTS += -DWITH_HWMON=ON
else
LIBIIO_CONF_OPTS += -DWITH_HWMON=OFF
endif

ifeq ($(BR2_PACKAGE_LIBIIO_IIOD),y)
LIBIIO_DEPENDENCIES += host-flex host-bison libaio
LIBIIO_CONF_OPTS += -DWITH_IIOD=ON -DWITH_AIO=ON
Expand Down

0 comments on commit d8793da

Please sign in to comment.