2019-01-15 10:32:29 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# rtc-tools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
|
2022-04-01 23:56:53 +02:00
|
|
|
RTC_TOOLS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
|
|
|
|
RTC_TOOLS_SITE_METHOD = git
|
2019-01-15 10:32:29 +01:00
|
|
|
RTC_TOOLS_LICENSE = GPL-2.0
|
|
|
|
RTC_TOOLS_LICENSE_FILES = COPYING
|
|
|
|
|
2019-01-20 19:43:45 +01:00
|
|
|
RTC_TOOLS_BINARIES = rtc rtc-range
|
|
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
RTC_TOOLS_BINARIES += rtc-sync
|
|
|
|
endif
|
2019-01-15 10:32:29 +01:00
|
|
|
|
|
|
|
define RTC_TOOLS_BUILD_CMDS
|
|
|
|
$(foreach bin,$(RTC_TOOLS_BINARIES),\
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$(bin) $(@D)/$(bin).c
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define RTC_TOOLS_INSTALL_TARGET_CMDS
|
|
|
|
$(foreach bin,$(RTC_TOOLS_BINARIES),\
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/$(bin) $(TARGET_DIR)/usr/bin/$(bin)
|
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|