Jan Kundrát | fc16f06 | 2018-08-09 19:58:55 +0200 | [diff] [blame] | 1 | ifdef CZECHLIGHT_CLEARFOG_LEDS_BOOT |
| 2 | define 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/ |
| 7 | endef |
| 8 | endif |
| 9 | |
| 10 | define 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át | 288f6af | 2018-09-21 14:58:04 +0200 | [diff] [blame] | 17 | cp $(BR2_EXTERNAL_CZECHLIGHT_PATH)/package/czechlight-clearfog-leds/clearfog-test-leds.sh \ |
| 18 | $(TARGET_DIR)/usr/bin/ |
Jan Kundrát | fc16f06 | 2018-08-09 19:58:55 +0200 | [diff] [blame] | 19 | endef |
| 20 | |
| 21 | $(eval $(generic-package)) |