2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-29 00:53:52 +01:00
|
|
|
#
|
|
|
|
# cache-calibrator
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-01-29 00:53:52 +01:00
|
|
|
|
|
|
|
CACHE_CALIBRATOR_SOURCE = calibrator.c
|
|
|
|
CACHE_CALIBRATOR_SITE = http://homepages.cwi.nl/~manegold/Calibrator/src
|
|
|
|
CACHE_CALIBRATOR_LICENSE = Cache calibrator license
|
2017-07-03 23:30:01 +02:00
|
|
|
CACHE_CALIBRATOR_LICENSE_FILES = calibrator.c.license
|
2013-01-29 00:53:52 +01:00
|
|
|
|
|
|
|
define CACHE_CALIBRATOR_EXTRACT_CMDS
|
2018-04-02 15:09:24 +02:00
|
|
|
cp $(CACHE_CALIBRATOR_DL_DIR)/$(CACHE_CALIBRATOR_SOURCE) $(@D)
|
2013-01-29 00:53:52 +01:00
|
|
|
endef
|
|
|
|
|
2017-07-03 23:30:01 +02:00
|
|
|
define CACHE_CALIBRATOR_EXTRACT_LICENSE
|
|
|
|
head -n 38 $(@D)/calibrator.c >$(@D)/calibrator.c.license
|
|
|
|
endef
|
|
|
|
CACHE_CALIBRATOR_PRE_PATCH_HOOKS += CACHE_CALIBRATOR_EXTRACT_LICENSE
|
|
|
|
|
2013-01-29 00:53:52 +01:00
|
|
|
define CACHE_CALIBRATOR_BUILD_CMDS
|
|
|
|
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/calibrator.c -o $(@D)/cache_calibrator -lm
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CACHE_CALIBRATOR_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/cache_calibrator $(TARGET_DIR)/usr/bin/cache_calibrator
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|