rtc-tools.mk 850 B

12345678910111213141516171819202122232425262728293031
  1. ################################################################################
  2. #
  3. # rtc-tools
  4. #
  5. ################################################################################
  6. RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
  7. RTC_TOOLS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
  8. RTC_TOOLS_SITE_METHOD = git
  9. RTC_TOOLS_LICENSE = GPL-2.0
  10. RTC_TOOLS_LICENSE_FILES = COPYING
  11. RTC_TOOLS_BINARIES = rtc rtc-range
  12. ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
  13. RTC_TOOLS_BINARIES += rtc-sync
  14. endif
  15. define RTC_TOOLS_BUILD_CMDS
  16. $(foreach bin,$(RTC_TOOLS_BINARIES),\
  17. $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c
  18. )
  19. endef
  20. define RTC_TOOLS_INSTALL_TARGET_CMDS
  21. $(foreach bin,$(RTC_TOOLS_BINARIES),\
  22. $(INSTALL) -D -m 0755 $(@D)/$(bin) $(TARGET_DIR)/usr/bin/$(bin)
  23. )
  24. endef
  25. $(eval $(generic-package))