Commit ffce5350 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

package: add host-faketime



For use by packages or post-build/image scripts to fake the current time for
obnoxious programs that insists on adding a timestamp.

Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
Reviewed-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent cd305934
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ menu "Host utilities"
	source "package/dosfstools/Config.in.host"
	source "package/e2fsprogs/Config.in.host"
	source "package/e2tools/Config.in.host"
	source "package/faketime/Config.in.host"
	source "package/genext2fs/Config.in.host"
	source "package/genimage/Config.in.host"
	source "package/genpart/Config.in.host"
+7 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_HOST_FAKETIME
	bool "host faketime"
	help
	  Faketime reports faked system time to programs without
	  having to change the system-wide time.

	  https://github.com/wolfcw/libfaketime
+20 −0
Original line number Diff line number Diff line
################################################################################
#
# libfaketime
#
################################################################################

FAKETIME_VERSION = v0.9.6
FAKETIME_SITE = $(call github,wolfcw,libfaketime,$(FAKETIME_VERSION))
FAKETIME_LICENSE = GPLv2
FAKETIME_LICENSE_FILES = COPYING

define HOST_FAKETIME_BUILD_CMDS
	$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr
endef

define HOST_FAKETIME_INSTALL_CMDS
	$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install
endef

$(eval $(host-generic-package))