77b9b0f8cf
sysrepo explicitly sets CMAKE_BUILD_TYPE=Release, ignoring any possible value of BR2_ENABLE_DEBUG (previously) or BR2_ENABLE_RUNTIME_DEBUG (now). With the introduction of BR2_ENABLE_RUNTIME_DEBUG, this change should no longer be necessary. Users that do not wish to have additional runtime debugging just keep BR2_ENABLE_RUNTIME_DEBUG disabled (default value). As the 'Debug' build type enables tests, disable them explicitly. As the 'Debug' build type uses a custom REPO_PATH which does not exist on target, force /etc/sysrepo like in the 'Release' build type. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Heiko Thiery <heiko.thiery@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# sysrepo
|
|
#
|
|
################################################################################
|
|
|
|
SYSREPO_VERSION = 1.4.122
|
|
SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
|
|
SYSREPO_INSTALL_STAGING = YES
|
|
SYSREPO_LICENSE = Apache-2.0
|
|
SYSREPO_LICENSE_FILES = LICENSE
|
|
SYSREPO_DEPENDENCIES = libyang pcre host-sysrepo
|
|
HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre
|
|
|
|
SYSREPO_CONF_OPTS = \
|
|
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
|
-DREPO_PATH=/etc/sysrepo
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
define SYSREPO_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \
|
|
$(TARGET_DIR)/etc/init.d/S51sysrepo-plugind
|
|
endef
|
|
|
|
HOST_SYSREPO_CONF_OPTS = \
|
|
-DBUILD_EXAMPLES=OFF \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
|
-DREPO_PATH=$(TARGET_DIR)/etc/sysrepo
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|