[Buildroot] [git commit] package/dacapo: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Apr 14 13:32:34 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=7f01cca9c388b276c69d661dc2ce4730fcd3ecac
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 at belcan.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 DEVELOPERS                 |  3 +++
 package/Config.in          |  1 +
 package/dacapo/Config.in   | 12 ++++++++++++
 package/dacapo/dacapo.hash |  3 +++
 package/dacapo/dacapo.mk   | 21 +++++++++++++++++++++
 5 files changed, 40 insertions(+)

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 at belcan.com>
+F:	package/dacapo/
+
 N:	Damien Lanson <damien at 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))


More information about the buildroot mailing list