aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Leach, Daniel J <dleach@belcan.com>2019-02-18 21:55:03 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-04-14 15:32:34 +0200
commit7f01cca9c388b276c69d661dc2ce4730fcd3ecac (patch)
treed030b5371353203c1bf2a90a862e3ca4790c3f9f
parent6237ce0991091bbf04ca9e8076a5af53e0efba72 (diff)
downloadbuildroot-7f01cca9c388b276c69d661dc2ce4730fcd3ecac.tar.gz
buildroot-7f01cca9c388b276c69d661dc2ce4730fcd3ecac.tar.bz2
package/dacapo: new package
The DaCapo benchmark suite is intended as a tool for Java benchmarking by the programming language, memory management and computer architecture communities. Depends on the OpenJDK package for Java runtime environment. Signed-off-by: Daniel J. Leach <dleach@belcan.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--DEVELOPERS3
-rw-r--r--package/Config.in1
-rw-r--r--package/dacapo/Config.in12
-rw-r--r--package/dacapo/dacapo.hash3
-rw-r--r--package/dacapo/dacapo.mk21
5 files changed, 40 insertions, 0 deletions
diff --git a/DEVELOPERS b/DEVELOPERS
index a77a730603..f0df75b844 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -569,6 +569,9 @@ F: package/libamcodec/
F: package/odroid-mali/
F: package/odroid-scripts/
+N: Daniel J. Leach <dleach@belcan.com>
+F: package/dacapo/
+
N: Damien Lanson <damien@kal-host.com>
F: package/libvdpau/
F: package/log4cpp/
diff --git a/package/Config.in b/package/Config.in
index 158a030e53..260114fe72 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -83,6 +83,7 @@ menu "Debugging, profiling and benchmark"
source "package/bonnie/Config.in"
source "package/cache-calibrator/Config.in"
source "package/clinfo/Config.in"
+ source "package/dacapo/Config.in"
source "package/dhrystone/Config.in"
source "package/dieharder/Config.in"
source "package/dmalloc/Config.in"
diff --git a/package/dacapo/Config.in b/package/dacapo/Config.in
new file mode 100644
index 0000000000..802d7620e8
--- /dev/null
+++ b/package/dacapo/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_DACAPO
+ bool "dacapo"
+ depends on BR2_PACKAGE_OPENJDK
+ help
+ The DaCapo benchmark suite is intended as a tool for Java
+ benchmarking by the programming language, memory
+ management and computer architecture communities.
+
+ http://dacapobench.org/
+
+comment "dacapo needs OpenJDK"
+ depends on !BR2_PACKAGE_OPENJDK
diff --git a/package/dacapo/dacapo.hash b/package/dacapo/dacapo.hash
new file mode 100644
index 0000000000..ca7ad46383
--- /dev/null
+++ b/package/dacapo/dacapo.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 be3db084adcb2867760e1197b3ccf541c3213d918daa19386d8e236648d24be8 dacapo-9.12-MR1-bach.jar
+sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
diff --git a/package/dacapo/dacapo.mk b/package/dacapo/dacapo.mk
new file mode 100644
index 0000000000..3c5df6d285
--- /dev/null
+++ b/package/dacapo/dacapo.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# dacapo
+#
+################################################################################
+
+DACAPO_VERSION = 9.12-MR1-bach
+DACAPO_SOURCE = dacapo-$(DACAPO_VERSION).jar
+DACAPO_SITE = http://sourceforge.net/projects/dacapobench/files/9.12-bach-MR1
+DACAPO_LICENSE = Apache-2.0
+DACAPO_LICENSE_FILES = LICENSE
+
+define DACAPO_EXTRACT_CMDS
+ unzip $(DACAPO_DL_DIR)/$(DACAPO_SOURCE) LICENSE -d $(@D)
+endef
+
+define DACAPO_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 755 $(DACAPO_DL_DIR)/$(DACAPO_SOURCE) $(TARGET_DIR)/usr/bin/$(DACAPO_SOURCE)
+endef
+
+$(eval $(generic-package))