package/cpuburn-arm: new package
cpuburn-arm burns CPU cycles to generate as much heat as possible. Useful for stress testing. Signed-off-by: Baruch Siach <baruch@tkos.co.il> [yann.morin.1998@free.fr: - fix title (Thomas) - simplify and rename _ARCH_SUPPORTS (Thomas) ] Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
d66e515ea9
commit
ecaede1d82
@ -276,6 +276,7 @@ N: Baruch Siach <baruch@tkos.co.il>
|
||||
F: board/solidrun/clearfog_gt_8k/
|
||||
F: configs/solidrun_clearfog_gt_8k_defconfig
|
||||
F: package/18xx-ti-utils/
|
||||
F: package/cpuburn-arm/
|
||||
F: package/daemon/
|
||||
F: package/dropbear/
|
||||
F: package/ebtables/
|
||||
|
@ -418,6 +418,7 @@ endmenu
|
||||
source "package/cbootimage/Config.in"
|
||||
source "package/cc-tool/Config.in"
|
||||
source "package/cdrkit/Config.in"
|
||||
source "package/cpuburn-arm/Config.in"
|
||||
source "package/cryptsetup/Config.in"
|
||||
source "package/cwiid/Config.in"
|
||||
source "package/dahdi-linux/Config.in"
|
||||
|
15
package/cpuburn-arm/Config.in
Normal file
15
package/cpuburn-arm/Config.in
Normal file
@ -0,0 +1,15 @@
|
||||
config BR2_PACKAGE_CPUBURN_ARM_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_cortex_a7
|
||||
default y if BR2_cortex_a8
|
||||
default y if BR2_cortex_a9
|
||||
default y if BR2_cortex_a53
|
||||
|
||||
config BR2_PACKAGE_CPUBURN_ARM
|
||||
bool "cpuburn-arm"
|
||||
depends on BR2_PACKAGE_CPUBURN_ARM_ARCH_SUPPORTS
|
||||
help
|
||||
Make ARM cores generate as much heat as possible. Supports
|
||||
Cortex A7/A8/A9/A53.
|
||||
|
||||
https://github.com/ssvb/cpuburn-arm
|
3
package/cpuburn-arm/cpuburn-arm.hash
Normal file
3
package/cpuburn-arm/cpuburn-arm.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 354381ec8c352e6c84875ac034004df44b0ed0ac097c400b8d2e47652815c3a2 cpuburn-arm-ad7e646700d14b81413297bda02fb7fe96613c3f.tar.gz
|
||||
sha256 47f10095a04d16c8d8d52598371fa01b6a6e87134083b9ec3c43d83ff8576f55 cpuburn-a7.S
|
31
package/cpuburn-arm/cpuburn-arm.mk
Normal file
31
package/cpuburn-arm/cpuburn-arm.mk
Normal file
@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# cpuburn-arm
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CPUBURN_ARM_VERSION = ad7e646700d14b81413297bda02fb7fe96613c3f
|
||||
CPUBURN_ARM_SITE = $(call github,ssvb,cpuburn-arm,$(CPUBURN_ARM_VERSION))
|
||||
CPUBURN_ARM_LICENSE = MIT
|
||||
CPUBURN_ARM_LICENSE_FILES = cpuburn-a7.S
|
||||
|
||||
ifeq ($(BR2_cortex_a7),y)
|
||||
CPUBURN_ARM_SRC = cpuburn-a7.S
|
||||
else ifeq ($(BR2_cortex_a8),y)
|
||||
CPUBURN_ARM_SRC = cpuburn-a8.S
|
||||
else ifeq ($(BR2_cortex_a9),y)
|
||||
CPUBURN_ARM_SRC = cpuburn-a9.S
|
||||
else ifeq ($(BR2_cortex_a53),y)
|
||||
CPUBURN_ARM_SRC = cpuburn-a53.S
|
||||
endif
|
||||
|
||||
define CPUBURN_ARM_BUILD_CMDS
|
||||
$(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/cpuburn \
|
||||
$(@D)/$(CPUBURN_ARM_SRC)
|
||||
endef
|
||||
|
||||
define CPUBURN_ARM_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 $(@D)/cpuburn $(TARGET_DIR)/usr/bin/cpuburn
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue
Block a user