1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# stress-ng 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSTRESS_NG_VERSION = 0.13.01 8*4882a593SmuzhiyunSTRESS_NG_SITE = $(call github,ColinIanKing,stress-ng,V$(STRESS_NG_VERSION)) 9*4882a593SmuzhiyunSTRESS_NG_LICENSE = GPL-2.0+ 10*4882a593SmuzhiyunSTRESS_NG_LICENSE_FILES = COPYING 11*4882a593Smuzhiyun 12*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBBSD),y) 13*4882a593SmuzhiyunSTRESS_NG_DEPENDENCIES += libbsd 14*4882a593Smuzhiyunendif 15*4882a593Smuzhiyun 16*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_KEYUTILS),y) 17*4882a593SmuzhiyunSTRESS_NG_DEPENDENCIES += keyutils 18*4882a593Smuzhiyunendif 19*4882a593Smuzhiyun 20*4882a593Smuzhiyundefine STRESS_NG_BUILD_CMDS 21*4882a593Smuzhiyun $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) 22*4882a593Smuzhiyunendef 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Don't use make install otherwise stress-ng will be rebuild without 25*4882a593Smuzhiyun# required link libraries if any. Furthermore, using INSTALL allow to 26*4882a593Smuzhiyun# set the file permission correcly on the target. 27*4882a593Smuzhiyundefine STRESS_NG_INSTALL_TARGET_CMDS 28*4882a593Smuzhiyun $(INSTALL) -m 0755 -D $(@D)/stress-ng $(TARGET_DIR)/usr/bin/stress-ng 29*4882a593Smuzhiyunendef 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun$(eval $(generic-package)) 32