package: add tinymembench

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
Peter Korsgaard 2013-06-27 13:55:27 +02:00
parent 30c315d642
commit 4e0676c484
3 changed files with 34 additions and 0 deletions

View File

@ -44,6 +44,7 @@ source "package/rt-tests/Config.in"
source "package/strace/Config.in"
source "package/stress/Config.in"
source "package/sysprof/Config.in"
source "package/tinymembench/Config.in"
source "package/whetstone/Config.in"
source "package/valgrind/Config.in"
source "package/pv/Config.in"

View File

@ -0,0 +1,11 @@
config BR2_PACKAGE_TINYMEMBENCH
bool "tinymembench"
help
Tinymembench is a simple memory benchmark program, which
tries to measure the peak bandwidth of sequential memory
accesses and the latency of random memory accesses.
Bandwidth is measured by running different assembly code for
the aligned memory blocks and attempting different prefetch
strategies.
https://github.com/ssvb/tinymembench

View File

@ -0,0 +1,22 @@
################################################################################
#
# tinymembench
#
################################################################################
TINYMEMBENCH_VERSION = v0.2
TINYMEMBENCH_SITE = http://github.com/ssvb/tinymembench/tarball/$(TINYMEMBENCH_VERSION)
TINYMEMBENCH_LICENSE = MIT
TINYMEMBENCH_LICENSE_FILES = main.c
define TINYMEMBENCH_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
define TINYMEMBENCH_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/tinymembench \
$(TARGET_DIR)/usr/bin/tinymembench
endef
$(eval $(generic-package))