Skip to contentSkip to conversation

package/stress-ng: new package

PATCH New Romain Naour 2 participants 2 messages Sep 9, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/stress-ng: new package

---
 package/Config.in                |  1 +
 package/stress-ng/Config.in      | 25 +++++++++++++++++++++++++
 package/stress-ng/stress-ng.hash |  2 ++
 package/stress-ng/stress-ng.mk   | 22 ++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 package/stress-ng/Config.in
 create mode 100644 package/stress-ng/stress-ng.hash
 create mode 100644 package/stress-ng/stress-ng.mk
package/Config.in +1 -0
index 9bd4190..b53e089 100644
@@ -97,6 +97,7 @@ endif
 	source "package/spidev_test/Config.in"
 	source "package/strace/Config.in"
 	source "package/stress/Config.in"
+	source "package/stress-ng/Config.in"
 	source "package/sysdig/Config.in"
 	source "package/sysprof/Config.in"
 	source "package/tinymembench/Config.in"
package/stress-ng/Config.in new file +25 -0
new file mode 100644
index 0000000..cdf9984
@@ -0,0 +1,25 @@
+config BR2_PACKAGE_STRESS_NG
+	bool "stress-ng"
+	depends on BR2_USE_MMU # fork()
+	# disabled on musl: stress-malloc.c needs mallopt() and M_MMAP_THRESHOLD
+	# disabled on uClibc: stress-aio.c needs aio.h
+	depends on BR2_TOOLCHAIN_USES_GLIBC
+	# perf.c needs PERF_COUNT_HW_STALLED_CYCLES_FRONTEND
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
+	depends on !BR2_microblaze # keyutils
+	depends on !BR2_STATIC_LIBS # keyutils
+	select BR2_PACKAGE_KEYUTILS # stress-key.c needs keyutils.h
+	select BR2_PACKAGE_ATTR # stress-xattr.c needs xattr.h
+	help
+	  stress-ng will stress test a computer system in various
+	  selectable ways. It was designed to exercise various physical
+	  subsystems of a computer as well as the various operating
+	  system kernel interfaces.
+
+	  http://kernel.ubuntu.com/~cking/stress-ng/
+
+comment "stress-ng needs a glibc toolchain w/ dynamic library, headers >= 3.0"
+	depends on !BR2_microblaze
+	depends on BR2_USE_MMU
+	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 \
+		|| !BR2_TOOLCHAIN_USES_GLIBC
package/stress-ng/stress-ng.hash new file +2 -0
new file mode 100644
index 0000000..4979303
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	9d17dffafdf8dd71eb5c191973b65d4eb2964ecc31f1d01ad188fd03a0c49f6c	stress-ng-0.04.16.tar.gz
package/stress-ng/stress-ng.mk new file +22 -0
new file mode 100644
index 0000000..e4e4fec
@@ -0,0 +1,22 @@
+################################################################################
+#
+# stress-ng
+#
+################################################################################
+
+STRESS_NG_VERSION = 0.04.16
+STRESS_NG_SITE = http://kernel.ubuntu.com/~cking/tarballs/stress-ng/
+STRESS_NG_LICENSE = GPLv2
+STRESS_NG_LICENSE_FILES = COPYING
+
+STRESS_NG_DEPENDENCIES = attr keyutils
+
+define STRESS_NG_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define STRESS_NG_INSTALL_TARGET_CMDS
+	$(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/1 package/stress-ng: new package

Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Naour <[email protected]> writes:

---
 package/Config.in                |  1 +
 package/stress-ng/Config.in      | 25 +++++++++++++++++++++++++
 package/stress-ng/stress-ng.hash |  2 ++
 package/stress-ng/stress-ng.mk   | 22 ++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 package/stress-ng/Config.in
 create mode 100644 package/stress-ng/stress-ng.hash
 create mode 100644 package/stress-ng/stress-ng.mk

+++ b/package/stress-ng/stress-ng.mk

package/stress-ng/stress-ng.mk line 10

Quoted 10 lines
package/stress-ng/stress-ng.mk new file +10 -0
@@ -0,0 +1,22 @@
+################################################################################
+#
+# stress-ng
+#
+################################################################################
+
+STRESS_NG_VERSION = 0.04.16
+STRESS_NG_SITE = http://kernel.ubuntu.com/~cking/tarballs/stress-ng/
+STRESS_NG_LICENSE = GPLv2
+STRESS_NG_LICENSE_FILES = COPYING

All the source files seem to have the 'or (at your option) any later version' text, so I've made this GPLv2+ and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard