blob: 9ef7eee7413317554ac322372a3529bf25487bab [file] [log] [blame]
Jan Kundráta67deea2017-03-21 20:21:07 +01001CLA_SYSREPO_VERSION = master
2CLA_SYSREPO_SITE = ssh://kundrat@cesnet.cz@gerrit.cesnet.cz:29418/CzechLight/cla-sysrepo
3CLA_SYSREPO_SITE_METHOD = git
4CLA_SYSREPO_INSTALL_STAGING = NO
Václav Kubernát8cd61562021-12-08 13:27:31 +01005CLA_SYSREPO_DEPENDENCIES = sysrepo-cpp docopt-cpp spdlog systemd libgpiod boost cppcodec libev
Jan Kundráta67deea2017-03-21 20:21:07 +01006CLA_SYSREPO_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread
7CLA_SYSREPO_LICENSE_FILES = LICENSE.md
8
Jan Kundrát2f100fc2020-11-02 22:10:16 +01009define CLA_SYSREPO_PREPARE_SERVICE
Jan Kundrát2ccae182018-09-13 21:24:38 +020010 sed \
11 -e "s/__MODEL__/$1/g" \
Jan Kundrát2ccae182018-09-13 21:24:38 +020012 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/cla-appliance.service.in \
13 > $(TARGET_DIR)/usr/lib/systemd/system/cla-$1.service
Jan Kundrát2ccae182018-09-13 21:24:38 +020014 ln -sf ../cla-$1.service \
15 $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
16endef
17
18define CLA_SYSREPO_INSTALL_INIT_SYSTEMD
Jan Kundrát2f100fc2020-11-02 22:10:16 +010019 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants
Jan Kundrát2f100fc2020-11-02 22:10:16 +010020
21 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-add-drop)
Jan Kundrátf25a84f2021-03-21 13:18:47 +010022 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-hires-add-drop)
Jan Kundrát2f100fc2020-11-02 22:10:16 +010023 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-line)
24 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-coherent-a-d)
25 $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-inline)
26 $(call CLA_SYSREPO_PREPARE_SERVICE,calibration-box)
Jan Kundrát2ccae182018-09-13 21:24:38 +020027endef
28
Jan Kundrát58ac4ee2019-12-18 16:59:24 +010029# FIXME: calibration-box really needs a drop-in file with increased timeout...
30
Jan Kundráta67deea2017-03-21 20:21:07 +010031$(eval $(cmake-package))