kumquat-buildroot/package/rtc-tools/rtc-tools.mk
Baruch Siach 0c4d8c0783 rtc-tools: rtc-sync needs threads support
Fixes:
http://autobuild.buildroot.net/results/573/57350271eff9284a8b07ceef02a9960f3568a0a3/
http://autobuild.buildroot.net/results/b6c/b6cf05deab77c7a84c721c95d9d618b1ddc2957e/
http://autobuild.buildroot.net/results/187/1877cfbbe37ef15c16cec5d6ad6e3d4d60bc3cbc/

Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-01-20 20:58:53 +01:00

31 lines
820 B
Makefile

################################################################################
#
# rtc-tools
#
################################################################################
RTC_TOOLS_VERSION = 33ef4aa1c92b0c92a351284d93d1ac5570de9cc7
RTC_TOOLS_SITE = git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/rtc-tools.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))