aboutsummaryrefslogtreecommitdiff
path: root/package/ramspeed
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2012-05-29 12:33:18 +0000
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2012-06-13 23:58:33 +0200
commitd9a790945437fe2a62d1871e2641a01077df428f (patch)
treeb2164f958b83220b2050ca4763e4c5c570580351 /package/ramspeed
parent9156bbc947f03ef149df527e768c920846aa7a33 (diff)
downloadbuildroot-d9a790945437fe2a62d1871e2641a01077df428f.tar.gz
buildroot-d9a790945437fe2a62d1871e2641a01077df428f.tar.bz2
ramspeed: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/ramspeed')
-rw-r--r--package/ramspeed/Config.in7
-rw-r--r--package/ramspeed/Makefile14
-rw-r--r--package/ramspeed/ramspeed.mk21
3 files changed, 42 insertions, 0 deletions
diff --git a/package/ramspeed/Config.in b/package/ramspeed/Config.in
new file mode 100644
index 0000000000..b236329a84
--- /dev/null
+++ b/package/ramspeed/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_RAMSPEED
+ bool "ramspeed"
+ help
+ RAMspeed is a free open source command line utility
+ to measure cache and memory performance.
+
+ http://alasir.com/software/ramspeed/
diff --git a/package/ramspeed/Makefile b/package/ramspeed/Makefile
new file mode 100644
index 0000000000..acb8cfd8d8
--- /dev/null
+++ b/package/ramspeed/Makefile
@@ -0,0 +1,14 @@
+
+all: generic
+
+generic: ramspeed.c fltmem.c fltmark.c intmem.c intmark.c
+ $(CC) $(CFLAGS) $^ -o ramspeed
+
+i386: ramspeed.c i386/*.s i386/cpuinfo/*.s
+ $(CC) $(CFLAGS) -DI386_ASM $^ -o ramspeed
+
+x86_64: ramspeed.c amd64/*.s
+ $(CC) $(CFLAGS) -DAMD64_ASM $^ -o ramspeed
+
+clean:
+ rm -f *.o ramspeed
diff --git a/package/ramspeed/ramspeed.mk b/package/ramspeed/ramspeed.mk
new file mode 100644
index 0000000000..9ac21ad1ec
--- /dev/null
+++ b/package/ramspeed/ramspeed.mk
@@ -0,0 +1,21 @@
+#############################################################
+#
+# ramspeed
+#
+#############################################################
+
+RAMSPEED_VERSION = 2.6.0
+RAMSPEED_SITE = http://www.alasir.com/software/ramspeed
+RAMSPEED_ARCH = $(if $(BR2_i386),i386)$(if $(BR2_x86_64),x86_64)
+
+define RAMSPEED_BUILD_CMDS
+ cp -f package/ramspeed/Makefile $(@D)
+ CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+ make -C $(@D) $(RAMSPEED_ARCH)
+endef
+
+define RAMSPEED_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/ramspeed $(TARGET_DIR)/usr/bin/ramspeed
+endef
+
+$(eval $(call GENTARGETS))