initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,47 @@
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
+12
View File
@@ -0,0 +1,12 @@
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
+3
View File
@@ -0,0 +1,3 @@
# Locally calculated
sha256 e37a2682065b2778f2fa7f22bd59472f5ca2191be48503952ae020b8f023f23d tinymembench-0.4.tar.gz
sha256 8ba473aced4630aee2808efe17b53e904a9d68a9b3361de491717f9a4e75da39 LICENSE
+21
View File
@@ -0,0 +1,21 @@
################################################################################
#
# 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))