mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
https://github.com/ColinIanKing/stress-ng/releases/tag/V0.21.02 https://github.com/ColinIanKing/stress-ng/releases/tag/V0.21.01 Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# stress-ng
|
|
#
|
|
################################################################################
|
|
|
|
STRESS_NG_VERSION = 0.21.02
|
|
STRESS_NG_SITE = $(call github,ColinIanKing,stress-ng,V$(STRESS_NG_VERSION))
|
|
STRESS_NG_LICENSE = GPL-2.0+
|
|
STRESS_NG_LICENSE_FILES = COPYING
|
|
|
|
STRESS_NG_MAKE_FLAGS = \
|
|
PRESERVE_CFLAGS=1
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBSD),y)
|
|
STRESS_NG_DEPENDENCIES += libbsd
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_KEYUTILS),y)
|
|
STRESS_NG_DEPENDENCIES += keyutils
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
STRESS_NG_MAKE_FLAGS += LDFLAGS="$(TARGET_LDFLAGS) -latomic"
|
|
endif
|
|
|
|
define STRESS_NG_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(STRESS_NG_MAKE_FLAGS)
|
|
endef
|
|
|
|
# Don't use make install otherwise stress-ng will be rebuilt without
|
|
# required link libraries if any. Furthermore, using INSTALL allows to
|
|
# set the file permission correctly 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))
|