Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 1 | CLA_SYSREPO_VERSION = master |
| 2 | CLA_SYSREPO_SITE = ssh://kundrat@cesnet.cz@gerrit.cesnet.cz:29418/CzechLight/cla-sysrepo |
| 3 | CLA_SYSREPO_SITE_METHOD = git |
| 4 | CLA_SYSREPO_INSTALL_STAGING = NO |
Václav Kubernát | 8cd6156 | 2021-12-08 13:27:31 +0100 | [diff] [blame] | 5 | CLA_SYSREPO_DEPENDENCIES = sysrepo-cpp docopt-cpp spdlog systemd libgpiod boost cppcodec libev |
Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 6 | CLA_SYSREPO_CONF_OPTS = -DTHREADS_PTHREAD_ARG:STRING=-pthread |
| 7 | CLA_SYSREPO_LICENSE_FILES = LICENSE.md |
| 8 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 9 | define CLA_SYSREPO_PREPARE_SERVICE |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 10 | sed \ |
| 11 | -e "s/__MODEL__/$1/g" \ |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 12 | $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/cla-sysrepo/cla-appliance.service.in \ |
| 13 | > $(TARGET_DIR)/usr/lib/systemd/system/cla-$1.service |
Jan Kundrát | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 14 | ln -sf ../cla-$1.service \ |
| 15 | $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/ |
| 16 | endef |
| 17 | |
| 18 | define CLA_SYSREPO_INSTALL_INIT_SYSTEMD |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 19 | mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 20 | |
| 21 | $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-add-drop) |
Jan Kundrát | f25a84f | 2021-03-21 13:18:47 +0100 | [diff] [blame] | 22 | $(call CLA_SYSREPO_PREPARE_SERVICE,sdn-roadm-hires-add-drop) |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 23 | $(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át | 2ccae18 | 2018-09-13 21:24:38 +0200 | [diff] [blame] | 27 | endef |
| 28 | |
Jan Kundrát | 58ac4ee | 2019-12-18 16:59:24 +0100 | [diff] [blame] | 29 | # FIXME: calibration-box really needs a drop-in file with increased timeout... |
| 30 | |
Jan Kundrát | a67deea | 2017-03-21 20:21:07 +0100 | [diff] [blame] | 31 | $(eval $(cmake-package)) |