2016-07-24 18:35:04 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# odroid-scripts
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-11-25 08:52:55 +01:00
|
|
|
ODROID_SCRIPTS_VERSION = cfd289b1d69136b8bfd725d90cd648da4654f2bd
|
2016-07-24 18:35:04 +02:00
|
|
|
ODROID_SCRIPTS_SITE = $(call github,mdrjr,c2_bootini,$(ODROID_SCRIPTS_VERSION))
|
|
|
|
ODROID_SCRIPTS_LICENSE = unclear
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
define ODROID_SCRIPTS_INSTALL_UDEV_RULES
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/10-odroid.rules \
|
|
|
|
$(TARGET_DIR)/etc/udev/rules.d/10-odroid.rules
|
|
|
|
endef
|
|
|
|
endif
|
|
|
|
|
|
|
|
define ODROID_SCRIPTS_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/c2_init.sh $(TARGET_DIR)/usr/sbin/odroidc2_init_fb.sh
|
|
|
|
$(ODROID_SCRIPTS_INSTALL_UDEV_RULES)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ODROID_SCRIPTS_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/amlogic.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/odroidc2_fb.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
|
ln -fs ../../../../usr/lib/systemd/system/odroidc2_fb.service \
|
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/odroidc2_fb.service
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ODROID_SCRIPTS_INSTALL_INIT_SYSV
|
2016-11-25 08:48:46 +01:00
|
|
|
$(INSTALL) -D -m 0755 package/odroid-scripts/S02odroidc2_fb \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S02odroidc2_fb
|
2016-07-24 18:35:04 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|