ecaede1d82
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>
32 lines
889 B
Makefile
32 lines
889 B
Makefile
################################################################################
|
|
#
|
|
# 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))
|