8cc3267384
Libiio is a library to ease the development of software interfacing Linux Industrial I/O (IIO) devices. http://wiki.analog.com/resources/tools-software/linux-software/libiio [Thomas: - Remove changelog from the commit log. - Rename init script to S99iiod instead of S99iiod.sh - Remove "status" command from init script, and implement "restart" instead. - Add dependency on thread support in toolchain. - Fixup indentation in the .mk file. - Fixup wrapping in the Config.in help text.] Signed-off-by: Paul Cercueil <paul.cercueil@analog.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# libiio
|
|
#
|
|
################################################################################
|
|
|
|
LIBIIO_VERSION = v0.3
|
|
LIBIIO_SITE = $(call github,analogdevicesinc,libiio,$(LIBIIO_VERSION))
|
|
LIBIIO_INSTALL_STAGING = YES
|
|
LIBIIO_LICENSE = LGPLv2.1+
|
|
LIBIIO_LICENSE_FILES = COPYING
|
|
|
|
LIBIIO_CONF_OPTS = -DENABLE_IPV6=$(if $(BR2_INET_IPV6),ON,OFF) \
|
|
-DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
|
|
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),y)
|
|
LIBIIO_DEPENDENCIES += libxml2
|
|
LIBIIO_CONF_OPTS += -DWITH_NETWORK_BACKEND=ON
|
|
else
|
|
LIBIIO_CONF_OPTS += -DWITH_NETWORK_BACKEND=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIIO_IIOD),y)
|
|
LIBIIO_DEPENDENCIES += host-flex host-bison
|
|
LIBIIO_CONF_OPTS += -DWITH_IIOD=ON
|
|
else
|
|
LIBIIO_CONF_OPTS += -DWITH_IIOD=OFF
|
|
endif
|
|
|
|
# Avahi support in libiio requires avahi-client, which needs avahi-daemon
|
|
ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON),yy)
|
|
LIBIIO_DEPENDENCIES += avahi
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIIO_IIOD),y)
|
|
define LIBIIO_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/libiio/S99iiod \
|
|
$(TARGET_DIR)/etc/init.d/S99iiod
|
|
endef
|
|
define LIBIIO_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -d $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
$(INSTALL) -D -m 0644 $(@D)/debian/iiod.service \
|
|
$(TARGET_DIR)/lib/systemd/system/iiod.service
|
|
ln -fs /lib/systemd/system/iiod.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/iiod.service
|
|
endef
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|