summaryrefslogtreecommitdiffstats
path: root/package/cache-calibrator/cache-calibrator.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/cache-calibrator/cache-calibrator.mk')
-rw-r--r--package/cache-calibrator/cache-calibrator.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/cache-calibrator/cache-calibrator.mk b/package/cache-calibrator/cache-calibrator.mk
index d0620655c7..6f12d119ef 100644
--- a/package/cache-calibrator/cache-calibrator.mk
+++ b/package/cache-calibrator/cache-calibrator.mk
@@ -7,12 +7,17 @@
CACHE_CALIBRATOR_SOURCE = calibrator.c
CACHE_CALIBRATOR_SITE = http://homepages.cwi.nl/~manegold/Calibrator/src
CACHE_CALIBRATOR_LICENSE = Cache calibrator license
-CACHE_CALIBRATOR_LICENSE_FILES = calibrator.c
+CACHE_CALIBRATOR_LICENSE_FILES = calibrator.c.license
define CACHE_CALIBRATOR_EXTRACT_CMDS
cp $(DL_DIR)/$(CACHE_CALIBRATOR_SOURCE) $(@D)
endef
+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
+
define CACHE_CALIBRATOR_BUILD_CMDS
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/calibrator.c -o $(@D)/cache_calibrator -lm
endef
OpenPOWER on IntegriCloud