open62541: split schema defs into separate package

The OPC UA schema definitions and nodeset descriptions make up 90MB of
the "normal" package and contain mostly text files not needed during
runtime.

Split them into a -tools package. The "normal" package size is reduced
drastically.

Signed-off-by: Johannes Kauffmann <johanneskauffmann@hotmail.com>
This commit is contained in:
Johannes Kauffmann 2025-03-06 11:02:14 +01:00
parent d50733572e
commit 767f429e81

View File

@ -31,6 +31,12 @@ EXTRA_OECMAKE += "\
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
"
FILES:${PN} = "${libdir}/lib*${SOLIBS}"
# The tools package contains scripts to generate certificates and OPC UA schema definitions + nodeset descriptions.
PACKAGES += "${PN}-tools"
FILES:${PN}-tools = "${datadir}/${BPN}/tools/*"
PACKAGECONFIG ?= "encryption-mbedtls pubsub pubsub-eth subscriptions subscriptions-events namespace-full"
PACKAGECONFIG[encryption-mbedtls] = "-DUA_ENABLE_ENCRYPTION=MBEDTLS, , mbedtls, , , encryption-openssl"
PACKAGECONFIG[encryption-openssl] = "-DUA_ENABLE_ENCRYPTION=OPENSSL, , openssl, , , encryption-mbedtls"