open62541: add new recipe
PATCH 1/1 open62541: add new recipe
It provides a open source implementation for OPC UA.
--- .../files/0001-fix_ignored_return_value.patch | 17 ++++++++++ .../open62541/open62541_1.0.bb | 32 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch create mode 100644 meta-networking/recipes-connectivity/open62541/open62541_1.0.bb
meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch new file +17 -0
@@ -0,0 +1,17 @@ +diff --git a/plugins/ua_pki_default.c b/plugins/ua_pki_default.c +index 79331bc9..b20ad95c 100644 +--- a/plugins/ua_pki_default.c ++++ b/plugins/ua_pki_default.c +@@ -89,7 +89,11 @@ fileNamesFromFolder(const UA_String *folder, size_t *pathsSize, UA_String **path + + struct dirent *ent; + char buf2[PATH_MAX + 1]; +- realpath(buf, buf2); ++ char *res = realpath(buf, buf2); ++ if(res == NULL) { ++ closedir(dir); ++ return UA_STATUSCODE_BADINTERNALERROR; ++ } + size_t pathlen = strlen(buf2); + *pathsSize = 0; + while((ent = readdir (dir)) != NULL && *pathsSize < 256) {
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +32 -0
@@ -0,0 +1,32 @@ +HOMEPAGE = "http://open62541.org/" +SUMMARY = "Open source implementation of OPC UA - library" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" + +SRCREV = "ce5209d78d3821504d31b3bbdb03f53d6e3f93a7" +SRC_URI = " \ + gitsm://github.com/open62541/open62541.git \ + file://0001-fix_ignored_return_value.patch \ +" + +S = "${WORKDIR}/git" + +inherit cmake python3native + +DEPENDS += " \ + python3-six-native \ + mbedtls \ +" + +EXTRA_OECMAKE = " \ + -DCMAKE_BUILD_TYPE=Debug \ + -DBUILD_SHARED_LIBS=ON \ + -DUA_NAMESPACE_ZERO=REDUCED \ + -DUA_ENABLE_ENCRYPTION=ON \ + -DUA_BUILD_EXAMPLES=OFF \ +" + +FILES_${PN}-dev += "${libdir}/cmake/*" + +BBCLASSEXTEND = "native nativesdk" +
Signature · 1 line
2.20.1
Quoted 57 lines · Urs Fässler
It provides a open source implementation for OPC UA.
--- .../files/0001-fix_ignored_return_value.patch | 17 ++++++++++ .../open62541/open62541_1.0.bb | 32 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch create mode 100644 meta-networking/recipes-connectivity/open62541/open62541_1.0.bb
diff --git
a/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchb/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchnew file mode 100644
index 000000000..3a8377ec5
---/dev/null
+++b/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchmeta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch new file +5
-0@@ -0,0 +1,17 @@ +diff --git a/plugins/ua_pki_default.c b/plugins/ua_pki_default.c +index 79331bc9..b20ad95c 100644 +--- a/plugins/ua_pki_default.c ++++ b/plugins/ua_pki_default.c +@@ -89,7 +89,11 @@ fileNamesFromFolder(const UA_String *folder, size_t*pathsSize,
UA_String**pathmeta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch new file +12
-0+ + struct dirent *ent; + char buf2[PATH_MAX + 1]; +- realpath(buf, buf2); ++ char *res = realpath(buf, buf2); ++ if(res == NULL) { ++ closedir(dir); ++ return UA_STATUSCODE_BADINTERNALERROR; ++ } + size_t pathlen = strlen(buf2); + *pathsSize = 0; + while((ent = readdir (dir)) != NULL && *pathsSize < 256) {(quoted diff) +0
-0open62541_1.0.bb b/meta-networking/recipes-connectivity/open62541/ open62541_1.0.bb
new file mode 100644
index 000000000..c34e70660meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +12
-0@@ -0,0 +1,32 @@ +HOMEPAGE = "http://open62541.org/" +SUMMARY = "Open source implementation of OPC UA - library" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" + +SRCREV = "ce5209d78d3821504d31b3bbdb03f53d6e3f93a7" +SRC_URI = " \ + gitsm://github.com/open62541/open62541.git \ + file://0001-fix_ignored_return_value.patch \ +" + +S = "${WORKDIR}/git"
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb line 22
Quoted 10 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +10
-0+ +inherit cmake python3native + +DEPENDS += " \ + python3-six-native \ + mbedtls \ +" + +EXTRA_OECMAKE = " \ + -DCMAKE_BUILD_TYPE=Debug \
If we used Release build type would be nicer from release point of view unless only difference is debug info if there are more differences then maybe add a packageconfig to control this setting and enable it when doing DEBUG_ENABLED = “1” builds only
Quoted 20 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +10
-1+ -DBUILD_SHARED_LIBS=ON \ + -DUA_NAMESPACE_ZERO=REDUCED \ + -DUA_ENABLE_ENCRYPTION=ON \ + -DUA_BUILD_EXAMPLES=OFF \ +" + +FILES_${PN}-dev += "${libdir}/cmake/*" + +BBCLASSEXTEND = "native nativesdk" + --2.20.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hello Urs,
Quoted 68 lines · Khem Raj
Quoted 65 lines · Urs Fässler
It provides a open source implementation for OPC UA.
--- .../files/0001-fix_ignored_return_value.patch | 17 ++++++++++ .../open62541/open62541_1.0.bb | 32 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch create mode 100644 meta-networking/recipes-connectivity/open62541/open62541_1.0.bb
diff --git
a/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchb/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchnew file mode 100644
index 000000000..3a8377ec5
---/dev/null
+++b/meta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patchmeta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch new file +5
-0@@ -0,0 +1,17 @@ +diff --git a/plugins/ua_pki_default.c b/plugins/ua_pki_default.c +index 79331bc9..b20ad95c 100644 +--- a/plugins/ua_pki_default.c ++++ b/plugins/ua_pki_default.c +@@ -89,7 +89,11 @@ fileNamesFromFolder(const UA_String *folder, size_t*pathsSize,
UA_String**pathmeta-networking/recipes-connectivity/open62541/files/0001-fix_ignored_return_value.patch new file +12
-0+ + struct dirent *ent; + char buf2[PATH_MAX + 1]; +- realpath(buf, buf2); ++ char *res = realpath(buf, buf2); ++ if(res == NULL) { ++ closedir(dir); ++ return UA_STATUSCODE_BADINTERNALERROR; ++ } + size_t pathlen = strlen(buf2); + *pathsSize = 0; + while((ent = readdir (dir)) != NULL && *pathsSize < 256) {(quoted diff) +0
-0open62541_1.0.bb b/meta-networking/recipes-connectivity/open62541/ open62541_1.0.bb
new file mode 100644
index 000000000..c34e70660meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +20
-0@@ -0,0 +1,32 @@ +HOMEPAGE = "http://open62541.org/" +SUMMARY = "Open source implementation of OPC UA - library" +LICENSE = "MPL-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=815ca599c9df247a0c7f619bab123dad" + +SRCREV = "ce5209d78d3821504d31b3bbdb03f53d6e3f93a7" +SRC_URI = " \ + gitsm://github.com/open62541/open62541.git \ + file://0001-fix_ignored_return_value.patch \ +" + +S = "${WORKDIR}/git" + +inherit cmake python3native + +DEPENDS += " \ + python3-six-native \ + mbedtls \ +" +
Quoted 15 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb line 22
Quoted 2 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +2
-0+EXTRA_OECMAKE = " \ + -DCMAKE_BUILD_TYPE=Debug \If we used Release build type would be nicer from release point of view unless only difference is debug info if there are more differences then maybe add a packageconfig to control this setting and enable it when doing
DEBUG_ENABLED= “1” builds onlyQuoted 6 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +5
-0+ -DBUILD_SHARED_LIBS=ON \ + -DUA_NAMESPACE_ZERO=REDUCED \ + -DUA_ENABLE_ENCRYPTION=ON \ + -DUA_BUILD_EXAMPLES=OFF \ +"
It would maybe make sense to use PACKAGECONFIG for these settings so it would much easier to customize the library e.g. enable examples, use a different UA_NAMESPACE,...
Quoted 19 lines
Quoted 8 lines
meta-networking/recipes-connectivity/open62541/open62541_1.0.bb new file +5
-1+ +FILES_${PN}-dev += "${libdir}/cmake/*" + +BBCLASSEXTEND = "native nativesdk" + --2.20.1
Quoted 6 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel