blob: cc78ebc8b2137ef8b09d6419dbe2b37ae77a1f2e [file] [log] [blame]
Jan Kundrátfc16f062018-08-09 19:58:55 +02001ifdef CZECHLIGHT_CLEARFOG_LEDS_BOOT
2define CZECHLIGHT_CLEARFOG_LEDS_BOOT_INSTALL_TARGET_CMDS
3 $(INSTALL) -D -m 0644 \
4 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/czechlight-clearfog-leds-boot.service \
5 $(TARGET_DIR)/usr/lib/systemd/system/
6 ln -sf ../czechlight-clearfog-leds-boot.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
7endef
8endif
9
10define CZECHLIGHT_CLEARFOG_LEDS_INSTALL_TARGET_CMDS
11 mkdir -p $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
12 $(INSTALL) -D -m 0644 \
13 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/czechlight-clearfog-leds.service \
14 $(TARGET_DIR)/usr/lib/systemd/system/
15 ln -sf ../czechlight-clearfog-leds.service $(TARGET_DIR)/usr/lib/systemd/system/multi-user.target.wants/
16 $(CZECHLIGHT_CLEARFOG_LEDS_BOOT_INSTALL_TARGET_CMDS)
Jan Kundrát55fb0642020-03-27 18:44:19 +010017 cp \
18 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/clearfog-test-leds.sh \
19 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/init-leds-edfa.sh \
20 $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/init-leds-sfp.sh \
Jan Kundrát288f6af2018-09-21 14:58:04 +020021 $(TARGET_DIR)/usr/bin/
Jan Kundrátfc16f062018-08-09 19:58:55 +020022endef
23
24$(eval $(generic-package))