cpuburn-arm: new package
PATCH 1/1 cpuburn-arm: new package
cpuburn-arm burns CPU cycles to generate as much heat as possible. Useful for stress testing.
--- DEVELOPERS | 1 + package/Config.in | 1 + package/cpuburn-arm/Config.in | 14 +++++++++++++ package/cpuburn-arm/cpuburn-arm.hash | 3 +++ package/cpuburn-arm/cpuburn-arm.mk | 31 ++++++++++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 package/cpuburn-arm/Config.in create mode 100644 package/cpuburn-arm/cpuburn-arm.hash create mode 100644 package/cpuburn-arm/cpuburn-arm.mk
DEVELOPERS +1 -0
@@ -274,6 +274,7 @@ N: Baruch Siach <[email protected]> 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/
package/Config.in +1 -0
@@ -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"
package/cpuburn-arm/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_CPUBURN_ARM_ARCH_SUPPORT + bool + default y + depends on BR2_cortex_a7 || BR2_cortex_a8 || BR2_cortex_a9 || \ + BR2_cortex_a53 + +config BR2_PACKAGE_CPUBURN_ARM + bool "cpuburn-arm" + depends on BR2_PACKAGE_CPUBURN_ARM_ARCH_SUPPORT + help + Make ARM cores generate as much heat as possible. Supports + Cortex A7/A8/A9/A53. + + https://github.com/ssvb/cpuburn-arm
package/cpuburn-arm/cpuburn-arm.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 354381ec8c352e6c84875ac034004df44b0ed0ac097c400b8d2e47652815c3a2 cpuburn-arm-ad7e646700d14b81413297bda02fb7fe96613c3f.tar.gz +sha256 47f10095a04d16c8d8d52598371fa01b6a6e87134083b9ec3c43d83ff8576f55 cpuburn-a7.S
package/cpuburn-arm/cpuburn-arm.mk new file +31 -0
@@ -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))
Signature · 1 line
2.24.0
PATCH 1/1 cpuburn-arm: new package
Hello,
Quoted 4 lines · On Wed, 20 Nov 2019 14:45:23 +0200 Baruch Siach <[email protected]> wrote:
cpuburn-arm burns CPU cycles to generate as much heat as possible. Useful for stress testing.
Signed-off-by Baruch Siach <[email protected]>
Commit title lacks package/, i.e package/cpuburn-arm: new package.
package/cpuburn-arm/Config.in line 1
Quoted 7 lines
package/cpuburn-arm/Config.in new file +1
-0@@ -0,0 +1,14 @@ +config BR2_PACKAGE_CPUBURN_ARM_ARCH_SUPPORT
..._ARCH_SUPPORTS
package/cpuburn-arm/Config.in line 5
Quoted 4 lines
package/cpuburn-arm/Config.in new file +4
-0+ bool + default y + depends on BR2_cortex_a7 || BR2_cortex_a8 || BR2_cortex_a9 || \ + BR2_cortex_a53
I'm not sure we really need this option when it's only used in a single place, but if you do want the option, use this syntax:
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
Otherwise looks good. Probably not needed to send a new iteration just for my minor comments, they can be taken into account when applying.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Yann E. MORIN
AppliedPATCH 1/1 cpuburn-arm: new package
In reply to Baruch SiachBaruch, All,
On 2019-11-20 14:45 +0200, Baruch Siach spake thusly:
Quoted 4 lines
cpuburn-arm burns CPU cycles to generate as much heat as possible. Useful for stress testing.
Signed-off-by Baruch Siach <[email protected]>
Applied to next, after taking into account the comnments from Thomas. Thanks!
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'