From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.lab.pengutronix.de) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j2aQJ-0005LC-Os for ptxdist@pengutronix.de; Fri, 14 Feb 2020 13:50:23 +0100 Received: from mol by dude02.lab.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1j2aQJ-0006yU-Gl for ptxdist@pengutronix.de; Fri, 14 Feb 2020 13:50:23 +0100 Date: Fri, 14 Feb 2020 13:50:23 +0100 From: Michael Olbrich Message-ID: <20200214125023.GG7958@pengutronix.de> References: <20200205104241.19603-1-u.oelmann@pengutronix.de> <20200205104241.19603-3-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200205104241.19603-3-u.oelmann@pengutronix.de> Subject: Re: [ptxdist] [PATCH v5 3/3] open62541: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de On Wed, Feb 05, 2020 at 11:42:41AM +0100, Ulrich =D6lmann wrote: > From: Bj=F6rn Esser > = > The open62541 project is an open source implementation of the OPC UA > communication infrastructure which is used in industrial control. > = > Signed-off-by: Bj=F6rn Esser > [uol: adjusted commit message] > Signed-off-by: Ulrich =D6lmann > --- > v2 --> v3: adjusted commit message > = > ...-UA_NODESET_DIR-to-be-custom-defined.patch | 224 ++++++++++++++++++ > patches/open62541-1.0/series | 4 + > rules/host-open62541.in | 6 + > rules/host-open62541.make | 50 ++++ > rules/open62541.in | 13 + > rules/open62541.make | 140 +++++++++++ > 6 files changed, 437 insertions(+) > create mode 100644 patches/open62541-1.0/0001-CMake-Allow-UA_NODESET_DIR= -to-be-custom-defined.patch > create mode 100644 patches/open62541-1.0/series > create mode 100644 rules/host-open62541.in > create mode 100644 rules/host-open62541.make > create mode 100644 rules/open62541.in > create mode 100644 rules/open62541.make > = > diff --git a/patches/open62541-1.0/0001-CMake-Allow-UA_NODESET_DIR-to-be-= custom-defined.patch b/patches/open62541-1.0/0001-CMake-Allow-UA_NODESET_DI= R-to-be-custom-defined.patch > new file mode 100644 > index 000000000000..0dfd003518ed > --- /dev/null > +++ b/patches/open62541-1.0/0001-CMake-Allow-UA_NODESET_DIR-to-be-custom-= defined.patch > @@ -0,0 +1,224 @@ > +From: =3D?UTF-8?q?Bj=3DC3=3DB6rn=3D20Esser?=3D > +Date: Mon, 2 Dec 2019 14:38:38 +0100 > +Subject: [PATCH] CMake: Allow UA_NODESET_DIR to be custom defined. > +MIME-Version: 1.0 > +Content-Type: text/plain; charset=3DUTF-8 > +Content-Transfer-Encoding: 8bit > + > +This makes it easier for developers to keep all ua-nodesets XML > +definitions in a common location. > + > +Backported from: https://github.com/open62541/open62541/pull/3310 > + > +Signed-off-by: Bj=F6rn Esser > +--- > + CMakeLists.txt | 14 +++++++++----- > + doc/nodeset_compiler.rst | 22 +++++++++++----------- > + examples/CMakeLists.txt | 4 ---- > + examples/nodeset/CMakeLists.txt | 6 +++--- > + tests/nodeset-compiler/CMakeLists.txt | 14 +++++++------- > + tools/cmake/macros_public.cmake | 2 +- > + 6 files changed, 31 insertions(+), 31 deletions(-) > + > +diff --git a/CMakeLists.txt b/CMakeLists.txt > +index d426e1da66fe..fbbafd8f2791 100644 > +--- a/CMakeLists.txt > ++++ b/CMakeLists.txt > +@@ -15,7 +15,6 @@ include(GNUInstallDirs) > + = > + # Set when installed via make install > + set(open62541_TOOLS_DIR ${PROJECT_SOURCE_DIR}/tools) > +-set(open62541_NODESET_DIR ${PROJECT_SOURCE_DIR}/deps/ua-nodeset) > + = > + include(macros_internal) > + include(macros_public) > +@@ -134,6 +133,11 @@ option(UA_ENABLE_ENCRYPTION "Enable encryption supp= ort (uses mbedTLS)" OFF) > + option(UA_ENABLE_MICRO_EMB_DEV_PROFILE "Builds CTT Compliant Micro Embe= dded Device Server Profile" OFF) > + option(BUILD_SHARED_LIBS "Enable building of shared libraries (dll/so)"= OFF) > + = > ++if(NOT UA_NODESET_DIR) > ++ set(UA_NODESET_DIR ${PROJECT_SOURCE_DIR}/deps/ua-nodeset) > ++endif() > ++set(open62541_NODESET_DIR ${UA_NODESET_DIR}) > ++ > + # Namespace Zero > + set(UA_NAMESPACE_ZERO "REDUCED" CACHE STRING "Completeness of the gener= ated namespace zero (minimal/reduced/full)") > + SET_PROPERTY(CACHE UA_NAMESPACE_ZERO PROPERTY STRINGS "MINIMAL" "REDUCE= D" "FULL") > +@@ -770,7 +774,7 @@ set(UA_FILE_NODESETS) > + = > + if(UA_NAMESPACE_ZERO STREQUAL "FULL") > + if(NOT UA_FILE_NS0) > +- set(UA_FILE_NS0 ${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schema/Op= c.Ua.NodeSet2.xml) > ++ set(UA_FILE_NS0 ${UA_NODESET_DIR}/Schema/Opc.Ua.NodeSet2.xml) > + endif() > + set(UA_FILE_NODESETS "${UA_FILE_NS0}") > + = > +@@ -779,9 +783,9 @@ if(UA_NAMESPACE_ZERO STREQUAL "FULL") > + endif() > + = > + = > +- set(UA_FILE_NODEIDS ${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schema/No= deIds.csv) > +- set(UA_FILE_STATUSCODES ${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schem= a/StatusCode.csv) > +- set(UA_FILE_TYPES_BSD ${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schema/= Opc.Ua.Types.bsd) > ++ set(UA_FILE_NODEIDS ${UA_NODESET_DIR}/Schema/NodeIds.csv) > ++ set(UA_FILE_STATUSCODES ${UA_NODESET_DIR}/Schema/StatusCode.csv) > ++ set(UA_FILE_TYPES_BSD ${UA_NODESET_DIR}/Schema/Opc.Ua.Types.bsd) > + else() > + if(NOT UA_FILE_NS0) > + set(UA_FILE_NS0 ${PROJECT_SOURCE_DIR}/tools/schema/Opc.Ua.NodeS= et2.Minimal.xml) > +diff --git a/doc/nodeset_compiler.rst b/doc/nodeset_compiler.rst > +index dd752ccd70a9..34fc8f800480 100644 > +--- a/doc/nodeset_compiler.rst > ++++ b/doc/nodeset_compiler.rst > +@@ -292,17 +292,17 @@ Here are some examples for the ``DI`` and ``PLCOpe= n`` nodesets:: > + # Generate types and namespace for DI > + ua_generate_nodeset_and_datatypes( > + NAME "di" > +- FILE_CSV "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/OpcUaDiModel= .csv" > +- FILE_BSD "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.Ty= pes.bsd" > ++ FILE_CSV "${UA_NODESET_DIR}/DI/OpcUaDiModel.csv" > ++ FILE_BSD "${UA_NODESET_DIR}/DI/Opc.Ua.Di.Types.bsd" > + NAMESPACE_IDX 2 > +- FILE_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.Nod= eSet2.xml" > ++ FILE_NS "${UA_NODESET_DIR}/DI/Opc.Ua.Di.NodeSet2.xml" > + ) > + = > + # generate PLCopen namespace which is using DI > + ua_generate_nodeset_and_datatypes( > + NAME "plc" > + # PLCopen does not define custom types. Only generate the nodes= et > +- FILE_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/PLCopen/Opc.Ua.P= lc.NodeSet2.xml" > ++ FILE_NS "${UA_NODESET_DIR}/PLCopen/Opc.Ua.Plc.NodeSet2.xml" > + # PLCopen depends on the di nodeset, which must be generated be= fore > + DEPENDS "di" > + ) > +@@ -403,8 +403,8 @@ This DI nodeset makes use of some additional data ty= pes in ``deps/ua-nodeset/DI/ > + NAME "ua_types_di" > + TARGET_SUFFIX "types-di" > + NAMESPACE_IDX 2 > +- FILE_CSV "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/OpcUaDiModel= .csv" > +- FILES_BSD "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.T= ypes.bsd" > ++ FILE_CSV "${UA_NODESET_DIR}/DI/OpcUaDiModel.csv" > ++ FILES_BSD "${UA_NODESET_DIR}/DI/Opc.Ua.Di.Types.bsd" > + ) > + = > + The ``NAMESPACE_IDX`` parameter indicates the namespace index of the ge= nerated node IDs for the type definitions. Currently we need to rely that t= he namespace is also added at this position in the final server. There is n= o automatic inferring yet (pull requests are warmly welcome). > +@@ -414,11 +414,11 @@ Now you can compile the DI nodeset XML using the f= ollowing command:: > + = > + ua_generate_nodeset( > + NAME "di" > +- FILE "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.NodeSe= t2.xml" > ++ FILE "${UA_NODESET_DIR}/DI/Opc.Ua.Di.NodeSet2.xml" > + TYPES_ARRAY "UA_TYPES_DI" > + INTERNAL > + DEPENDS_TYPES "UA_TYPES" > +- DEPENDS_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schema/Opc= .Ua.NodeSet2.xml" > ++ DEPENDS_NS "${UA_NODESET_DIR}/Schema/Opc.Ua.NodeSet2.xml" > + DEPENDS_TARGET "open62541-generator-types-di" > + ) > + = > +@@ -429,13 +429,13 @@ Next we can generate the PLCopen nodeset. Since it= doesn't require any additiona > + = > + ua_generate_nodeset( > + NAME "plc" > +- FILE "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/PLCopen/Opc.Ua.Plc.= NodeSet2.xml" > ++ FILE "${UA_NODESET_DIR}/PLCopen/Opc.Ua.Plc.NodeSet2.xml" > + INTERNAL > + DEPENDS_TYPES > + "UA_TYPES" "UA_TYPES_DI" > + DEPENDS_NS > +- "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Schema/Opc.Ua.NodeSe= t2.xml" > +- "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.NodeSet= 2.xml" > ++ "${UA_NODESET_DIR}/Schema/Opc.Ua.NodeSet2.xml" > ++ "${UA_NODESET_DIR}/DI/Opc.Ua.Di.NodeSet2.xml" > + DEPENDS_TARGET "open62541-generator-ns-di" > + ) > + = > +diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt > +index d46f853ecde6..353a0fbf992d 100644 > +--- a/examples/CMakeLists.txt > ++++ b/examples/CMakeLists.txt > +@@ -26,10 +26,6 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) > + set(UA_TOOLS_DIR ${open62541_TOOLS_DIR}) > + endif() > + = > +- if(NOT UA_NODESET_DIR) > +- set(UA_NODESET_DIR ${open62541_NODESET_DIR}) > +- endif() > +- > + function(assign_source_group) > + # define empty function. We don't need it in standalone > + endfunction(assign_source_group) > +diff --git a/examples/nodeset/CMakeLists.txt b/examples/nodeset/CMakeLis= ts.txt > +index c4b612d911d5..0a5fe38ef229 100644 > +--- a/examples/nodeset/CMakeLists.txt > ++++ b/examples/nodeset/CMakeLists.txt > +@@ -63,10 +63,10 @@ endif() > + ################### > + = > + if(NOT CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) > +- set(FILE_CSV_DIRPREFIX ${CMAKE_SOURCE_DIR}/deps/ua-nodeset) > +- set(FILE_BSD_PLCOPEN_DIRPREFIX ${CMAKE_SOURCE_DIR}/deps/ua-nodeset) > ++ set(FILE_CSV_DIRPREFIX ${UA_NODESET_DIR}) > ++ set(FILE_BSD_PLCOPEN_DIRPREFIX ${UA_NODESET_DIR}) > + set(FILE_BSD_POWERLINK_DIRPREFIX ${PROJECT_SOURCE_DIR}/nodeset) > +- set(FILE_NS_DIRPREFIX ${CMAKE_SOURCE_DIR}/deps/ua-nodeset) > ++ set(FILE_NS_DIRPREFIX ${UA_NODESET_DIR}) > + else() > + set(FILE_CSV_DIRPREFIX ${UA_NODESET_DIR}) > + set(FILE_BSD_PLCOPEN_DIRPREFIX ${UA_NODESET_DIR}) > +diff --git a/tests/nodeset-compiler/CMakeLists.txt b/tests/nodeset-compi= ler/CMakeLists.txt > +index 153759aa16c6..2b68e3926499 100644 > +--- a/tests/nodeset-compiler/CMakeLists.txt > ++++ b/tests/nodeset-compiler/CMakeLists.txt > +@@ -11,22 +11,22 @@ if(UA_NAMESPACE_ZERO STREQUAL "FULL") > + # Generate types and namespace for DI > + ua_generate_nodeset_and_datatypes( > + NAME "tests-di" > +- FILE_CSV "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/OpcUaDiModel= .csv" > +- FILE_BSD "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.Ty= pes.bsd" > ++ FILE_CSV "${UA_NODESET_DIR}/DI/OpcUaDiModel.csv" > ++ FILE_BSD "${UA_NODESET_DIR}/DI/Opc.Ua.Di.Types.bsd" > + NAMESPACE_IDX 2 > + OUTPUT_DIR "${GENERATE_OUTPUT_DIR}" > +- FILE_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/DI/Opc.Ua.Di.Nod= eSet2.xml" > ++ FILE_NS "${UA_NODESET_DIR}/DI/Opc.Ua.Di.NodeSet2.xml" > + INTERNAL > + ) > + = > + # Generate types and namespace for ADI > + ua_generate_nodeset_and_datatypes( > + NAME "tests-adi" > +- FILE_CSV "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/ADI/OpcUaAdiMod= el.csv" > +- FILE_BSD "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/ADI/Opc.Ua.Adi.= Types.bsd" > ++ FILE_CSV "${UA_NODESET_DIR}/ADI/OpcUaAdiModel.csv" > ++ FILE_BSD "${UA_NODESET_DIR}/ADI/Opc.Ua.Adi.Types.bsd" > + NAMESPACE_IDX 3 > + OUTPUT_DIR "${GENERATE_OUTPUT_DIR}" > +- FILE_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/ADI/Opc.Ua.Adi.N= odeSet2.xml" > ++ FILE_NS "${UA_NODESET_DIR}/ADI/Opc.Ua.Adi.NodeSet2.xml" > + DEPENDS "tests-di" > + INTERNAL > + ) > +@@ -46,7 +46,7 @@ if(UA_NAMESPACE_ZERO STREQUAL "FULL") > + ua_generate_nodeset_and_datatypes( > + NAME "tests-plc" > + # PLCopen does not define custom types. Only generate the nodes= et > +- FILE_NS "${PROJECT_SOURCE_DIR}/deps/ua-nodeset/PLCopen/Opc.Ua.P= lc.NodeSet2.xml" > ++ FILE_NS "${UA_NODESET_DIR}/PLCopen/Opc.Ua.Plc.NodeSet2.xml" > + # PLCopen depends on the di nodeset, which must be generated be= fore > + OUTPUT_DIR "${GENERATE_OUTPUT_DIR}" > + DEPENDS "tests-di" > +diff --git a/tools/cmake/macros_public.cmake b/tools/cmake/macros_public= .cmake > +index a6a36f3d1090..751b679a37d8 100644 > +--- a/tools/cmake/macros_public.cmake > ++++ b/tools/cmake/macros_public.cmake > +@@ -100,7 +100,7 @@ endfunction() > + # passed which will all combined to one resulting cod= e. > + # IMPORT_BSD Combination of types array and path to the .bsd fil= e containing additional type definitions referenced by > + # the FILES_BSD files. The value is separated with a = hash sign, i.e. > +-# 'UA_TYPES#${PROJECT_SOURCE_DIR}/deps/ua-nodeset/Sch= ema/Opc.Ua.Types.bsd' > ++# 'UA_TYPES#${UA_NODESET_DIR}/Schema/Opc.Ua.Types.bsd' > + # Multiple files can be passed which will all be impo= rted. > + # [FILES_SELECTED] Optional path to a simple text file which contains= a list of types which should be included in the generation. > + # The file should contain one type per line. Multiple= files can be passed to this argument. > diff --git a/patches/open62541-1.0/series b/patches/open62541-1.0/series > new file mode 100644 > index 000000000000..248a1b603996 > --- /dev/null > +++ b/patches/open62541-1.0/series > @@ -0,0 +1,4 @@ > +# generated by git-ptx-patches > +#tag:base --start-number 1 > +0001-CMake-Allow-UA_NODESET_DIR-to-be-custom-defined.patch > +# 4a88edd1483ff7bb07a623335b407de7 - git-ptx-patches magic > diff --git a/rules/host-open62541.in b/rules/host-open62541.in > new file mode 100644 > index 000000000000..8a432080ed34 > --- /dev/null > +++ b/rules/host-open62541.in > @@ -0,0 +1,6 @@ > +## SECTION=3Dhosttools_noprompt > + > +config HOST_OPEN62541 > + tristate > + select HOST_CMAKE > + select HOST_UA_NODESET > diff --git a/rules/host-open62541.make b/rules/host-open62541.make > new file mode 100644 > index 000000000000..755ef67a380c > --- /dev/null > +++ b/rules/host-open62541.make > @@ -0,0 +1,50 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Robert Schwebel > +# Copyright (C) 2019 by Bjoern Esser > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_OPEN62541) +=3D host-open62541 > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +HOST_OPEN62541_LOGLEVEL :=3D 300 > + > +HOST_OPEN62541_CONF_TOOL :=3D cmake > +HOST_OPEN62541_CONF_OPT =3D \ > + $(CROSS_CMAKE_USR) \ > + -DBUILD_SHARED_LIBS=3DOFF \ > + -DOPEN62541_VERSION=3D"v$(HOST_OPEN62541_VERSION)" \ > + -DUA_ARCHITECTURE=3Dposix \ > + -DUA_BUILD_EXAMPLES=3DOFF \ > + -DUA_BUILD_TOOLS=3DON \ > + -DUA_BUILD_UNIT_TESTS=3DOFF \ > + -DUA_ENABLE_AMALGAMATION=3DOFF \ > + -DUA_ENABLE_COVERAGE=3DOFF \ > + -DUA_ENABLE_DISCOVERY=3DOFF \ > + -DUA_ENABLE_DISCOVERY_MULTICAST=3DOFF \ > + -DUA_ENABLE_ENCRYPTION=3DOFF \ > + -DUA_ENABLE_EXPERIMENTAL_HISTORIZING=3DOFF \ > + -DUA_ENABLE_HISTORIZING=3DOFF \ > + -DUA_ENABLE_METHODCALLS=3DOFF \ > + -DUA_ENABLE_MICRO_EMB_DEV_PROFILE=3DOFF \ > + -DUA_ENABLE_NODEMANAGEMENT=3DOFF \ > + -DUA_ENABLE_QUERY=3DOFF \ > + -DUA_ENABLE_STATIC_ANALYZER=3DOFF \ > + -DUA_ENABLE_SUBSCRIPTIONS=3DOFF \ > + -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=3DOFF \ > + -DUA_LOGLEVEL=3D$(HOST_OPEN62541_LOGLEVEL) \ > + -DUA_NAMESPACE_ZERO=3DFULL \ > + -DUA_NODESET_DIR=3D"$(PTXDIST_SYSROOT_HOST)/usr/share/ua-nodeset" > + > +# vim: syntax=3Dmake > diff --git a/rules/open62541.in b/rules/open62541.in > new file mode 100644 > index 000000000000..74ee011e2875 > --- /dev/null > +++ b/rules/open62541.in > @@ -0,0 +1,13 @@ > +## SECTION=3Dcommunication > + > +config OPEN62541 > + tristate > + prompt "open62541" > + select HOST_CMAKE > + select HOST_OPEN62541 > + select HOST_UA_NODESET > + select LIBC_PTHREAD > + select MBEDTLS > + help > + The open62541 project is an open source implementation of the = OPC UA > + communication infrastructure which is used in industrial contr= ol. > diff --git a/rules/open62541.make b/rules/open62541.make > new file mode 100644 > index 000000000000..62e030ed3752 > --- /dev/null > +++ b/rules/open62541.make > @@ -0,0 +1,140 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Robert Schwebel > +# Copyright (C) 2019 by Bjoern Esser > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditio= ns > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_OPEN62541) +=3D open62541 > + > +# > +# Paths and names > +# > +OPEN62541_VERSION :=3D 1.0 > +OPEN62541_MD5 :=3D b8e02d7310e8b48faf52efc539fa9496 > +OPEN62541 :=3D open62541-$(OPEN62541_VERSION) > +OPEN62541_SUFFIX :=3D tar.gz > +OPEN62541_URL :=3D https://github.com/open62541/open62541/archive/v$(O= PEN62541_VERSION)/$(OPEN62541).$(OPEN62541_SUFFIX) > +OPEN62541_SOURCE :=3D $(SRCDIR)/$(OPEN62541).$(OPEN62541_SUFFIX) > +OPEN62541_DIR :=3D $(BUILDDIR)/$(OPEN62541) > +OPEN62541_LICENSE :=3D MPL-2.0 > +OPEN62541_LICENSE_FILES :=3D file://LICENSE;md5=3D815ca599c9df247a0c7f6= 19bab123dad > + > +OPEN62541_MDNSD_VERSION :=3D 4bd993e0fdd06d54c8fd0b8f416cda6a8db18585 > +OPEN62541_MDNSD_MD5 :=3D 0961fc8dc253753ec8ea157104671498 > +OPEN62541_MDNSD_URL :=3D https://github.com/Pro/mdnsd/archive/$(OPEN625= 41_MDNSD_VERSION)/open62541-mdnsd-$(OPEN62541_MDNSD_VERSION).tar.gz > +OPEN62541_MDNSD_SOURCE :=3D $(SRCDIR)/open62541-mdnsd-$(OPEN62541_MDNSD= _VERSION).tar.gz The suffix deserves a separate variable. > +$(OPEN62541_MDNSD_SOURCE) :=3D OPEN62541_MDNSD > +OPEN62541_MDNSD_DIR :=3D $(OPEN62541_DIR)/deps/mdnsd > +OPEN62541_MDNSD_LICENSE :=3D BSD-3-Clause > +OPEN62541_MDNSD_LICENSE_FILES :=3D file://LICENSE;md5=3D3bb4047dc4095cd7= 336de3e2a9be94f0 > + > +# open62541-mdnsd needs the source dir. > +OPEN62541_DEVPKG :=3D NO Right now open62541-mdnsd is part of the same package, so the comment makes no sense. Michael > + > +OPEN62541_SOURCES :=3D $(OPEN62541_SOURCE) $(OPEN62541_MDNSD_SOURCE) > + > + > +# ----------------------------------------------------------------------= ------ > +# Extract > +# ----------------------------------------------------------------------= ------ > + > +$(STATEDIR)/open62541.extract: > + @$(call targetinfo) > + @$(call clean, $(OPEN62541_DIR)) > + @$(call extract, OPEN62541) > + @$(call extract, OPEN62541_MDNSD) > + @$(call patchin, OPEN62541) > + @$(call touch) > + > +# ----------------------------------------------------------------------= ------ > +# Prepare > +# ----------------------------------------------------------------------= ------ > + > +OPEN62541_LOGLEVEL :=3D 300 > + > +OPEN62541_CONF_TOOL :=3D cmake > +OPEN62541_CONF_OPT :=3D \ > + $(CROSS_CMAKE_USR) \ > + -DBUILD_SHARED_LIBS=3DON \ > + -DCLANG_FORMAT_EXE=3D$(PTXDIST_WORKSPACE)/selected_toolchain/clang-form= at \ > + -DMDNSD_LOGLEVEL=3D$(OPEN62541_LOGLEVEL) \ > + -DOPEN62541_VERSION=3D"v$(OPEN62541_VERSION)" \ > + -DUA_ARCHITECTURE=3Dposix \ > + -DUA_BUILD_EXAMPLES=3DOFF \ > + -DUA_BUILD_FUZZING=3DOFF \ > + -DUA_BUILD_FUZZING_CORPUS=3DOFF \ > + -DUA_BUILD_OSS_FUZZ=3DOFF \ > + -DUA_BUILD_TOOLS=3DON \ > + -DUA_BUILD_UNIT_TESTS=3DOFF \ > + -DUA_DEBUG=3DOFF \ > + -DUA_DEBUG_DUMP_PKGS=3DOFF \ > + -DUA_ENABLE_AMALGAMATION=3DOFF \ > + -DUA_ENABLE_COVERAGE=3DOFF \ > + -DUA_ENABLE_DA=3DON \ > + -DUA_ENABLE_CUSTOM_NODESTORE=3DOFF \ > + -DUA_ENABLE_DETERMINISTIC_RNG=3DOFF \ > + -DUA_ENABLE_DISCOVERY=3DON \ > + -DUA_ENABLE_DISCOVERY_MULTICAST=3DON \ > + -DUA_ENABLE_DISCOVERY_SEMAPHORE=3DON \ > + -DUA_ENABLE_ENCRYPTION=3DON \ > + -DUA_ENABLE_EXPERIMENTAL_HISTORIZING=3DOFF \ > + -DUA_ENABLE_HARDENING=3DON \ > + -DUA_ENABLE_HISTORIZING=3DON \ > + -DUA_ENABLE_IMMUTABLE_NODES=3DON \ > + -DUA_ENABLE_JSON_ENCODING=3DOFF \ > + -DUA_ENABLE_MALLOC_SINGLETON=3DOFF \ > + -DUA_ENABLE_METHODCALLS=3DON \ > + -DUA_ENABLE_MICRO_EMB_DEV_PROFILE=3DON \ > + -DUA_ENABLE_MULTITHREADING=3D200 \ > + -DUA_ENABLE_NODEMANAGEMENT=3DON \ > + -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=3DON \ > + -DUA_ENABLE_PUBSUB=3DON \ > + -DUA_ENABLE_PUBSUB_ETH_UADP=3DON \ > + -DUA_ENABLE_PUBSUB_DELTAFRAMES=3DON \ > + -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=3DON \ > + -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=3DON \ > + -DUA_ENABLE_PUBSUB_CUSTOM_PUBLISH_HANDLING=3DOFF \ > + -DUA_ENABLE_QUERY=3DON \ > + -DUA_ENABLE_STATIC_ANALYZER=3DOFF \ > + -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=3DON \ > + -DUA_ENABLE_SUBSCRIPTIONS=3DON \ > + -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=3DON \ > + -DUA_ENABLE_TYPENAMES=3DON \ > + -DUA_ENABLE_UNIT_TEST_FAILURE_HOOKS=3DOFF \ > + -DUA_ENABLE_UNIT_TESTS_MEMCHECK=3DOFF \ > + -DUA_ENABLE_VALGRIND_INTERACTIVE=3DOFF \ > + -DUA_COMPILE_AS_CXX=3DOFF \ > + -DUA_FILE_NS0=3D"" \ > + -DUA_LOGLEVEL=3D$(OPEN62541_LOGLEVEL) \ > + -DUA_MSVC_FORCE_STATIC_CRT=3DOFF \ > + -DUA_NAMESPACE_ZERO=3DFULL \ > + -DUA_NODESET_DIR=3D"$(PTXDIST_SYSROOT_HOST)/usr/share/ua-nodeset" \ > + -DUA_PACK_DEBIAN=3DOFF > + > +# ----------------------------------------------------------------------= ------ > +# 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 ") > + @$(call install_fixup, open62541,DESCRIPTION,missing) > + > + @$(call install_lib, open62541, 0, 0, 0644, libopen62541) > + > + @$(call install_finish, open62541) > + @$(call touch) > + > +# vim: syntax=3Dmake > -- = > 2.25.0 > = > = > _______________________________________________ > ptxdist mailing list > ptxdist@pengutronix.de -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de