Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # sysrepo |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Kadambini Nema | 7aa4c0d | 2024-02-19 11:59:11 -0800 | [diff] [blame] | 7 | SYSREPO_VERSION = 2.2.150 |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 8 | SYSREPO_SITE = $(call github,sysrepo,sysrepo,v$(SYSREPO_VERSION)) |
| 9 | SYSREPO_INSTALL_STAGING = YES |
Heiko Thiery | 1b21d7e | 2021-11-25 13:56:01 +0100 | [diff] [blame] | 10 | SYSREPO_LICENSE = BSD-3-Clause |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 11 | SYSREPO_LICENSE_FILES = LICENSE |
Heiko Thiery | 1b21d7e | 2021-11-25 13:56:01 +0100 | [diff] [blame] | 12 | SYSREPO_DEPENDENCIES = libyang pcre2 host-sysrepo |
| 13 | HOST_SYSREPO_DEPENDENCIES = host-libyang host-pcre2 |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 14 | |
Heiko Thiery | 761663b | 2022-05-13 09:10:47 +0200 | [diff] [blame] | 15 | ifeq ($(BR2_INIT_SYSTEMD),y) |
| 16 | SYSREPO_DEPENDENCIES += systemd |
| 17 | endif |
| 18 | |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 19 | SYSREPO_CONF_OPTS = \ |
Thomas De Schampheleire | 77b9b0f | 2021-06-01 16:34:11 +0200 | [diff] [blame] | 20 | -DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \ |
| 21 | -DENABLE_TESTS=OFF \ |
| 22 | -DENABLE_VALGRIND_TESTS=OFF \ |
| 23 | -DREPO_PATH=/etc/sysrepo |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 24 | |
Fabrice Fontaine | 933cf85 | 2019-10-31 14:15:05 +0100 | [diff] [blame] | 25 | ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) |
| 26 | SYSREPO_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic |
| 27 | endif |
| 28 | |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 29 | define SYSREPO_INSTALL_INIT_SYSV |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 30 | $(INSTALL) -m 755 -D package/sysrepo/S51sysrepo-plugind \ |
| 31 | $(TARGET_DIR)/etc/init.d/S51sysrepo-plugind |
| 32 | endef |
| 33 | |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 34 | HOST_SYSREPO_CONF_OPTS = \ |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 35 | -DBUILD_EXAMPLES=OFF \ |
Thomas De Schampheleire | 9a7afc0 | 2021-06-01 16:34:10 +0200 | [diff] [blame] | 36 | -DENABLE_TESTS=OFF \ |
| 37 | -DENABLE_VALGRIND_TESTS=OFF \ |
Heiko Thiery | d52e986 | 2019-12-20 14:53:45 +0100 | [diff] [blame] | 38 | -DREPO_PATH=$(TARGET_DIR)/etc/sysrepo |
Heiko Thiery | 30849a5 | 2019-10-28 10:03:26 +0100 | [diff] [blame] | 39 | |
| 40 | $(eval $(cmake-package)) |
| 41 | $(eval $(host-cmake-package)) |