All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/tinymembench: drop package
@ 2024-02-08 19:54 Fabrice Fontaine
  2024-02-11 21:42 ` Yann E. MORIN
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-02-08 19:54 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

As advised by Thomas Petazzoni in [1], drop tinymembench which is
abandonned (last commit in 2017). Moreover, it raises the following
build failure in Thumb mode:

/tmp/ccaZHrla.s:40: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
/tmp/ccaZHrla.s:43: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
main.c:45: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode
main.c:46: Error: unshifted register required -- `and r8,r7,r2,lsr#16'
main.c:47: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode
main.c:48: Error: unshifted register required -- `and r9,r6,r2,lsr#8'
main.c:49: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode

[1]: https://patchwork.ozlabs.org/project/buildroot/patch/20240114135446.1156025-1-fontaine.fabrice@gmail.com/

Fixes:
 - http://autobuild.buildroot.org/results/1e359c294a8d71fb1833e5d04a6bc7d4fd533510
 - http://autobuild.buildroot.org/results/c06010d7a2bdb33a1707266133a3880e14be7657

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .checkpackageignore                           |  1 -
 Config.in.legacy                              |  6 +++
 DEVELOPERS                                    |  1 -
 package/Config.in                             |  1 -
 ...ix-build-on-Thumb-only-architectures.patch | 47 -------------------
 package/tinymembench/Config.in                | 12 -----
 package/tinymembench/tinymembench.hash        |  3 --
 package/tinymembench/tinymembench.mk          | 21 ---------
 8 files changed, 6 insertions(+), 86 deletions(-)
 delete mode 100644 package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
 delete mode 100644 package/tinymembench/Config.in
 delete mode 100644 package/tinymembench/tinymembench.hash
 delete mode 100644 package/tinymembench/tinymembench.mk

diff --git a/.checkpackageignore b/.checkpackageignore
index 4a1041a84a..a2b5c14a94 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -1265,7 +1265,6 @@ package/tinyalsa/0001-include-time.h-before-asound.h.patch Upstream
 package/tinycbor/0001-Makefile-add-DISABLE_WERROR.patch Upstream
 package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch Upstream
 package/tinydtls/0001-sha2-sha2.c-fix-build-on-big-endian.patch Upstream
-package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch Upstream
 package/tinyproxy/0001-prevent-junk-from-showing-up-in-error-page-in-invalid-requests.patch Upstream
 package/tinyxml/0001-In-stamp-always-advance-the-pointer-if-p-0xef.patch Upstream
 package/tpm2-abrmd/S80tpm2-abrmd Indent Shellcheck Variables
diff --git a/Config.in.legacy b/Config.in.legacy
index 5e0db855cc..a869279af7 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2024.02"
 
+config BR2_PACKAGE_TINYMEMBENCH
+	bool "tinymembench removed"
+	select BR2_LEGACY
+	help
+	  tinymembench has been removed due to being abandoned.
+
 config BR2_PACKAGE_DAVINCI_BOOTCOUNT
 	bool "davinci-bootcount has been renamed"
 	select BR2_LEGACY
diff --git a/DEVELOPERS b/DEVELOPERS
index eeca05cd94..5632d2771d 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1064,7 +1064,6 @@ F:	package/snort3/
 F:	package/suricata/
 F:	package/tinycbor/
 F:	package/tinydtls/
-F:	package/tinymembench/
 F:	package/whois/
 F:	package/x11r7/xlib_libXpresent/
 F:	package/zeek/
diff --git a/package/Config.in b/package/Config.in
index ee4058155d..ebcc8c2655 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -156,7 +156,6 @@ menu "Debugging, profiling and benchmark"
 	source "package/sysdig/Config.in"
 	source "package/sysprof/Config.in"
 	source "package/tcf-agent/Config.in"
-	source "package/tinymembench/Config.in"
 	source "package/trace-cmd/Config.in"
 	source "package/trinity/Config.in"
 	source "package/uclibc-ng-test/Config.in"
diff --git a/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch b/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
deleted file mode 100644
index 88559ec012..0000000000
--- a/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 034a3552e9700c6d424bd706db106f5bce1f5a5e Mon Sep 17 00:00:00 2001
-From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-Date: Fri, 11 Nov 2016 21:49:39 +0100
-Subject: [PATCH] arm: fix build on Thumb-only architectures
-
-Building tinymembench for ARM Cortex-M currently fails, because the
-arm-neon.S file contains ARM code that doesn't build on Thumb-only
-architectures. To account for this and fix the build for Cortex-M,
-this patch adjusts the compile time condition to also verify that the
-architecture supports the ARM instruction set, by testing the
-__ARM_ARCH_ISA_ARM compiler define.
-
-Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
----
- arm-neon.S | 2 +-
- asm-opt.c  | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/arm-neon.S b/arm-neon.S
-index 4db78ce..19c30ad 100644
---- a/arm-neon.S
-+++ b/arm-neon.S
-@@ -21,7 +21,7 @@
-  * DEALINGS IN THE SOFTWARE.
-  */
- 
--#ifdef __arm__
-+#if defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
- 
- .text
- .fpu neon
-diff --git a/asm-opt.c b/asm-opt.c
-index 9da4596..eba1183 100644
---- a/asm-opt.c
-+++ b/asm-opt.c
-@@ -202,7 +202,7 @@ bench_info *get_asm_framebuffer_benchmarks(void)
-         return empty;
- }
- 
--#elif defined(__arm__)
-+#elif defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
- 
- #include "arm-neon.h"
- 
--- 
-2.7.4
-
diff --git a/package/tinymembench/Config.in b/package/tinymembench/Config.in
deleted file mode 100644
index 8f6e1a2b35..0000000000
--- a/package/tinymembench/Config.in
+++ /dev/null
@@ -1,12 +0,0 @@
-config BR2_PACKAGE_TINYMEMBENCH
-	bool "tinymembench"
-	depends on !BR2_MIPS_NABI32 && !BR2_MIPS_NABI64
-	help
-	  Tinymembench is a simple memory benchmark program, which
-	  tries to measure the peak bandwidth of sequential memory
-	  accesses and the latency of random memory accesses.
-	  Bandwidth is measured by running different assembly code for
-	  the aligned memory blocks and attempting different prefetch
-	  strategies.
-
-	  https://github.com/ssvb/tinymembench
diff --git a/package/tinymembench/tinymembench.hash b/package/tinymembench/tinymembench.hash
deleted file mode 100644
index 04dbd30f81..0000000000
--- a/package/tinymembench/tinymembench.hash
+++ /dev/null
@@ -1,3 +0,0 @@
-# Locally calculated
-sha256  e37a2682065b2778f2fa7f22bd59472f5ca2191be48503952ae020b8f023f23d  tinymembench-0.4.tar.gz
-sha256  8ba473aced4630aee2808efe17b53e904a9d68a9b3361de491717f9a4e75da39  LICENSE
diff --git a/package/tinymembench/tinymembench.mk b/package/tinymembench/tinymembench.mk
deleted file mode 100644
index 016d680ce7..0000000000
--- a/package/tinymembench/tinymembench.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-################################################################################
-#
-# tinymembench
-#
-################################################################################
-
-TINYMEMBENCH_VERSION = 0.4
-TINYMEMBENCH_SITE = $(call github,ssvb,tinymembench,v$(TINYMEMBENCH_VERSION))
-TINYMEMBENCH_LICENSE = MIT
-TINYMEMBENCH_LICENSE_FILES = LICENSE
-
-define TINYMEMBENCH_BUILD_CMDS
-	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
-endef
-
-define TINYMEMBENCH_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0755 -D $(@D)/tinymembench \
-		$(TARGET_DIR)/usr/bin/tinymembench
-endef
-
-$(eval $(generic-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/tinymembench: drop package
  2024-02-08 19:54 [Buildroot] [PATCH 1/1] package/tinymembench: drop package Fabrice Fontaine
@ 2024-02-11 21:42 ` Yann E. MORIN
  0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2024-02-11 21:42 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

