[Buildroot] [PATCH v2] Add libmodbus package

Subsystems: the rest

2 messages, 2 authors, 2011-10-28 · open the first message on its own page

[Buildroot] [PATCH v2] Add libmodbus package

From: julien.boibessot at free.fr <hidden>
Date: 2011-10-19 10:35:56

From: Julien Boibessot <redacted>


Signed-off-by: Julien Boibessot <redacted>
---
 Changes since v1:
  - Took Yegor Yefremov remarks about "call AUTOTARGETS' into account.

 Based on previous work of Marek Belisko and comments of Thomas Petazzoni.

 package/Config.in              |    1 +
 package/libmodbus/Config.in    |    8 ++++++++
 package/libmodbus/libmodbus.mk |   11 +++++++++++
 3 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 package/libmodbus/Config.in
 create mode 100644 package/libmodbus/libmodbus.mk
diff --git a/package/Config.in b/package/Config.in
index 3b2769d..c4a5ee5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -332,6 +332,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 0000000..ccf1190
--- /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 0000000..ab134fd
--- /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))
-- 
1.7.4.1

[Buildroot] [PATCH v2] Add libmodbus package

From: Peter Korsgaard <hidden>
Date: 2011-10-28 12:27:49

quoted
quoted
quoted
quoted
"julien" == julien boibessot [off-list ref] writes:
 julien> From: Julien Boibessot [off-list ref]

Committed, thanks.

-- 
Bye, Peter Korsgaard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help