ramspeed: new package
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
9156bbc947
commit
d9a7909454
@ -35,6 +35,7 @@ source "package/ltrace/Config.in"
|
||||
source "package/memstat/Config.in"
|
||||
source "package/netperf/Config.in"
|
||||
source "package/oprofile/Config.in"
|
||||
source "package/ramspeed/Config.in"
|
||||
source "package/rt-tests/Config.in"
|
||||
source "package/strace/Config.in"
|
||||
source "package/stress/Config.in"
|
||||
|
7
package/ramspeed/Config.in
Normal file
7
package/ramspeed/Config.in
Normal file
@ -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/
|
14
package/ramspeed/Makefile
Normal file
14
package/ramspeed/Makefile
Normal file
@ -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
|
21
package/ramspeed/ramspeed.mk
Normal file
21
package/ramspeed/ramspeed.mk
Normal file
@ -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))
|
Loading…
Reference in New Issue
Block a user