initial buildroot for linux 5.15
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
From 85bf9cd32138539252ed01c355cf766612cf47c9 Mon Sep 17 00:00:00 2001
|
||||
From: Paul Cercueil <paul@crapouillou.net>
|
||||
Date: Thu, 2 Sep 2021 11:04:21 +0100
|
||||
Subject: [PATCH] C#: public fields with getters/setters cannot be marked
|
||||
readonly
|
||||
|
||||
MSVC would fail with the following error:
|
||||
error CS0106: The modifier 'readonly' is not valid for this item
|
||||
|
||||
Reported-by: Raluca Chis <raluca.chis@analog.com>
|
||||
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/analogdevicesinc/libiio/commit/85bf9cd32138539252ed01c355cf766612cf47c9]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
bindings/csharp/Device.cs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bindings/csharp/Device.cs b/bindings/csharp/Device.cs
|
||||
index 96214243f..6c8c8f4f3 100644
|
||||
--- a/bindings/csharp/Device.cs
|
||||
+++ b/bindings/csharp/Device.cs
|
||||
@@ -208,7 +208,7 @@ public override void write(string str)
|
||||
public readonly string name;
|
||||
|
||||
/// <summary>The label of this device.</summary>
|
||||
- public readonly string label { get; private set; }
|
||||
+ public string label { get; private set; }
|
||||
|
||||
/// <summary>A <c>list</c> of all the attributes that this device has.</summary>
|
||||
public readonly List<Attr> attrs;
|
||||
@@ -0,0 +1,98 @@
|
||||
config BR2_PACKAGE_LIBIIO
|
||||
bool "libiio"
|
||||
select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND if !BR2_PACKAGE_LIBIIO_XML_BACKEND
|
||||
help
|
||||
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
|
||||
|
||||
if BR2_PACKAGE_LIBIIO
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
|
||||
bool "Local backend"
|
||||
default y
|
||||
help
|
||||
Enable the local backend of the library.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_XML_BACKEND
|
||||
bool "XML backend"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBXML2
|
||||
help
|
||||
Enable the XML backend of the library.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_NETWORK_BACKEND
|
||||
bool "Network backend"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBIIO_XML_BACKEND
|
||||
help
|
||||
Enable the network backend of the library.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_USB_BACKEND
|
||||
bool "USB backend"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # from libusb
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
|
||||
select BR2_PACKAGE_LIBIIO_XML_BACKEND
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
help
|
||||
Enable the USB backend of the library.
|
||||
|
||||
comment "The USB backend needs a toolchain w/ threads, gcc >= 4.9"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_SERIAL_BACKEND
|
||||
bool "Serial backend"
|
||||
default y
|
||||
select BR2_PACKAGE_LIBIIO_XML_BACKEND
|
||||
select BR2_PACKAGE_LIBSERIALPORT
|
||||
help
|
||||
Enable the serial backend of the library.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_IIOD
|
||||
bool "IIO Daemon"
|
||||
default y
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBIIO_LOCAL_BACKEND
|
||||
help
|
||||
Install the IIO Daemon.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_IIOD_USBD
|
||||
bool "USB support in the IIO Daemon (FunctionFS)"
|
||||
depends on BR2_PACKAGE_LIBIIO_IIOD
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18 # usb_functionfs_descs_head_v2
|
||||
select BR2_PACKAGE_LIBAIO
|
||||
help
|
||||
Add support for USB through FunctionFS with IIOD.
|
||||
|
||||
comment "USB support in the IIO Daemon requires headers >= 3.18"
|
||||
depends on BR2_PACKAGE_LIBIIO_IIOD
|
||||
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
|
||||
|
||||
comment "IIO Daemon needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_TESTS
|
||||
bool "Install test programs"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Install the test programs (iio_info, iio_genxml, iio_readdev).
|
||||
|
||||
comment "IIO test programs need a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
|
||||
bool "Install C# bindings"
|
||||
depends on BR2_PACKAGE_MONO
|
||||
help
|
||||
Install the C# bindings.
|
||||
|
||||
config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON
|
||||
bool "Install Python bindings"
|
||||
depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
|
||||
help
|
||||
Install the Python bindings.
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Server-side demuxing by default
|
||||
IIOD_OPTS=-D
|
||||
|
||||
[ -r /etc/default/iiod ] && . /etc/default/iiod
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo "Starting IIO Server Daemon"
|
||||
start-stop-daemon -S -b -q -m -p /var/run/iiod.pid -x /usr/sbin/iiod -- $IIOD_OPTS
|
||||
exit $?
|
||||
;;
|
||||
|
||||
stop)
|
||||
echo "Stopping IIO Server Daemon"
|
||||
start-stop-daemon -K -q -p /var/run/iiod.pid 2>/dev/null
|
||||
exit $?
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 df1577740ea93dca732e7d7c04786600cb083117901dee793f3d38980754af00 libiio-0.23.tar.gz
|
||||
sha256 102900208eef27b766380135906d431dba87edaa7ec6aa72e6ebd3dd67f3a97b COPYING.txt
|
||||
@@ -0,0 +1,111 @@
|
||||
################################################################################
|
||||
#
|
||||
# libiio
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBIIO_VERSION = 0.23
|
||||
LIBIIO_SITE = $(call github,analogdevicesinc,libiio,v$(LIBIIO_VERSION))
|
||||
LIBIIO_INSTALL_STAGING = YES
|
||||
LIBIIO_LICENSE = LGPL-2.1+
|
||||
LIBIIO_LICENSE_FILES = COPYING.txt
|
||||
|
||||
LIBIIO_CONF_OPTS = -DENABLE_IPV6=ON \
|
||||
-DWITH_LOCAL_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_LOCAL_BACKEND),ON,OFF) \
|
||||
-DWITH_NETWORK_BACKEND=$(if $(BR2_PACKAGE_LIBIIO_NETWORK_BACKEND),ON,OFF) \
|
||||
-DINSTALL_UDEV_RULE=$(if $(BR2_PACKAGE_HAS_UDEV),ON,OFF) \
|
||||
-DWITH_TESTS=$(if $(BR2_PACKAGE_LIBIIO_TESTS),ON,OFF) \
|
||||
-DWITH_DOC=OFF
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
LIBIIO_CONF_OPTS += -DNO_THREADS=OFF
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DNO_THREADS=ON
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_XML_BACKEND),y)
|
||||
LIBIIO_DEPENDENCIES += libxml2
|
||||
LIBIIO_CONF_OPTS += -DWITH_XML_BACKEND=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DWITH_XML_BACKEND=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_USB_BACKEND),y)
|
||||
LIBIIO_DEPENDENCIES += libusb
|
||||
LIBIIO_CONF_OPTS += -DWITH_USB_BACKEND=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DWITH_USB_BACKEND=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_SERIAL_BACKEND),y)
|
||||
LIBIIO_DEPENDENCIES += libserialport
|
||||
LIBIIO_CONF_OPTS += -DWITH_SERIAL_BACKEND=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DWITH_SERIAL_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
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_IIOD_USBD),y)
|
||||
LIBIIO_DEPENDENCIES += libaio
|
||||
LIBIIO_CONF_OPTS += -DWITH_IIOD_USBD=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DWITH_IIOD_USBD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBAIO),y)
|
||||
LIBIIO_DEPENDENCIES += libaio
|
||||
LIBIIO_CONF_OPTS += -DWITH_AIO=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DWITH_AIO=OFF
|
||||
endif
|
||||
|
||||
# Avahi support in libiio requires avahi-client, which needs avahi-daemon and dbus
|
||||
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
||||
LIBIIO_DEPENDENCIES += avahi
|
||||
LIBIIO_CONF_OPTS += -DHAVE_DNS_SD=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DHAVE_DNS_SD=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
|
||||
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
||||
LIBIIO_DEPENDENCIES += host-python-setuptools python
|
||||
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
||||
LIBIIO_DEPENDENCIES += host-python3-setuptools python3
|
||||
endif
|
||||
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP),y)
|
||||
define LIBIIO_INSTALL_CSHARP_BINDINGS_TO_TARGET
|
||||
$(HOST_DIR)/bin/gacutil -root $(TARGET_DIR)/usr/lib -i \
|
||||
$(TARGET_DIR)/usr/lib/cli/libiio-sharp-$(LIBIIO_VERSION)/libiio-sharp.dll
|
||||
endef
|
||||
define LIBIIO_INSTALL_CSHARP_BINDINGS_TO_STAGING
|
||||
$(HOST_DIR)/bin/gacutil -root $(STAGING_DIR)/usr/lib -i \
|
||||
$(STAGING_DIR)/usr/lib/cli/libiio-sharp-$(LIBIIO_VERSION)/libiio-sharp.dll
|
||||
endef
|
||||
LIBIIO_POST_INSTALL_TARGET_HOOKS += LIBIIO_INSTALL_CSHARP_BINDINGS_TO_TARGET
|
||||
LIBIIO_POST_INSTALL_STAGING_HOOKS += LIBIIO_INSTALL_CSHARP_BINDINGS_TO_STAGING
|
||||
LIBIIO_DEPENDENCIES += mono
|
||||
LIBIIO_CONF_OPTS += -DCSHARP_BINDINGS=ON
|
||||
else
|
||||
LIBIIO_CONF_OPTS += -DCSHARP_BINDINGS=OFF
|
||||
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
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user