mirror of https://github.com/OpenIPC/firmware.git
25 lines
729 B
Makefile
25 lines
729 B
Makefile
################################################################################
|
|
#
|
|
# ingenic-pwm
|
|
#
|
|
################################################################################
|
|
|
|
ifeq ($(LOCAL_DOWNLOAD),y)
|
|
INGENIC_PWM_SITE_METHOD = git
|
|
INGENIC_PWM_SITE = https://github.com/gtxaspec/ingenic-pwm
|
|
INGENIC_PWM_VERSION = $(shell git ls-remote $(INGENIC_PWM_SITE) HEAD | head -1 | cut -f1)
|
|
else
|
|
INGENIC_PWM_SITE = https://github.com/gtxaspec/ingenic-pwm/archive
|
|
INGENIC_PWM_SOURCE = master.tar.gz
|
|
endif
|
|
|
|
define INGENIC_PWM_BUILD_CMDS
|
|
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) -C $(@D)
|
|
endef
|
|
|
|
define INGENIC_PWM_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/ingenic-pwm $(TARGET_DIR)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(generic-package))
|