summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/Config.in1
-rw-r--r--package/libmodbus/Config.in8
-rw-r--r--package/libmodbus/libmodbus.mk11
3 files changed, 20 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index c6ca350bb..33dd59e3b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -333,6 +333,7 @@ source "package/libidn/Config.in"
source "package/libmicrohttpd/Config.in"
source "package/neon/Config.in"
source "package/libmnl/Config.in"
+source "package/libmodbus/Config.in"
source "package/libnl/Config.in"
source "package/libpcap/Config.in"
source "package/libosip2/Config.in"
diff --git a/package/libmodbus/Config.in b/package/libmodbus/Config.in
new file mode 100644
index 000000000..ccf11906f
--- /dev/null
+++ b/package/libmodbus/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBMODBUS
+ bool "libmodbus"
+ help
+ libmodbus is a free software library to send/receive data according
+ to the Modbus protocol. This library is written in C and supports
+ RTU (serial) and TCP (Ethernet) communications.
+
+ http://libmodbus.org
diff --git a/package/libmodbus/libmodbus.mk b/package/libmodbus/libmodbus.mk
new file mode 100644
index 000000000..ab134fdb4
--- /dev/null
+++ b/package/libmodbus/libmodbus.mk
@@ -0,0 +1,11 @@
+#############################################################
+#
+# libmodbus
+#
+#############################################################
+LIBMODBUS_VERSION = 3.0.1
+LIBMODBUS_SITE = http://github.com/downloads/stephane/libmodbus
+LIBMODBUS_SOURCE = libmodbus-$(LIBMODBUS_VERSION).tar.gz
+LIBMODBUS_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS))