Files
buildroot/package/rtc-tools/rtc-tools.mk
Wolfram Sang 964102392b package/rtc-tools: bump to version 2022.02
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-10-31 19:08:19 +01:00

32 lines
817 B
Makefile

################################################################################
#
# rtc-tools
#
################################################################################
RTC_TOOLS_VERSION = 2022.02
RTC_TOOLS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.git
RTC_TOOLS_SITE_METHOD = git
RTC_TOOLS_LICENSE = GPL-2.0
RTC_TOOLS_LICENSE_FILES = COPYING
RTC_TOOLS_BINARIES = rtc rtc-range
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
RTC_TOOLS_BINARIES += rtc-sync
endif
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))