Fabrice, All,

On 2024-02-08 20:54 +0100, Fabrice Fontaine spake thusly:
> As advised by Thomas Petazzoni in [1], drop tinymembench which is
> abandonned (last commit in 2017). Moreover, it raises the following
> build failure in Thumb mode:
> 
> /tmp/ccaZHrla.s:40: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
> /tmp/ccaZHrla.s:43: Error: instruction not supported in Thumb16 mode -- `subs r1,r1,#16'
> main.c:45: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode
> main.c:46: Error: unshifted register required -- `and r8,r7,r2,lsr#16'
> main.c:47: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode
> main.c:48: Error: unshifted register required -- `and r9,r6,r2,lsr#8'
> main.c:49: Error: selected processor does not support `mla r2,r10,r2,r5' in Thumb mode
> 
> [1]: https://patchwork.ozlabs.org/project/buildroot/patch/20240114135446.1156025-1-fontaine.fabrice@gmail.com/
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/1e359c294a8d71fb1833e5d04a6bc7d4fd533510
>  - http://autobuild.buildroot.org/results/c06010d7a2bdb33a1707266133a3880e14be7657
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  .checkpackageignore                           |  1 -
>  Config.in.legacy                              |  6 +++
>  DEVELOPERS                                    |  1 -
>  package/Config.in                             |  1 -
>  ...ix-build-on-Thumb-only-architectures.patch | 47 -------------------
>  package/tinymembench/Config.in                | 12 -----
>  package/tinymembench/tinymembench.hash        |  3 --
>  package/tinymembench/tinymembench.mk          | 21 ---------
>  8 files changed, 6 insertions(+), 86 deletions(-)
>  delete mode 100644 package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
>  delete mode 100644 package/tinymembench/Config.in
>  delete mode 100644 package/tinymembench/tinymembench.hash
>  delete mode 100644 package/tinymembench/tinymembench.mk
> 
> diff --git a/.checkpackageignore b/.checkpackageignore
> index 4a1041a84a..a2b5c14a94 100644
> --- a/.checkpackageignore
> +++ b/.checkpackageignore
> @@ -1265,7 +1265,6 @@ package/tinyalsa/0001-include-time.h-before-asound.h.patch Upstream
>  package/tinycbor/0001-Makefile-add-DISABLE_WERROR.patch Upstream
>  package/tinycompress/0001-wave-add-time.h-missing-header-inclusion.patch Upstream
>  package/tinydtls/0001-sha2-sha2.c-fix-build-on-big-endian.patch Upstream
> -package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch Upstream
>  package/tinyproxy/0001-prevent-junk-from-showing-up-in-error-page-in-invalid-requests.patch Upstream
>  package/tinyxml/0001-In-stamp-always-advance-the-pointer-if-p-0xef.patch Upstream
>  package/tpm2-abrmd/S80tpm2-abrmd Indent Shellcheck Variables
> diff --git a/Config.in.legacy b/Config.in.legacy
> index 5e0db855cc..a869279af7 100644
> --- a/Config.in.legacy
> +++ b/Config.in.legacy
> @@ -146,6 +146,12 @@ endif
>  
>  comment "Legacy options removed in 2024.02"
>  
> +config BR2_PACKAGE_TINYMEMBENCH
> +	bool "tinymembench removed"
> +	select BR2_LEGACY
> +	help
> +	  tinymembench has been removed due to being abandoned.
> +
>  config BR2_PACKAGE_DAVINCI_BOOTCOUNT
>  	bool "davinci-bootcount has been renamed"
>  	select BR2_LEGACY
> diff --git a/DEVELOPERS b/DEVELOPERS
> index eeca05cd94..5632d2771d 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1064,7 +1064,6 @@ F:	package/snort3/
>  F:	package/suricata/
>  F:	package/tinycbor/
>  F:	package/tinydtls/
> -F:	package/tinymembench/
>  F:	package/whois/
>  F:	package/x11r7/xlib_libXpresent/
>  F:	package/zeek/
> diff --git a/package/Config.in b/package/Config.in
> index ee4058155d..ebcc8c2655 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -156,7 +156,6 @@ menu "Debugging, profiling and benchmark"
>  	source "package/sysdig/Config.in"
>  	source "package/sysprof/Config.in"
>  	source "package/tcf-agent/Config.in"
> -	source "package/tinymembench/Config.in"
>  	source "package/trace-cmd/Config.in"
>  	source "package/trinity/Config.in"
>  	source "package/uclibc-ng-test/Config.in"
> diff --git a/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch b/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
> deleted file mode 100644
> index 88559ec012..0000000000
> --- a/package/tinymembench/0001-arm-fix-build-on-Thumb-only-architectures.patch
> +++ /dev/null
> @@ -1,47 +0,0 @@
> -From 034a3552e9700c6d424bd706db106f5bce1f5a5e Mon Sep 17 00:00:00 2001
> -From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> -Date: Fri, 11 Nov 2016 21:49:39 +0100
> -Subject: [PATCH] arm: fix build on Thumb-only architectures
> -
> -Building tinymembench for ARM Cortex-M currently fails, because the
> -arm-neon.S file contains ARM code that doesn't build on Thumb-only
> -architectures. To account for this and fix the build for Cortex-M,
> -this patch adjusts the compile time condition to also verify that the
> -architecture supports the ARM instruction set, by testing the
> -__ARM_ARCH_ISA_ARM compiler define.
> -
> -Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ----
> - arm-neon.S | 2 +-
> - asm-opt.c  | 2 +-
> - 2 files changed, 2 insertions(+), 2 deletions(-)
> -
> -diff --git a/arm-neon.S b/arm-neon.S
> -index 4db78ce..19c30ad 100644
> ---- a/arm-neon.S
> -+++ b/arm-neon.S
> -@@ -21,7 +21,7 @@
> -  * DEALINGS IN THE SOFTWARE.
> -  */
> - 
> --#ifdef __arm__
> -+#if defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
> - 
> - .text
> - .fpu neon
> -diff --git a/asm-opt.c b/asm-opt.c
> -index 9da4596..eba1183 100644
> ---- a/asm-opt.c
> -+++ b/asm-opt.c
> -@@ -202,7 +202,7 @@ bench_info *get_asm_framebuffer_benchmarks(void)
> -         return empty;
> - }
> - 
> --#elif defined(__arm__)
> -+#elif defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
> - 
> - #include "arm-neon.h"
> - 
> --- 
> -2.7.4
> -
> diff --git a/package/tinymembench/Config.in b/package/tinymembench/Config.in
> deleted file mode 100644
> index 8f6e1a2b35..0000000000
> --- a/package/tinymembench/Config.in
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -config BR2_PACKAGE_TINYMEMBENCH
> -	bool "tinymembench"
> -	depends on !BR2_MIPS_NABI32 && !BR2_MIPS_NABI64
> -	help
> -	  Tinymembench is a simple memory benchmark program, which
> -	  tries to measure the peak bandwidth of sequential memory
> -	  accesses and the latency of random memory accesses.
> -	  Bandwidth is measured by running different assembly code for
> -	  the aligned memory blocks and attempting different prefetch
> -	  strategies.
> -
> -	  https://github.com/ssvb/tinymembench
> diff --git a/package/tinymembench/tinymembench.hash b/package/tinymembench/tinymembench.hash
> deleted file mode 100644
> index 04dbd30f81..0000000000
> --- a/package/tinymembench/tinymembench.hash
> +++ /dev/null
> @@ -1,3 +0,0 @@
> -# Locally calculated
> -sha256  e37a2682065b2778f2fa7f22bd59472f5ca2191be48503952ae020b8f023f23d  tinymembench-0.4.tar.gz
> -sha256  8ba473aced4630aee2808efe17b53e904a9d68a9b3361de491717f9a4e75da39  LICENSE
> diff --git a/package/tinymembench/tinymembench.mk b/package/tinymembench/tinymembench.mk
> deleted file mode 100644
> index 016d680ce7..0000000000
> --- a/package/tinymembench/tinymembench.mk
> +++ /dev/null
> @@ -1,21 +0,0 @@
> -################################################################################
> -#
> -# tinymembench
> -#
> -################################################################################
> -
> -TINYMEMBENCH_VERSION = 0.4
> -TINYMEMBENCH_SITE = $(call github,ssvb,tinymembench,v$(TINYMEMBENCH_VERSION))
> -TINYMEMBENCH_LICENSE = MIT
> -TINYMEMBENCH_LICENSE_FILES = LICENSE
> -
> -define TINYMEMBENCH_BUILD_CMDS
> -	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
> -endef
> -
> -define TINYMEMBENCH_INSTALL_TARGET_CMDS
> -	$(INSTALL) -m 0755 -D $(@D)/tinymembench \
> -		$(TARGET_DIR)/usr/bin/tinymembench
> -endef
> -
> -$(eval $(generic-package))
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-11 21:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-08 19:54 [Buildroot] [PATCH 1/1] package/tinymembench: drop package Fabrice Fontaine
2024-02-11 21:42 ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.