summaryrefslogtreecommitdiffstats
path: root/meta-ti-test
diff options
context:
space:
mode:
authorRyan Eatmon <reatmon@ti.com>2026-04-28 11:16:25 -0500
committerRyan Eatmon <reatmon@ti.com>2026-04-29 10:37:37 -0500
commit7018264d66786eafbe2a185d73e132209d2fc443 (patch)
tree7909c1c922ff5fcad7c405451caf59546b34a76e /meta-ti-test
parent7c4b1ed307c69ad519f559fa8ecca3bf0101e420 (diff)
downloadmeta-ti-7018264d66786eafbe2a185d73e132209d2fc443.tar.gz
meta-ti-test: Import the recipes-benchmark recipes
We are moving the meta-arago-test layer to meta-ti-test. This commit imports all of the recipes under recipes-benchmark. Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-test')
-rw-r--r--meta-ti-test/licenses/Stream_Benchmark_License34
-rw-r--r--meta-ti-test/recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb23
-rw-r--r--meta-ti-test/recipes-benchmark/arm-ddr-bandwidth/arm-ddr-bandwidth.bb28
-rw-r--r--meta-ti-test/recipes-benchmark/coremark/coremark-ti.inc3
-rw-r--r--meta-ti-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch41
-rw-r--r--meta-ti-test/recipes-benchmark/coremark/coremark_%.bbappend4
-rw-r--r--meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte-ti.inc1
-rw-r--r--meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte_%.bbappend4
-rw-r--r--meta-ti-test/recipes-benchmark/openssl-perf/openssl-perf.bb49
-rw-r--r--meta-ti-test/recipes-benchmark/stream/stream_%.bbappend13
-rw-r--r--meta-ti-test/recipes-benchmark/stream/stream_5.10.bb26
11 files changed, 226 insertions, 0 deletions
diff --git a/meta-ti-test/licenses/Stream_Benchmark_License b/meta-ti-test/licenses/Stream_Benchmark_License
new file mode 100644
index 00000000..cf1c8e00
--- /dev/null
+++ b/meta-ti-test/licenses/Stream_Benchmark_License
@@ -0,0 +1,34 @@
1*=======================================================================
2*-----------------------------------------------------------------------
3* Copyright 1991-2003: John D. McCalpin
4*-----------------------------------------------------------------------
5* License:
6* 1. You are free to use this program and/or to redistribute
7* this program.
8* 2. You are free to modify this program for your own use,
9* including commercial use, subject to the publication
10* restrictions in item 3.
11* 3. You are free to publish results obtained from running this
12* program, or from works that you derive from this program,
13* with the following limitations:
14* 3a. In order to be referred to as "STREAM benchmark results",
15* published results must be in conformance to the STREAM
16* Run Rules, (briefly reviewed below) published at
17* http://www.cs.virginia.edu/stream/ref.html
18* and incorporated herein by reference.
19* As the copyright holder, John McCalpin retains the
20* right to determine conformity with the Run Rules.
21* 3b. Results based on modified source code or on runs not in
22* accordance with the STREAM Run Rules must be clearly
23* labelled whenever they are published. Examples of
24* proper labelling include:
25* "tuned STREAM benchmark results"
26* "based on a variant of the STREAM benchmark code"
27* Other comparable, clear and reasonable labelling is
28* acceptable.
29* 3c. Submission of results to the STREAM benchmark web site
30* is encouraged, but not required.
31* 4. Use of this program or creation of derived works based on this
32* program constitutes acceptance of these licensing restrictions.
33* 5. Absolutely no warranty is expressed or implied.
34*-----------------------------------------------------------------------
diff --git a/meta-ti-test/recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb b/meta-ti-test/recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb
new file mode 100644
index 00000000..8cdd1a6f
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb
@@ -0,0 +1,23 @@
1SUMMARY = "ARM Benchmarks"
2HOMEPAGE = "https://gforge.ti.com/gf/project/am_benchmarks/"
3LICENSE = "BSD-3-Clause"
4LIC_FILES_CHKSUM = "file://COPYING;md5=7aefb5e1cffc7b6a3ef18b803f957922"
5SECTION = "system"
6
7PR = "r13"
8
9BRANCH ?= "master"
10SRCREV = "fefaf9bdd6f36ab0cebaab8dbf34e5beb50f471c"
11
12SRC_URI = "git://git.ti.com/git/apps/arm_benchmarks.git;protocol=https;branch=${BRANCH}"
13
14do_compile() {
15 export CROSS_COMPILE=${TARGET_PREFIX}
16 export CFLAGS='${TARGET_CC_ARCH} -std=gnu11'
17 # build the release version
18 oe_runmake release CC="${CC}"
19}
20do_install() {
21
22 oe_runmake DESTDIR=${D} install
23}
diff --git a/meta-ti-test/recipes-benchmark/arm-ddr-bandwidth/arm-ddr-bandwidth.bb b/meta-ti-test/recipes-benchmark/arm-ddr-bandwidth/arm-ddr-bandwidth.bb
new file mode 100644
index 00000000..29db78c3
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/arm-ddr-bandwidth/arm-ddr-bandwidth.bb
@@ -0,0 +1,28 @@
1SUMMARY = "Benchmark for checking DDR bandwidth"
2HOMEPAGE = "https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/tree/arm_apps/arm_ddr_bandwidth/runLmDDRBandwidth.sh"
3LICENSE = "CC-BY-SA-3.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=6e0ae7214f6c74c149cb25f373057fa9"
5
6PV = "1.0"
7
8SRC_URI = " \
9 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/arm_apps/arm_ddr_bandwidth/runLmDDRBandwidth.sh;name=runLmDDRBandwidth \
10 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/LICENSE;name=license \
11"
12SRC_URI[runLmDDRBandwidth.sha256sum] = "67997d721b351344d8788200a15bb3640093045bc25f2b5307dd331ebd1556a3"
13SRC_URI[license.sha256sum] = "7febd1df714fa4b1e44fe0b0f73ceac7f9b9f97326695a0cc7074bd6c8d263e3"
14
15S = "${UNPACKDIR}"
16
17do_install() {
18 install -d ${D}${datadir}/matrix-gui-2.0/apps
19
20 install -d ${D}${bindir}
21 install -m 0755 ${S}/runLmDDRBandwidth.sh ${D}${bindir}/runLmDDRBandwidth.sh
22}
23
24FILES:${PN} = " \
25 ${datadir}/matrix-gui-2.0/apps \
26 ${bindir}/runLmDDRBandwidth.sh \
27"
28
diff --git a/meta-ti-test/recipes-benchmark/coremark/coremark-ti.inc b/meta-ti-test/recipes-benchmark/coremark/coremark-ti.inc
new file mode 100644
index 00000000..9a1d9b89
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/coremark/coremark-ti.inc
@@ -0,0 +1,3 @@
1FILESEXTRAPATHS:prepend := "${THISDIR}/coremark:"
2
3SRC_URI += "file://0001-core_main-Remove-printing-compiler-flags.patch"
diff --git a/meta-ti-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch b/meta-ti-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch
new file mode 100644
index 00000000..ef7c78b2
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch
@@ -0,0 +1,41 @@
1From 0af4e2298ccacc8afc0294b7a731f0e866155427 Mon Sep 17 00:00:00 2001
2From: Ryan Eatmon <reatmon@ti.com>
3Date: Mon, 1 Dec 2025 12:21:23 -0600
4Subject: [PATCH] core_main: Remove printing compiler flags
5
6Reproducible builds do not like including anything that references the
7build environment on the host machine. This would include printing out
8the COMPILER_FLAGS macro. Substitute it with "".
9
10Upstream-Status: Inappropriate [OE-Specific]
11
12Signed-off-by: Ryan Eatmon <reatmon@ti.com>
13---
14 core_main.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/core_main.c b/core_main.c
18index a4beeb6..f0ab87f 100644
19--- a/core_main.c
20+++ b/core_main.c
21@@ -380,7 +380,7 @@ for (i = 0; i < MULTITHREAD; i++)
22 ee_printf("Iterations : %lu\n",
23 (long unsigned)default_num_contexts * results[0].iterations);
24 ee_printf("Compiler version : %s\n", COMPILER_VERSION);
25- ee_printf("Compiler flags : %s\n", COMPILER_FLAGS);
26+ ee_printf("Compiler flags : %s\n", ""); //Reproducible build fix: COMPILER_FLAGS);
27 #if (MULTITHREAD > 1)
28 ee_printf("Parallel %s : %d\n", PARALLEL_METHOD, default_num_contexts);
29 #endif
30@@ -410,7 +410,7 @@ for (i = 0; i < MULTITHREAD; i++)
31 default_num_contexts * results[0].iterations
32 / time_in_secs(total_time),
33 COMPILER_VERSION,
34- COMPILER_FLAGS);
35+ ""); //Reproducible build fix: COMPILER_FLAGS);
36 #if defined(MEM_LOCATION) && !defined(MEM_LOCATION_UNSPEC)
37 ee_printf(" / %s", MEM_LOCATION);
38 #else
39--
402.43.0
41
diff --git a/meta-ti-test/recipes-benchmark/coremark/coremark_%.bbappend b/meta-ti-test/recipes-benchmark/coremark/coremark_%.bbappend
new file mode 100644
index 00000000..952d6e99
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/coremark/coremark_%.bbappend
@@ -0,0 +1,4 @@
1COREMARK_TI = ""
2COREMARK_TI:ti-soc = "coremark-ti.inc"
3
4require ${COREMARK_TI}
diff --git a/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte-ti.inc b/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte-ti.inc
new file mode 100644
index 00000000..f571f368
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte-ti.inc
@@ -0,0 +1 @@
ARM_INSTRUCTION_SET = "arm"
diff --git a/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte_%.bbappend b/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte_%.bbappend
new file mode 100644
index 00000000..dfe5ea96
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/nbench-byte/nbench-byte_%.bbappend
@@ -0,0 +1,4 @@
1NBENCH_BYTE_TI = ""
2NBENCH_BYTE_TI:ti-soc = "nbench-byte-ti.inc"
3
4require ${NBENCH_BYTE_TI}
diff --git a/meta-ti-test/recipes-benchmark/openssl-perf/openssl-perf.bb b/meta-ti-test/recipes-benchmark/openssl-perf/openssl-perf.bb
new file mode 100644
index 00000000..04a3fb79
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/openssl-perf/openssl-perf.bb
@@ -0,0 +1,49 @@
1SUMMARY = "Benchmarks for checking various OpenSSL performance functions"
2HOMEPAGE = "https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/tree/cryptos_apps_scripts/"
3LICENSE = "CC-BY-SA-3.0"
4LIC_FILES_CHKSUM = "file://${UNPACKDIR}/LICENSE;md5=6e0ae7214f6c74c149cb25f373057fa9"
5
6PV = "1.0"
7
8SRC_URI = " \
9 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_perf_scripts/openssl_perf.sh;name=openssl_perf \
10 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_aes256_encdec_scripts/openssl_aes256_encdec.sh;name=openssl_aes256_encdec \
11 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_display_cert_scripts/openssl_display_cert.sh;name=openssl_display_cert \
12 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_gen_cert_scripts/openssl_gen_cert.sh;name=openssl_gen_cert \
13 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_gen_pubkey_scripts/openssl_gen_pubkey.sh;name=openssl_gen_pubkey \
14 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_gen_sha1hash_scripts/openssl_gen_sha1hash.sh;name=openssl_gen_sha1hash \
15 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/cryptos_apps_scripts/openssl_start_server_scripts/openssl_start_server.sh;name=openssl_start_server \
16 https://git.ti.com/cgit/matrix-gui-v2/matrix-gui-v2-apps/plain/LICENSE;name=license \
17"
18SRC_URI[openssl_perf.sha256sum] = "5769e841b977d6a858da38826c2cf47c288ed642614c5b6f802409cb3601ab29"
19SRC_URI[openssl_aes256_encdec.sha256sum] = "1a488e3ba98f6f2e5f73c14681b0452ba902aecbb174e4e74b524dda4c5eda7a"
20SRC_URI[openssl_display_cert.sha256sum] = "fbe80fe1afe29f777e346ecd86d89e1f27cedc1bb745a9a9bc5cd38f2d566a3e"
21SRC_URI[openssl_gen_cert.sha256sum] = "47bfc80b88edebcc4d82ee3816bc05b95ca0d42c42e7f3b83e74fa6f9c6c01ef"
22SRC_URI[openssl_gen_pubkey.sha256sum] = "4581e2329afeb814602c4874ffa038d95a4bcc8b23df24d7be25822d0dd6c433"
23SRC_URI[openssl_gen_sha1hash.sha256sum] = "f338f8c3067ebb1c5710b16b91e8b9e38685b05fcc072060ec0c62bd10cefd97"
24SRC_URI[openssl_start_server.sha256sum] = "e23499210f701ef831d39a8c732f34f4b06fb3ba2d069c4a95ef25ae59f3c93e"
25SRC_URI[license.sha256sum] = "7febd1df714fa4b1e44fe0b0f73ceac7f9b9f97326695a0cc7074bd6c8d263e3"
26
27S = "${UNPACKDIR}"
28
29do_install() {
30 install -d ${D}${bindir}
31 install -m 0755 ${S}/openssl_perf.sh ${D}${bindir}/openssl_perf.sh
32 install -m 0755 ${S}/openssl_aes256_encdec.sh ${D}${bindir}/openssl_aes256_encdec.sh
33 install -m 0755 ${S}/openssl_display_cert.sh ${D}${bindir}/openssl_display_cert.sh
34 install -m 0755 ${S}/openssl_gen_cert.sh ${D}${bindir}/openssl_gen_cert.sh
35 install -m 0755 ${S}/openssl_gen_pubkey.sh ${D}${bindir}/openssl_gen_pubkey.sh
36 install -m 0755 ${S}/openssl_gen_sha1hash.sh ${D}${bindir}/openssl_gen_sha1hash.sh
37 install -m 0755 ${S}/openssl_start_server.sh ${D}${bindir}/openssl_start_server.sh
38}
39
40FILES:${PN} = "\
41 ${bindir}/openssl_perf.sh \
42 ${bindir}/openssl_aes256_encdec.sh \
43 ${bindir}/openssl_display_cert.sh \
44 ${bindir}/openssl_gen_cert.sh \
45 ${bindir}/openssl_gen_pubkey.sh \
46 ${bindir}/openssl_gen_sha1hash.sh \
47 ${bindir}/openssl_start_server.sh \
48"
49
diff --git a/meta-ti-test/recipes-benchmark/stream/stream_%.bbappend b/meta-ti-test/recipes-benchmark/stream/stream_%.bbappend
new file mode 100644
index 00000000..97e0c6a0
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/stream/stream_%.bbappend
@@ -0,0 +1,13 @@
1INSANE_SKIP:${PN} += "ldflags"
2INSANE_SKIP:${PN}-openmp += "ldflags"
3
4PR:append = ".ti1"
5
6BRANCH = "sdk"
7SRCREV = "96156d407d9a4e5fac4513f3d3f60a414b3355cd"
8
9do_compile:prepend() {
10 #Explicitly clear some variables to insure no unexpected optimizations are being passed in.
11 unset CFLAGS
12 unset LDFLAGS
13}
diff --git a/meta-ti-test/recipes-benchmark/stream/stream_5.10.bb b/meta-ti-test/recipes-benchmark/stream/stream_5.10.bb
new file mode 100644
index 00000000..484be34d
--- /dev/null
+++ b/meta-ti-test/recipes-benchmark/stream/stream_5.10.bb
@@ -0,0 +1,26 @@
1SUMMARY = "Stream Benchmark"
2HOMEPAGE = "http://www.cs.virginia.edu/stream/"
3LICENSE = "Stream_Benchmark_License"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
5SECTION = "system"
6
7PR = "r0"
8
9BRANCH ?= "master"
10SRCREV = "b66f2bab5d6d0b35732ef8406ae03873725a3306"
11
12SRC_URI = "git://git.ti.com/git/arago-project-org/stream.git;protocol=https;branch=${BRANCH}"
13
14PACKAGES =+ "${PN}-openmp"
15
16do_compile() {
17 oe_runmake CC="${CC}"
18}
19
20do_install() {
21 install -d ${D}/${bindir}
22 install -m 0755 ${S}/stream_c ${D}/${bindir}/
23 install -m 0755 ${S}/stream_c_openmp ${D}/${bindir}/
24}
25
26FILES:${PN}-openmp = "${bindir}/stream_c_openmp"