python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / odroid-scripts / odroid-scripts.mk
blobfc1940dcefa0bcfbeca440fa7d90fde5566072fc
1 ################################################################################
3 # odroid-scripts
5 ################################################################################
7 ODROID_SCRIPTS_VERSION = cfd289b1d69136b8bfd725d90cd648da4654f2bd
8 ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION))
9 ODROID_SCRIPTS_LICENSE = unclear
11 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
12 define ODROID_SCRIPTS_INSTALL_UDEV_RULES
13 $(INSTALL) -D -m 0644 $(@D)/10-odroid.rules \
14 $(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules
15 endef
16 endif
18 define ODROID_SCRIPTS_INSTALL_TARGET_CMDS
19 $(INSTALL) -D -m 0755 $(@D)/c2_init.sh $(TARGET_DIR)/usr/sbin/odroidc2_init_fb.sh
20 $(ODROID_SCRIPTS_INSTALL_UDEV_RULES)
21 endef
23 define ODROID_SCRIPTS_INSTALL_INIT_SYSTEMD
24 $(INSTALL) -D -m 0644 $(@D)/amlogic.service \
25 $(TARGET_DIR)/usr/lib/systemd/system/odroidc2_fb.service
26 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
27 ln -fs ../../../../usr/lib/systemd/system/odroidc2_fb.service \
28 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/odroidc2_fb.service
29 endef
31 define ODROID_SCRIPTS_INSTALL_INIT_SYSV
32 $(INSTALL) -D -m 0755 package/odroid-scripts/S02odroidc2_fb \
33 $(TARGET_DIR)/etc/init.d/S02odroidc2_fb
34 endef
36 $(eval $(generic-package))