ramspeed: new package
PATCH 1/1 ramspeed: new package
Signed-off-by Gustavo Zacarias <[email protected]>
--- package/Config.in | 1 + package/ramspeed/Config.in | 7 +++++++ package/ramspeed/Makefile | 14 ++++++++++++++ package/ramspeed/ramspeed.mk | 28 ++++++++++++++++++++++++++++ 4 files changed, 50 insertions(+), 0 deletions(-) create mode 100644 package/ramspeed/Config.in create mode 100644 package/ramspeed/Makefile create mode 100644 package/ramspeed/ramspeed.mk
package/Config.in +1 -0
@@ -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"
package/ramspeed/Config.in new file +7 -0
@@ -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/
package/ramspeed/Makefile new file +14 -0
@@ -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
package/ramspeed/ramspeed.mk new file +28 -0
@@ -0,0 +1,28 @@ +############################################################# +# +# ramspeed +# +############################################################# + +RAMSPEED_VERSION = 2.6.0 +RAMSPEED_SITE = http://www.alasir.com/software/ramspeed + +ifeq ($(BR2_i386),y) +RAMSPEED_ARCH = i386 +else +ifeq ($(BR2_x864_64),y) +RAMSPEED_ARCH = x86_64 +endif +endif + +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))
Signature · 1 line
1.7.3.4
PATCH 1/1 ramspeed: new package
Le Tue, 29 May 2012 17:48:38 -0300,
Gustavo Zacarias <[email protected]> a ?crit :
package/ramspeed/ramspeed.mk line 22
Quoted 5 lines
package/ramspeed/ramspeed.mk new file +5
-0+define RAMSPEED_BUILD_CMDS + cp -f package/ramspeed/Makefile $(@D); \ + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + make -C $(@D) $(RAMSPEED_ARCH) +endef
Nitpicking: those two commands do not necessarily need to belong to the shell same command. I.e, you can write it as:
+define RAMSPEED_BUILD_CMDS
+ cp -f package/ramspeed/Makefile $(@D)
+ CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+ make -C $(@D) $(RAMSPEED_ARCH)
+endef
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH 1/1 ramspeed: new package
Quoted 11 lines · Thomas Petazzoni
Nitpicking: those two commands do not necessarily need to belong to the
shell same command. I.e, you can write it as:package/ramspeed/ramspeed.mk new file +5
-0+define RAMSPEED_BUILD_CMDS + cp -f package/ramspeed/Makefile $(@D) + CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ + make -C $(@D) $(RAMSPEED_ARCH) +endefThomas
Force of habit!
Sent a V2 with a few additional minor adjustments too. Regards.