2019-10-28 10:03:26 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sysrepo
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-03-24 13:34:08 +01:00
|
|
|
SYSREPO_VERSION = 1.4.122
|
2019-10-28 10:03:26 +01:00
|
|
|
SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
|
|
|
|
SYSREPO_INSTALL_STAGING = YES
|
|
|
|
SYSREPO_LICENSE = Apache-2.0
|
|
|
|
SYSREPO_LICENSE_FILES = LICENSE
|
2020-04-16 14:18:16 +02:00
|
|
|
SYSREPO_DEPENDENCIES = libyang pcre host-sysrepo
|
|
|
|
HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre
|
2019-10-28 10:03:26 +01:00
|
|
|
|
|
|
|
SYSREPO_CONF_OPTS = \
|
2021-06-01 16:34:11 +02:00
|
|
|
-DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
|
|
|
|
-DENABLE_TESTS=OFF \
|
|
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
|
|
|
-DREPO_PATH=/etc/sysrepo
|
2019-10-28 10:03:26 +01:00
|
|
|
|
2019-10-31 14:15:05 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
|
|
endif
|
|
|
|
|
2019-10-28 10:03:26 +01:00
|
|
|
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 \
|
2021-06-01 16:34:10 +02:00
|
|
|
-DENABLE_TESTS=OFF \
|
|
|
|
-DENABLE_VALGRIND_TESTS=OFF \
|
2019-12-20 14:53:45 +01:00
|
|
|
-DREPO_PATH=$(TARGET_DIR)/etc/sysrepo
|
2019-10-28 10:03:26 +01:00
|
|
|
|
|
|
|
$(eval $(cmake-package))
|
|
|
|
$(eval $(host-cmake-package))
|