blob: 7f2570bd7dcf2bc1cc852497cd81d95df4aee6ec [file] [log] [blame]
Heiko Thiery30849a52019-10-28 10:03:26 +01001################################################################################
2#
3# sysrepo
4#
5################################################################################
6
Kadambini Nema7aa4c0d2024-02-19 11:59:11 -08007SYSREPO_VERSION = 2.2.150
Heiko Thiery30849a52019-10-28 10:03:26 +01008SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION))
9SYSREPO_INSTALL_STAGING = YES
Heiko Thiery1b21d7e2021-11-25 13:56:01 +010010SYSREPO_LICENSE = BSD-3-Clause
Heiko Thiery30849a52019-10-28 10:03:26 +010011SYSREPO_LICENSE_FILES = LICENSE
Heiko Thiery1b21d7e2021-11-25 13:56:01 +010012SYSREPO_DEPENDENCIES = libyang pcre2 host-sysrepo
13HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre2
Heiko Thiery30849a52019-10-28 10:03:26 +010014
Heiko Thiery761663b2022-05-13 09:10:47 +020015ifeq ($(BR2_INIT_SYSTEMD),y)
16SYSREPO_DEPENDENCIES += systemd
17endif
18
Heiko Thiery30849a52019-10-28 10:03:26 +010019SYSREPO_CONF_OPTS = \
Thomas De Schampheleire77b9b0f2021-06-01 16:34:11 +020020 -DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
21 -DENABLE_TESTS=OFF \
22 -DENABLE_VALGRIND_TESTS=OFF \
23 -DREPO_PATH=/etc/sysrepo
Heiko Thiery30849a52019-10-28 10:03:26 +010024
Fabrice Fontaine933cf852019-10-31 14:15:05 +010025ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
26SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
27endif
28
Heiko Thiery30849a52019-10-28 10:03:26 +010029define SYSREPO_INSTALL_INIT_SYSV
Heiko Thiery30849a52019-10-28 10:03:26 +010030 $(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \
31 $(TARGET_DIR)/etc/init.d/S51sysrepo-plugind
32endef
33
Heiko Thiery30849a52019-10-28 10:03:26 +010034HOST_SYSREPO_CONF_OPTS = \
Heiko Thiery30849a52019-10-28 10:03:26 +010035 -DBUILD_EXAMPLES=OFF \
Thomas De Schampheleire9a7afc02021-06-01 16:34:10 +020036 -DENABLE_TESTS=OFF \
37 -DENABLE_VALGRIND_TESTS=OFF \
Heiko Thieryd52e9862019-12-20 14:53:45 +010038 -DREPO_PATH=$(TARGET_DIR)/etc/sysrepo
Heiko Thiery30849a52019-10-28 10:03:26 +010039
40$(eval $(cmake-package))
41$(eval $(host-cmake-package))