blob: 97ab75cf86945ef44f712aa4323b7dcf2301af55 [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át288f6af2018-09-21 14:58:04 +020017 cp $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/clearfog-test-leds.sh \
18 $(TARGET_DIR)/usr/bin/
Jan Kundrátfc16f062018-08-09 19:58:55 +020019endef
20
21$(eval $(generic-package))