This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
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
depends on !BR2_TOOLCHAIN_USES_MUSL
# perf.c needs PERF_COUNT_HW_REF_CPU_CYCLES
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
# fenv.h lacks FE_INVALID, FE_OVERFLOW & FE_UNDERFLOW on nios2 and ARC
depends on !BR2_nios2
depends on !BR2_arc
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 or uClibc toolchain w/ dynamic library, headers >= 3.3"
depends on !BR2_nios2 && !BR2_arc
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3 \
|| BR2_TOOLCHAIN_USES_MUSL

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 ea1ba0e96637d7ecc0d2b08c981c4fcb3e7753ca7d64d76210154440b9a194e6 stress-ng-0.09.58.tar.xz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING

View File

@@ -0,0 +1,30 @@
################################################################################
#
# stress-ng
#
################################################################################
STRESS_NG_VERSION = 0.09.58
STRESS_NG_SOURCE = stress-ng-$(STRESS_NG_VERSION).tar.xz
STRESS_NG_SITE = http://kernel.ubuntu.com/~cking/tarballs/stress-ng
STRESS_NG_LICENSE = GPL-2.0+
STRESS_NG_LICENSE_FILES = COPYING
STRESS_NG_DEPENDENCIES = attr keyutils
ifeq ($(BR2_PACKAGE_LIBBSD),y)
STRESS_NG_DEPENDENCIES += libbsd
endif
define STRESS_NG_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
# Don't use make install otherwise stress-ng will be rebuild without
# required link libraries if any. Furthermore, using INSTALL allow to
# set the file permission correcly on the target.
define STRESS_NG_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/stress-ng $(TARGET_DIR)/usr/bin/stress-ng
endef
$(eval $(generic-package))