315ce32648
Disable -Werror to avoid the following build failures raised since bump
to version 1.2.2 in commit b436b82411
:
/tmp/instance-0/output-1/build/open62541-v1.2.2/arch/network_tcp.c: In function 'connection_recv':
/tmp/instance-0/output-1/build/open62541-v1.2.2/arch/network_tcp.c:96:5: error: conversion to 'unsigned int' from 'int' may change the sign of the result [-Werror=sign-conversion]
96 | UA_fd_set(connection->sockfd, &fdset);
| ^~~~~~~~~
/tmp/instance-6/output-1/build/open62541-v1.2.2/plugins/ua_pubsub_udp.c: In function 'UA_PubSubChannelUDPMC_receive':
/tmp/instance-6/output-1/build/open62541-v1.2.2/plugins/ua_pubsub_udp.c:477:21: error: conversion to '__suseconds_t' {aka 'int'} from 'UA_UInt32' {aka 'unsigned int'} may change the sign of the result [-Werror=sign-conversion]
477 | tmptv.tv_usec = (long int)(timeout % 1000000);
| ^
Fixes:
- http://autobuild.buildroot.org/results/911811de81d8abb2a31feb8f27af1592641c6fbc
- http://autobuild.buildroot.org/results/f0187b3f2d62e955fddeef4e90f84ba4fd642bd2
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
65 lines
1.9 KiB
Makefile
65 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# open62541
|
|
#
|
|
################################################################################
|
|
|
|
OPEN62541_VERSION = v1.2.2
|
|
OPEN62541_SITE_METHOD = git
|
|
OPEN62541_SITE = git://github.com/open62541/open62541.git
|
|
OPEN62541_GIT_SUBMODULES = YES
|
|
OPEN62541_INSTALL_STAGING = YES
|
|
OPEN62541_LICENSE = MPL-2.0
|
|
OPEN62541_LICENSE_FILES = LICENSE
|
|
|
|
# Force Release build to remove -Werror.
|
|
# Don't use git describe to get the version number.
|
|
# Disable hardening options to let Buildroot handle it.
|
|
OPEN62541_CONF_OPTS = \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DGIT_EXECUTABLE=NO \
|
|
-DOPEN62541_VERSION=$(OPEN62541_VERSION) \
|
|
-DUA_ENABLE_HARDENING=OFF \
|
|
-DUA_FORCE_WERROR=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_MINIMAL),y)
|
|
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=MINIMAL
|
|
else ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_REDUCED),y)
|
|
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=REDUCED
|
|
else ifeq ($(BR2_PACKAGE_OPEN62541_UA_NAMESPACE_ZERO_FULL),y)
|
|
OPEN62541_CONF_OPTS += -DUA_NAMESPACE_ZERO=FULL
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPEN62541_JSON_ENCODING),y)
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_JSON_ENCODING=ON
|
|
else
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_JSON_ENCODING=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPEN62541_PUBSUB),y)
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB=ON
|
|
else
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPEN62541_PUBSUB_DELTAFRAMES),y)
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB_DELTAFRAMES=ON
|
|
else
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPEN62541_PUBSUB_INFORMATIONMODEL),y)
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON
|
|
else
|
|
OPEN62541_CONF_OPTS += -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=OFF
|
|
endif
|
|
|
|
# Remove unneeded files
|
|
define OPEN62541_REMOVE_UNNEEDED_FILES
|
|
$(RM) -r $(TARGET_DIR)/usr/share/open62541
|
|
endef
|
|
|
|
OPEN62541_POST_INSTALL_TARGET_HOOKS += OPEN62541_REMOVE_UNNEEDED_FILES
|
|
|
|
$(eval $(cmake-package))
|