diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2018-06-20 11:35:02 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2019-07-09 16:23:11 +0200 |
commit | dbacf5e033b80fdb6027c2e563145758723f9850 (patch) | |
tree | 551752a36020267553871c38afc03a7df54b51e2 | |
parent | 3556610e5b6e218e0fe9764edacc57231d651e95 (diff) | |
download | DistroKit-dbacf5e033b80fdb6027c2e563145758723f9850.tar.gz DistroKit-dbacf5e033b80fdb6027c2e563145758723f9850.tar.xz |
open62541: add industrial communication package
This is a first experimental packet to support the IEC62541 (OPC UA)
protocol in ptxdist.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | rules/open62541.in | 9 | ||||
-rw-r--r-- | rules/open62541.make | 60 |
2 files changed, 69 insertions, 0 deletions
diff --git a/rules/open62541.in b/rules/open62541.in new file mode 100644 index 0000000..ea2f02b --- /dev/null +++ b/rules/open62541.in @@ -0,0 +1,9 @@ +## SECTION=networking + +config OPEN62541 + tristate + prompt "open62541" + select HOST_CMAKE + help + The open62541 project is an open source implementation of the OPC UA + communication infrastructure which is used in industrial control. diff --git a/rules/open62541.make b/rules/open62541.make new file mode 100644 index 0000000..ee6f1b0 --- /dev/null +++ b/rules/open62541.make @@ -0,0 +1,60 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Robert Schwebel <r.schwebel@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_OPEN62541) += open62541 + +# +# Paths and names +# +OPEN62541_VERSION := 0.3-rc2 +OPEN62541_MD5 := 75a19560b399a5a40e7d981b14bf82ef +OPEN62541 := open62541-$(OPEN62541_VERSION) +OPEN62541_SUFFIX := tar.gz +OPEN62541_URL := https://github.com/open62541/open62541/archive/$(OPEN62541_VERSION).$(OPEN62541_SUFFIX) +OPEN62541_SOURCE := $(SRCDIR)/$(OPEN62541).$(OPEN62541_SUFFIX) +OPEN62541_DIR := $(BUILDDIR)/$(OPEN62541) +OPEN62541_LICENSE := MPL-2.0 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +OPEN62541_CONF_TOOL := cmake +OPEN62541_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -DUA_BUILD_EXAMPLES=ON + +# FIXME: add lots of additional configure switches + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/open62541.targetinstall: + @$(call targetinfo) + + @$(call install_init, open62541) + @$(call install_fixup, open62541,PRIORITY,optional) + @$(call install_fixup, open62541,SECTION,base) + @$(call install_fixup, open62541,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>") + @$(call install_fixup, open62541,DESCRIPTION,missing) + + @$(call install_copy, open62541, 0, 0, 0755, \ + $(BUILDDIR)/$(OPEN62541)-build/bin/examples/client, \ + /usr/bin/open62541-client) + + @$(call install_finish, open62541) + + @$(call touch) + +# vim: syntax=make |