summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-benchmark')
-rw-r--r--meta-oe/recipes-benchmark/bonnie/bonnie++_1.04.bb1
-rw-r--r--meta-oe/recipes-benchmark/cpuburn/cpuburn-arm_git.bb1
-rw-r--r--meta-oe/recipes-benchmark/dbench/dbench_4.0.bb1
-rw-r--r--meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch32
-rw-r--r--meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/dhrystone-c89.patch242
-rw-r--r--meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb6
-rw-r--r--meta-oe/recipes-benchmark/fio/fio_3.39.bb (renamed from meta-oe/recipes-benchmark/fio/fio_3.36.bb)8
-rw-r--r--meta-oe/recipes-benchmark/glmark2/glmark2_git.bb1
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch34
-rw-r--r--meta-oe/recipes-benchmark/iozone3/iozone3_507.bb (renamed from meta-oe/recipes-benchmark/iozone3/iozone3_506.bb)17
-rw-r--r--meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch60
-rw-r--r--meta-oe/recipes-benchmark/iperf2/iperf2/0001-fix-for-buildroot-linux-breakage-ticket-342.patch26
-rw-r--r--meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb (renamed from meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb)7
-rw-r--r--meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch66
-rw-r--r--meta-oe/recipes-benchmark/iperf3/iperf3_3.18.bb (renamed from meta-oe/recipes-benchmark/iperf3/iperf3_3.16.bb)8
-rw-r--r--meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb4
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch210
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0001-skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch)19
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch31
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0002-libhugetlbfs-avoid-search-host-library-path-for-cros.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-avoid-search-host-library-path-for-cros.patch)6
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0003-tests-Makefile-install-static-4G-edge-testcases.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/tests-Makefile-install-static-4G-edge-testcases.patch)22
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0004-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch)8
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0005-libhugetlbfs-elf_i386-avoid-search-host-library-path.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-elf_i386-avoid-search-host-library-path.patch)6
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-stddef.h-for-ptrdiff_t.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0001-include-stddef.h-for-ptrdiff_t.patch)12
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0007-Mark-glibc-specific-code-so.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch)19
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0008-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch)12
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0004-shm.c-Mark-glibc-specific-changes-so.patch)10
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0010-Include-dirent.h-for-ino_t.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0005-Include-dirent.h-for-ino_t.patch)8
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0011-include-limits.h-for-PATH_MAX.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-limits.h-for-PATH_MAX.patch)14
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0012-huge_page_setup_helper-use-python3-interpreter.patch (renamed from meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch)6
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/files/0013-elflink.c-include-libgen.h-for-basename.patch41
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb79
-rw-r--r--meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb79
-rw-r--r--meta-oe/recipes-benchmark/linpack/linpack/0001-Fix-build-error-in-gcc-15.0.1-due-to-function-redecl.patch52
-rw-r--r--meta-oe/recipes-benchmark/linpack/linpack_1.0.bb6
-rw-r--r--meta-oe/recipes-benchmark/lmbench/lmbench/0001-Fix-build-errors-related-to-incorrect-function-param.patch252
-rw-r--r--meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb4
-rw-r--r--meta-oe/recipes-benchmark/mbw/mbw_2.0.bb1
-rw-r--r--meta-oe/recipes-benchmark/memtester/memtester_4.7.1.bb (renamed from meta-oe/recipes-benchmark/memtester/memtester_4.6.0.bb)2
-rw-r--r--meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch34
-rw-r--r--meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb4
-rw-r--r--meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.4.bb5
-rw-r--r--meta-oe/recipes-benchmark/qperf/qperf_0.4.11.bb1
-rw-r--r--meta-oe/recipes-benchmark/s-suite/s-suite_git.bb5
-rw-r--r--meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.11.bb1
-rw-r--r--meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb1
-rw-r--r--meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb1
-rw-r--r--meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb1
-rw-r--r--meta-oe/recipes-benchmark/whetstone/whetstone_1.2.bb5
49 files changed, 950 insertions, 521 deletions
diff --git a/meta-oe/recipes-benchmark/bonnie/bonnie++_1.04.bb b/meta-oe/recipes-benchmark/bonnie/bonnie++_1.04.bb
index c305aadd02..c70f8a9ef4 100644
--- a/meta-oe/recipes-benchmark/bonnie/bonnie++_1.04.bb
+++ b/meta-oe/recipes-benchmark/bonnie/bonnie++_1.04.bb
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://copyright.txt;md5=cd4dde95a6b9d122f0a9150ae9cc3ee0"
6 6
7SRC_URI = "http://www.coker.com.au/bonnie++/${BPN}_${PV}.tgz \ 7SRC_URI = "http://www.coker.com.au/bonnie++/${BPN}_${PV}.tgz \
8" 8"
9SRC_URI[md5sum] = "1414aab86e2db1b4691bd4be82031012"
10SRC_URI[sha256sum] = "507bd2ce5360c7c98b91b0fdc2bed5c9320b5c9699f7d4a3d1c86b256896c15e" 9SRC_URI[sha256sum] = "507bd2ce5360c7c98b91b0fdc2bed5c9320b5c9699f7d4a3d1c86b256896c15e"
11 10
12inherit autotools-brokensep 11inherit autotools-brokensep
diff --git a/meta-oe/recipes-benchmark/cpuburn/cpuburn-arm_git.bb b/meta-oe/recipes-benchmark/cpuburn/cpuburn-arm_git.bb
index c58524aa64..feda6599a8 100644
--- a/meta-oe/recipes-benchmark/cpuburn/cpuburn-arm_git.bb
+++ b/meta-oe/recipes-benchmark/cpuburn/cpuburn-arm_git.bb
@@ -15,7 +15,6 @@ SRC_URI = "git://github.com/ssvb/cpuburn-arm.git;branch=master;protocol=https \
15 file://0003-burn.S-Remove-.func-.endfunc.patch \ 15 file://0003-burn.S-Remove-.func-.endfunc.patch \
16 " 16 "
17 17
18S = "${WORKDIR}/git"
19 18
20do_compile() { 19do_compile() {
21 20
diff --git a/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb b/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
index 32f51fee49..d300c40a47 100644
--- a/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
+++ b/meta-oe/recipes-benchmark/dbench/dbench_4.0.bb
@@ -22,5 +22,4 @@ TARGET_CC_ARCH += "${LDFLAGS}"
22 22
23FILES:tbench = "${bindir}/tbench* ${prefix}/share/client.txt" 23FILES:tbench = "${bindir}/tbench* ${prefix}/share/client.txt"
24 24
25SRC_URI[md5sum] = "1fe56ff71b9a416f8889d7150ac54da4"
26SRC_URI[sha256sum] = "6001893f34e68a3cfeb5d424e1f2bfef005df96a22d86f35dc770c5bccf3aa8a" 25SRC_URI[sha256sum] = "6001893f34e68a3cfeb5d424e1f2bfef005df96a22d86f35dc770c5bccf3aa8a"
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch
new file mode 100644
index 0000000000..63701d9c97
--- /dev/null
+++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/0001-fix-too-many-arguments-error-in-gcc15.patch
@@ -0,0 +1,32 @@
1From a0a976c0c4c2b92d61e71e00be4adfd8ea6d0d8f Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 10 Apr 2025 14:14:15 +0900
4Subject: [PATCH] fix too many arguments error in gcc15
5
6dhry_1.c: In function 'main':
7dhry_1.c:176:23: error: too many arguments to function 'Func_1'; expected 0, have 2
8 176 | if (Enum_Loc == Func_1 (Ch_Index, 'C'))
9 | ^~~~~~ ~~~~~~~~
10dhry_1.c:33:17: note: declared here
11 33 | Enumeration Func_1 ();
12 | ^~~~~~
13
14Upstream-Status: Inactive-Upstream [lastrelease: 1988]
15Signed-off-by: mark.yang <mark.yang@lge.com>
16---
17 dhry_1.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/dhry_1.c b/dhry_1.c
21index b081b86..e5a4873 100644
22--- a/dhry_1.c
23+++ b/dhry_1.c
24@@ -30,7 +30,7 @@ char Ch_1_Glob,
25 int Arr_1_Glob [50];
26 int Arr_2_Glob [50] [50];
27
28-Enumeration Func_1 ();
29+Enumeration Func_1 (Capital_Letter Ch_1_Par_Val, Capital_Letter Ch_2_Par_Val);
30 /* forward declaration necessary since Enumeration may not simply be int */
31
32 #ifndef REG
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/dhrystone-c89.patch b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/dhrystone-c89.patch
new file mode 100644
index 0000000000..faf710fe12
--- /dev/null
+++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone-2.1/dhrystone-c89.patch
@@ -0,0 +1,242 @@
1dhrystone: make it speak C89
2
3Update Dhrystone sources to stop using K&R C and use something close to C89.
4This fixes compilation errors reported by the GCC 14.
5
6Upstream-Status: Pending
7Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
8
9Index: dhrystone-2.1/dhry.h
10===================================================================
11--- dhrystone-2.1.orig/dhry.h
12+++ dhrystone-2.1/dhry.h
13@@ -423,3 +423,13 @@ typedef struct record
14 #ifndef HZ
15 extern long HZ;
16 #endif
17+
18+void Proc_2 (One_Fifty *Int_Par_Ref);
19+void Proc_3 (Rec_Pointer *Ptr_Ref_Par);
20+void Proc_4();
21+void Proc_5();
22+void Proc_6 (Enumeration Enum_Val_Par, Enumeration *Enum_Ref_Par);
23+void Proc_7 (One_Fifty Int_1_Par_Val, One_Fifty Int_2_Par_Val, One_Fifty *Int_Par_Ref);
24+void Proc_8 (Arr_1_Dim Arr_1_Par_Ref, Arr_2_Dim Arr_2_Par_Ref, int Int_1_Par_Val, int Int_2_Par_Val);
25+
26+Boolean Func_2 (Str_30 Str_1_Par_Ref, Str_30 Str_2_Par_Ref);
27Index: dhrystone-2.1/dhry_1.c
28===================================================================
29--- dhrystone-2.1.orig/dhry_1.c
30+++ dhrystone-2.1/dhry_1.c
31@@ -14,6 +14,8 @@
32 *
33 ****************************************************************************
34 */
35+#include <stdlib.h>
36+#include <string.h>
37
38 #include "dhry.h"
39
40@@ -28,7 +30,6 @@ char Ch_1_Glob,
41 int Arr_1_Glob [50];
42 int Arr_2_Glob [50] [50];
43
44-extern char *malloc ();
45 Enumeration Func_1 ();
46 /* forward declaration necessary since Enumeration may not simply be int */
47
48@@ -41,6 +42,8 @@ Enumeration Func_1 ();
49 Boolean Reg = true;
50 #endif
51
52+void Proc_1 (REG Rec_Pointer Ptr_Val_Par);
53+
54 /* variables for time measurement: */
55
56 #ifdef TIMES
57@@ -70,7 +73,7 @@ float Microseconds,
58 /* end of variables for time measurement */
59
60
61-main ()
62+int main (void)
63 /*****/
64
65 /* main program, corresponds to procedures */
66@@ -218,7 +221,7 @@ main ()
67 printf ("Arr_2_Glob[8][7]: %d\n", Arr_2_Glob[8][7]);
68 printf (" should be: Number_Of_Runs + 10\n");
69 printf ("Ptr_Glob->\n");
70- printf (" Ptr_Comp: %d\n", (int) Ptr_Glob->Ptr_Comp);
71+ printf (" Ptr_Comp: %lu\n", (unsigned long) Ptr_Glob->Ptr_Comp);
72 printf (" should be: (implementation-dependent)\n");
73 printf (" Discr: %d\n", Ptr_Glob->Discr);
74 printf (" should be: %d\n", 0);
75@@ -229,7 +232,7 @@ main ()
76 printf (" Str_Comp: %s\n", Ptr_Glob->variant.var_1.Str_Comp);
77 printf (" should be: DHRYSTONE PROGRAM, SOME STRING\n");
78 printf ("Next_Ptr_Glob->\n");
79- printf (" Ptr_Comp: %d\n", (int) Next_Ptr_Glob->Ptr_Comp);
80+ printf (" Ptr_Comp: %lu\n", (unsigned long) Next_Ptr_Glob->Ptr_Comp);
81 printf (" should be: (implementation-dependent), same as above\n");
82 printf (" Discr: %d\n", Next_Ptr_Glob->Discr);
83 printf (" should be: %d\n", 0);
84@@ -280,14 +283,13 @@ main ()
85 printf ("%6.1f \n", Dhrystones_Per_Second);
86 printf ("\n");
87 }
88-
89+ return 0;
90 }
91
92
93-Proc_1 (Ptr_Val_Par)
94+void Proc_1 (REG Rec_Pointer Ptr_Val_Par)
95 /******************/
96
97-REG Rec_Pointer Ptr_Val_Par;
98 /* executed once */
99 {
100 REG Rec_Pointer Next_Record = Ptr_Val_Par->Ptr_Comp;
101@@ -318,12 +320,10 @@ REG Rec_Pointer Ptr_Val_Par;
102 } /* Proc_1 */
103
104
105-Proc_2 (Int_Par_Ref)
106+void Proc_2 (One_Fifty *Int_Par_Ref)
107 /******************/
108 /* executed once */
109 /* *Int_Par_Ref == 1, becomes 4 */
110-
111-One_Fifty *Int_Par_Ref;
112 {
113 One_Fifty Int_Loc;
114 Enumeration Enum_Loc;
115@@ -341,13 +341,10 @@ One_Fifty *Int_Par_Ref;
116 } /* Proc_2 */
117
118
119-Proc_3 (Ptr_Ref_Par)
120+void Proc_3 (Rec_Pointer *Ptr_Ref_Par)
121 /******************/
122 /* executed once */
123 /* Ptr_Ref_Par becomes Ptr_Glob */
124-
125-Rec_Pointer *Ptr_Ref_Par;
126-
127 {
128 if (Ptr_Glob != Null)
129 /* then, executed */
130@@ -356,7 +353,7 @@ Rec_Pointer *Ptr_Ref_Par;
131 } /* Proc_3 */
132
133
134-Proc_4 () /* without parameters */
135+void Proc_4 () /* without parameters */
136 /*******/
137 /* executed once */
138 {
139@@ -368,7 +365,7 @@ Proc_4 () /* without parameters */
140 } /* Proc_4 */
141
142
143-Proc_5 () /* without parameters */
144+void Proc_5 () /* without parameters */
145 /*******/
146 /* executed once */
147 {
148Index: dhrystone-2.1/dhry_2.c
149===================================================================
150--- dhrystone-2.1.orig/dhry_2.c
151+++ dhrystone-2.1/dhry_2.c
152@@ -14,6 +14,7 @@
153 *
154 ****************************************************************************
155 */
156+#include <string.h>
157
158 #include "dhry.h"
159
160@@ -26,14 +27,14 @@
161 extern int Int_Glob;
162 extern char Ch_1_Glob;
163
164+Boolean Func_3 (Enumeration Enum_Par_Val);
165
166-Proc_6 (Enum_Val_Par, Enum_Ref_Par)
167+
168+void Proc_6 (Enumeration Enum_Val_Par, Enumeration *Enum_Ref_Par)
169 /*********************************/
170 /* executed once */
171 /* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */
172
173-Enumeration Enum_Val_Par;
174-Enumeration *Enum_Ref_Par;
175 {
176 *Enum_Ref_Par = Enum_Val_Par;
177 if (! Func_3 (Enum_Val_Par))
178@@ -61,7 +62,7 @@ Enumeration *Enum_Ref_Par;
179 } /* Proc_6 */
180
181
182-Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
183+void Proc_7 (One_Fifty Int_1_Par_Val, One_Fifty Int_2_Par_Val, One_Fifty *Int_Par_Ref)
184 /**********************************************/
185 /* executed three times */
186 /* first call: Int_1_Par_Val == 2, Int_2_Par_Val == 3, */
187@@ -70,9 +71,6 @@ Proc_7 (Int_1_Par_Val, Int_2_Par_Val, In
188 /* Int_Par_Ref becomes 17 */
189 /* third call: Int_1_Par_Val == 6, Int_2_Par_Val == 10, */
190 /* Int_Par_Ref becomes 18 */
191-One_Fifty Int_1_Par_Val;
192-One_Fifty Int_2_Par_Val;
193-One_Fifty *Int_Par_Ref;
194 {
195 One_Fifty Int_Loc;
196
197@@ -81,15 +79,11 @@ One_Fifty *Int_Par_Ref;
198 } /* Proc_7 */
199
200
201-Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
202+void Proc_8 (Arr_1_Dim Arr_1_Par_Ref, Arr_2_Dim Arr_2_Par_Ref, int Int_1_Par_Val, int Int_2_Par_Val)
203 /*********************************************************************/
204 /* executed once */
205 /* Int_Par_Val_1 == 3 */
206 /* Int_Par_Val_2 == 7 */
207-Arr_1_Dim Arr_1_Par_Ref;
208-Arr_2_Dim Arr_2_Par_Ref;
209-int Int_1_Par_Val;
210-int Int_2_Par_Val;
211 {
212 REG One_Fifty Int_Index;
213 REG One_Fifty Int_Loc;
214@@ -132,14 +126,11 @@ Capital_Letter Ch_2_Par_Val;
215 } /* Func_1 */
216
217
218-Boolean Func_2 (Str_1_Par_Ref, Str_2_Par_Ref)
219+Boolean Func_2 (Str_30 Str_1_Par_Ref, Str_30 Str_2_Par_Ref)
220 /*************************************************/
221 /* executed once */
222 /* Str_1_Par_Ref == "DHRYSTONE PROGRAM, 1'ST STRING" */
223 /* Str_2_Par_Ref == "DHRYSTONE PROGRAM, 2'ND STRING" */
224-
225-Str_30 Str_1_Par_Ref;
226-Str_30 Str_2_Par_Ref;
227 {
228 REG One_Thirty Int_Loc;
229 Capital_Letter Ch_Loc;
230@@ -174,11 +165,10 @@ Str_30 Str_2_Par_Ref;
231 } /* Func_2 */
232
233
234-Boolean Func_3 (Enum_Par_Val)
235+Boolean Func_3 (Enumeration Enum_Par_Val)
236 /***************************/
237 /* executed once */
238 /* Enum_Par_Val == Ident_3 */
239-Enumeration Enum_Par_Val;
240 {
241 Enumeration Enum_Loc;
242
diff --git a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
index d809a564e9..a8d750e885 100644
--- a/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
+++ b/meta-oe/recipes-benchmark/dhrystone/dhrystone_2.1.bb
@@ -3,8 +3,10 @@ LICENSE = "PD"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851" 3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/PD;md5=b3597d12946881e13cb3b548d1173851"
4 4
5SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \ 5SRC_URI = "http://www.netlib.org/benchmark/dhry-c;downloadfilename=dhry-c.shar \
6 file://dhrystone.patch" 6 file://dhrystone.patch \
7SRC_URI[md5sum] = "75aa5909c174eed98c134be2f56307da" 7 file://dhrystone-c89.patch \
8 file://0001-fix-too-many-arguments-error-in-gcc15.patch \
9"
8SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e" 10SRC_URI[sha256sum] = "038a7e9169787125c3451a6c941f3aca5db2d2f3863871afcdce154ef17f4e3e"
9 11
10# Need to override Makefile variables 12# Need to override Makefile variables
diff --git a/meta-oe/recipes-benchmark/fio/fio_3.36.bb b/meta-oe/recipes-benchmark/fio/fio_3.39.bb
index a871ed8fe5..345c7f08e7 100644
--- a/meta-oe/recipes-benchmark/fio/fio_3.36.bb
+++ b/meta-oe/recipes-benchmark/fio/fio_3.39.bb
@@ -22,11 +22,11 @@ PACKAGECONFIG_NUMA:armeb = ""
22PACKAGECONFIG ??= "${PACKAGECONFIG_NUMA}" 22PACKAGECONFIG ??= "${PACKAGECONFIG_NUMA}"
23PACKAGECONFIG[numa] = ",--disable-numa,numactl" 23PACKAGECONFIG[numa] = ",--disable-numa,numactl"
24 24
25PV .= "+git"
26SRCREV = "b2403d413ee734e8835539319d8bc3429a0777ac"
27SRC_URI = "git://git.kernel.dk/fio.git;branch=master" 25SRC_URI = "git://git.kernel.dk/fio.git;branch=master"
26SRCREV = "a6e474c9e896e4ba1eb40066a03402afb040710a"
27
28UPSTREAM_CHECK_GITTAGREGEX = "fio-(?P<pver>\d+(\.\d+)+)"
28 29
29S = "${WORKDIR}/git"
30 30
31# avoids build breaks when using no-static-libs.inc 31# avoids build breaks when using no-static-libs.inc
32DISABLE_STATIC = "" 32DISABLE_STATIC = ""
@@ -35,7 +35,7 @@ EXTRA_OEMAKE = "CC='${CC}' LDFLAGS='${LDFLAGS}'"
35EXTRA_OECONF = "${@bb.utils.contains('MACHINE_FEATURES', 'x86', '--disable-optimizations', '', d)}" 35EXTRA_OECONF = "${@bb.utils.contains('MACHINE_FEATURES', 'x86', '--disable-optimizations', '', d)}"
36 36
37do_configure() { 37do_configure() {
38 ./configure ${EXTRA_OECONF} 38 ./configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS}
39} 39}
40 40
41do_install() { 41do_install() {
diff --git a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb
index 0b61d6ed62..8bcb763f06 100644
--- a/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb
+++ b/meta-oe/recipes-benchmark/glmark2/glmark2_git.bb
@@ -21,7 +21,6 @@ SRC_URI = " \
21" 21"
22SRCREV = "42e3d8fe3aa88743ef90348138f643f7b04a9237" 22SRCREV = "42e3d8fe3aa88743ef90348138f643f7b04a9237"
23 23
24S = "${WORKDIR}/git"
25 24
26inherit meson pkgconfig features_check 25inherit meson pkgconfig features_check
27 26
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch b/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch
deleted file mode 100644
index a61a56a71d..0000000000
--- a/meta-oe/recipes-benchmark/iozone3/iozone3/0001-let-system-headers-provide-pread64.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 64389a67b93a53b9fb7e9e20e905a5ee4613606b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 15 Jan 2020 17:10:42 -0800
4Subject: [PATCH] let system headers provide pread64()
5
6The signature does not match with system headers anyway
7
8Fixes
9
10iozone.c:1270:9: error: redeclaration of 'pread64' must have the 'overloadable' attribute ssize_t pread64(); ^ /mnt/b/yoe/build/tmp/work/core2-64-yoe-linux/iozone3/488-r0/recipe-sysroot/usr/include/bits/unistd.h:83:1: note: previous overload of function is here pread64 (int __fd, void *const __clang_pass_object_size0 __buf, ^
111 error generated.
12
13Upstream-Status: Pending
14
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 iozone.c | 1 -
18 1 file changed, 1 deletion(-)
19
20diff --git a/iozone.c b/iozone.c
21index 090dd5f..fdea400 100644
22--- a/iozone.c
23+++ b/iozone.c
24@@ -1267,7 +1267,6 @@ int pit_gettimeofday();
25 #ifdef HAVE_ANSIC_C
26 #if defined (HAVE_PREAD) && defined(_LARGEFILE64_SOURCE)
27 ssize_t pwrite64();
28-ssize_t pread64();
29 #endif
30 #if !defined(linux)
31 char *getenv();
32--
332.25.0
34
diff --git a/meta-oe/recipes-benchmark/iozone3/iozone3_506.bb b/meta-oe/recipes-benchmark/iozone3/iozone3_507.bb
index 5a1306b6fe..725b0af209 100644
--- a/meta-oe/recipes-benchmark/iozone3/iozone3_506.bb
+++ b/meta-oe/recipes-benchmark/iozone3/iozone3_507.bb
@@ -3,18 +3,17 @@ HOMEPAGE = "http://www.iozone.org/"
3SECTION = "console/tests" 3SECTION = "console/tests"
4LICENSE = "iozone3" 4LICENSE = "iozone3"
5LIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dcad0f9edea735b5f4b \ 5LIC_FILES_CHKSUM = "file://iozone.c;beginline=37;endline=48;md5=7331260091868dcad0f9edea735b5f4b \
6 file://iozone.c;beginline=276;endline=282;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \ 6 file://iozone.c;beginline=317;endline=323;md5=77f9ee51e45b57a7e7519c4fa0b4f00b \
7" 7"
8SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \ 8SRC_URI = "http://www.iozone.org/src/current/${BPN}_${PV}.tar \
9 file://parallelism.patch \ 9 file://parallelism.patch \
10 file://0001-let-system-headers-provide-pread64.patch \
11 file://copyright.txt \ 10 file://copyright.txt \
12" 11"
13SRC_URI[sha256sum] = "114ce5c071873b9a2c7ba6e73d05d5ef7e66564392acbfcdc0b3261db10fcbe7" 12SRC_URI[sha256sum] = "1e8087ada056f5d8018ee0bc76686d416fc2251ed03038055dbd0af78d1e5ce3"
14 13
15UPSTREAM_CHECK_REGEX = "iozone3_(?P<pver>\d+).tar" 14UPSTREAM_CHECK_REGEX = "iozone3_(?P<pver>\d+).tar"
16 15
17S = "${WORKDIR}/${BPN}_${PV}/src/current" 16S = "${UNPACKDIR}/${BPN}_${PV}/src/current"
18 17
19# 18#
20# All other arches can use the default OEMAKE except those 19# All other arches can use the default OEMAKE except those
@@ -37,8 +36,8 @@ do_install() {
37 36
38 install -m 0755 ${S}/iozone ${D}${bindir} 37 install -m 0755 ${S}/iozone ${D}${bindir}
39 install -m 0755 ${S}/fileop ${D}${bindir} 38 install -m 0755 ${S}/fileop ${D}${bindir}
40 install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/iozone.1 ${D}${mandir}/man1/ 39 install -m 0644 ${S}/../../docs/iozone.1 ${D}${mandir}/man1/
41 install -m 0644 ${WORKDIR}/copyright.txt ${D}${datadir}/doc/${BPN}/ 40 install -m 0644 ${UNPACKDIR}/copyright.txt ${D}${datadir}/doc/${BPN}/
42 41
43 install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${BPN}/examples 42 install -m 0644 ${S}/*.dem ${D}${datadir}/doc/${BPN}/examples
44 install -m 0644 ${S}/client_list ${D}${datadir}/doc/${BPN}/examples 43 install -m 0644 ${S}/client_list ${D}${datadir}/doc/${BPN}/examples
@@ -48,9 +47,9 @@ do_install() {
48 install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${BPN}/examples 47 install -m 0755 ${S}/gengnuplot.sh ${D}${datadir}/doc/${BPN}/examples
49 install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${BPN}/examples 48 install -m 0755 ${S}/report.pl ${D}${datadir}/doc/${BPN}/examples
50 49
51 install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/Iozone_ps.gz ${D}${datadir}/doc/${BPN}/ 50 install -m 0644 ${S}/../../docs/Iozone_ps.gz ${D}${datadir}/doc/${BPN}/
52 install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${BPN}/ 51 install -m 0644 ${S}/../../docs/IOzone_msword_98.pdf ${D}${datadir}/doc/${BPN}/
53 install -m 0644 ${WORKDIR}/${BPN}_${PV}/docs/Run_rules.doc ${D}${datadir}/doc/${BPN}/ 52 install -m 0644 ${S}/../../docs/Run_rules.doc ${D}${datadir}/doc/${BPN}/
54} 53}
55 54
56FILES:${PN} += "${datadir}/doc/${PN}/copyright.txt" 55FILES:${PN} += "${datadir}/doc/${PN}/copyright.txt"
diff --git a/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch b/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch
deleted file mode 100644
index dc3b85f8ef..0000000000
--- a/meta-oe/recipes-benchmark/iperf2/iperf2/0001-Detect-bool-definition-considering-stdbool.h-being-p.patch
+++ /dev/null
@@ -1,60 +0,0 @@
1From 6df092a4153c6c37cfaddcabf2cd25a910a7f6e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 2 Sep 2019 15:40:52 -0700
4Subject: [PATCH] Detect bool definition considering stdbool.h being present
5
6This helps in defining the value correctly on different platforms e.g.
7clang/libc++ depends on the definition coming from stdbool.h
8current builds fail to compile therefore
9
10TMPDIR/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/iperf2/2.0.13-r0/recipe-sysroot/usr/include/c++/v1/type_traits:742:29: error: redefinition of '__libcpp_is_integral<int>'
11template <> struct __libcpp_is_integral<int> : public true_type {};
12 ^~~~~~~~~~~~~~~~~~~~~~~~~
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16Upstream-Status: Pending
17
18 m4/dast.m4 | 7 ++++++-
19 1 file changed, 6 insertions(+), 1 deletion(-)
20
21--- a/m4/dast.m4
22+++ b/m4/dast.m4
23@@ -11,7 +11,12 @@ AH_TEMPLATE([false])
24
25 AC_DEFUN(DAST_CHECK_BOOL, [
26
27-AC_CHECK_SIZEOF(bool)
28+if test "$ac_cv_header_stdbool_h" = yes; then
29+ AC_CHECK_SIZEOF(bool,,[#include <stdbool.h>])
30+else
31+ AC_CHECK_SIZEOF(bool)
32+fi
33+
34 if test "$ac_cv_sizeof_bool" = 0 ; then
35 AC_DEFINE(bool, int)
36 fi
37--- a/configure.ac
38+++ b/configure.ac
39@@ -113,7 +113,7 @@ AC_SEARCH_LIBS([socket], [socket], [],
40
41 dnl Checks for header files.
42 AC_HEADER_STDC
43-AC_CHECK_HEADERS([arpa/inet.h libintl.h net/ethernet.h net/if.h linux/ip.h linux/udp.h linux/if_packet.h linux/filter.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h signal.h ifaddrs.h])
44+AC_CHECK_HEADERS([arpa/inet.h libintl.h net/ethernet.h net/if.h linux/ip.h linux/udp.h linux/if_packet.h linux/filter.h netdb.h netinet/in.h stdbool.h stdlib.h string.h strings.h sys/socket.h sys/time.h syslog.h unistd.h signal.h ifaddrs.h])
45
46 dnl ===================================================================
47 dnl Checks for typedefs, structures
48--- a/include/util.h
49+++ b/include/util.h
50@@ -56,7 +56,9 @@
51 #ifdef HAVE_CONFIG_H
52 #include "config.h"
53 #endif
54-
55+#ifdef HAVE_STDBOOL_H
56+# include <stdbool.h>
57+#endif
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
diff --git a/meta-oe/recipes-benchmark/iperf2/iperf2/0001-fix-for-buildroot-linux-breakage-ticket-342.patch b/meta-oe/recipes-benchmark/iperf2/iperf2/0001-fix-for-buildroot-linux-breakage-ticket-342.patch
new file mode 100644
index 0000000000..0a6bc7150b
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iperf2/iperf2/0001-fix-for-buildroot-linux-breakage-ticket-342.patch
@@ -0,0 +1,26 @@
1From a25566dd66fb0ca951b3b6f6fa5a4bfaac276c71 Mon Sep 17 00:00:00 2001
2From: Robert McMahon <rjmcmahon@rjmcmahon.com>
3Date: Tue, 12 Nov 2024 12:06:54 -0800
4Subject: [PATCH] fix for buildroot linux breakage, ticket 342
5
6Upstream-Status: Backport [https://sourceforge.net/p/iperf2/code/ci/a25566dd66fb0ca951b3b6f6fa5a4bfaac276c71/]
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 src/checksums.c | 3 +++
11 1 file changed, 3 insertions(+)
12
13diff --git a/src/checksums.c b/src/checksums.c
14index 852f1952..d7a8109e 100644
15--- a/src/checksums.c
16+++ b/src/checksums.c
17@@ -47,6 +47,9 @@
18 * by Robert J. McMahon (rjmcmahon@rjmcmahon.com, bob.mcmahon@broadcom.com)
19 * -------------------------------------------------------------------
20 */
21+#ifndef _GNU_SOURCE
22+#define _GNU_SOURCE
23+#endif
24 #include "headers.h"
25
26 /*
diff --git a/meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb b/meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb
index 86e5fef530..3d965dac00 100644
--- a/meta-oe/recipes-benchmark/iperf2/iperf2_2.0.13.bb
+++ b/meta-oe/recipes-benchmark/iperf2/iperf2_2.2.1.bb
@@ -5,13 +5,12 @@ LICENSE = "BSD-2-Clause"
5LIC_FILES_CHKSUM = "file://COPYING;md5=e136a7b2560d80bcbf0d9b3e1356ecff" 5LIC_FILES_CHKSUM = "file://COPYING;md5=e136a7b2560d80bcbf0d9b3e1356ecff"
6 6
7SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/iperf-${PV}.tar.gz \ 7SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/iperf-${PV}.tar.gz \
8 file://0001-Detect-bool-definition-considering-stdbool.h-being-p.patch \ 8 file://0001-fix-for-buildroot-linux-breakage-ticket-342.patch \
9" 9"
10 10
11SRC_URI[md5sum] = "31ea1c6d5cbf80b16ff3abe4288dad5e" 11SRC_URI[sha256sum] = "754ab0a7e28033dbea81308ef424bc7df4d6e2fe31b60cc536b61b51fefbd8fb"
12SRC_URI[sha256sum] = "c88adec966096a81136dda91b4bd19c27aae06df4d45a7f547a8e50d723778ad"
13 12
14S = "${WORKDIR}/iperf-${PV}" 13S = "${UNPACKDIR}/iperf-${PV}"
15 14
16inherit autotools pkgconfig 15inherit autotools pkgconfig
17 16
diff --git a/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch b/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..d3f3e712c9
--- /dev/null
+++ b/meta-oe/recipes-benchmark/iperf3/iperf3/0001-fix-build-with-gcc-15.patch
@@ -0,0 +1,66 @@
1From a46630d4e373e9a3ef974c1b67767f6816c66572 Mon Sep 17 00:00:00 2001
2From: Rudi Heitbaum <rudi@heitbaum.com>
3Date: Mon, 9 Dec 2024 10:13:02 +0000
4Subject: [PATCH] fix build with gcc-15
5
6Upstream-Status: Submitted [https://github.com/esnet/iperf/pull/1805]
7
8Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
9---
10 src/iperf_api.c | 8 ++++----
11 src/iperf_api.h | 8 ++++----
12 2 files changed, 8 insertions(+), 8 deletions(-)
13
14diff --git a/src/iperf_api.c b/src/iperf_api.c
15index 7fb741e..4bb5b2f 100644
16--- a/src/iperf_api.c
17+++ b/src/iperf_api.c
18@@ -599,25 +599,25 @@ iperf_set_mapped_v4(struct iperf_test *ipt, const int val)
19 }
20
21 void
22-iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)())
23+iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)(struct iperf_stream *))
24 {
25 ipt->on_new_stream = callback;
26 }
27
28 void
29-iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)())
30+iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
31 {
32 ipt->on_test_start = callback;
33 }
34
35 void
36-iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)())
37+iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
38 {
39 ipt->on_connect = callback;
40 }
41
42 void
43-iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)())
44+iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *))
45 {
46 ipt->on_test_finish = callback;
47 }
48diff --git a/src/iperf_api.h b/src/iperf_api.h
49index 1313142..df10c38 100644
50--- a/src/iperf_api.h
51+++ b/src/iperf_api.h
52@@ -213,10 +213,10 @@ void iperf_set_dont_fragment( struct iperf_test* ipt, int dont_fragment );
53 void iperf_set_test_congestion_control(struct iperf_test* ipt, char* cc);
54 void iperf_set_test_mss(struct iperf_test* ipt, int mss);
55 void iperf_set_mapped_v4(struct iperf_test* ipt, const int val);
56-void iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)());
57-void iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)());
58-void iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)());
59-void iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)());
60+void iperf_set_on_new_stream_callback(struct iperf_test* ipt, void (*callback)(struct iperf_stream *));
61+void iperf_set_on_test_start_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
62+void iperf_set_on_test_connect_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
63+void iperf_set_on_test_finish_callback(struct iperf_test* ipt, void (*callback)(struct iperf_test *));
64
65 #if defined(HAVE_SSL)
66 void iperf_set_test_client_username(struct iperf_test *ipt, const char *client_username);
diff --git a/meta-oe/recipes-benchmark/iperf3/iperf3_3.16.bb b/meta-oe/recipes-benchmark/iperf3/iperf3_3.18.bb
index 5cec4c6874..08f29937c0 100644
--- a/meta-oe/recipes-benchmark/iperf3/iperf3_3.16.bb
+++ b/meta-oe/recipes-benchmark/iperf3/iperf3_3.18.bb
@@ -10,16 +10,16 @@ SECTION = "console/network"
10BUGTRACKER = "https://github.com/esnet/iperf/issues" 10BUGTRACKER = "https://github.com/esnet/iperf/issues"
11 11
12LICENSE = "BSD-3-Clause" 12LICENSE = "BSD-3-Clause"
13LIC_FILES_CHKSUM = "file://LICENSE;md5=dc6301c8256ceb8f71c9e3c2ae9096b9" 13LIC_FILES_CHKSUM = "file://LICENSE;md5=f9873a72f714e240530e759e103ac7b2"
14 14
15SRC_URI = "git://github.com/esnet/iperf.git;branch=master;protocol=https \ 15SRC_URI = "git://github.com/esnet/iperf.git;branch=master;protocol=https \
16 file://0002-Remove-pg-from-profile_CFLAGS.patch \ 16 file://0002-Remove-pg-from-profile_CFLAGS.patch \
17 file://0001-configure.ac-check-for-CPP-prog.patch \ 17 file://0001-configure.ac-check-for-CPP-prog.patch \
18 file://0001-fix-build-with-gcc-15.patch \
18 " 19 "
19 20
20SRCREV = "f9481e1cd35159929458513692e4a8f9fdd1bd6f" 21SRCREV = "2a2984488d6de8f7a2d1f5938e03ca7be57e227c"
21 22
22S = "${WORKDIR}/git"
23 23
24inherit autotools 24inherit autotools
25 25
@@ -29,3 +29,5 @@ PACKAGECONFIG[lksctp] = "ac_cv_header_netinet_sctp_h=yes,ac_cv_header_netinet_sc
29PACKAGECONFIG[openssl] = "--with-openssl=${RECIPE_SYSROOT}${prefix},--without-openssl,openssl" 29PACKAGECONFIG[openssl] = "--with-openssl=${RECIPE_SYSROOT}${prefix},--without-openssl,openssl"
30 30
31CFLAGS += "-D_GNU_SOURCE" 31CFLAGS += "-D_GNU_SOURCE"
32
33BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb b/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb
index 4ace4515ad..ae87262870 100644
--- a/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb
+++ b/meta-oe/recipes-benchmark/libc-bench/libc-bench_git.bb
@@ -13,7 +13,9 @@ SRC_URI = "git://git.musl-libc.org/libc-bench;branch=master \
13 file://0001-build-Do-not-override-ldflags-from-environment.patch \ 13 file://0001-build-Do-not-override-ldflags-from-environment.patch \
14 " 14 "
15 15
16S = "${WORKDIR}/git" 16# Upstream repo does not tag
17UPSTREAM_CHECK_COMMITS = "1"
18
17 19
18do_install () { 20do_install () {
19 install -d ${D}${bindir} 21 install -d ${D}${bindir}
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch
deleted file mode 100644
index 0787ef27d2..0000000000
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch
+++ /dev/null
@@ -1,210 +0,0 @@
1From 0a163f60b4a316c4b6f1726a71c84755f3bd85e7 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@lge.com>
3Date: Wed, 16 Sep 2020 04:36:04 -0700
4Subject: [PATCH] Revert "ld.hugetlbfs: fix -Ttext-segment argument on AArch64"
5
6This reverts commit 852dcc963ce44861ed7c4e225aa92ff2b5b43579.
7
8* works around
9 ERROR: libhugetlbfs-1_2.23-r0 do_populate_sysroot: Fatal errors occurred in subprocesses:
10 Command '['arm-oe-linux-gnueabi-strip', '--remove-section=.comment', '--remove-section=.note', 'libhugetlbfs/1_2.23-r0/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/linkhuge_rw']' returned non-zero exit status 1.
11 Subprocess output:arm-oe-linux-gnueabi-strip:
12 libhugetlbfs/1_2.23-r0/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/stmuFa58: error: PHDR segment not covered by LOAD segment
13 arm-oe-linux-gnueabi-strip: libhugetlbfs/1_2.23-r0/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/stmuFa58[.interp]: file format not recognized
14
15I don't see anything suspicious in the build (the same cmdline as in 2.22
16version), but it uses
17
18libhugetlbfs/1_2.22-r0-old/temp/log.do_compile:arm-oe-linux-gnueabi-gcc
19 -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -Wl,-O1
20-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
21-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
22-Werror=format-security -Werror=return-type
23--sysroot=/jenkins/mjansa/build/ros/oe-melodic-gatesgarth/libhugetlbfs/1_2.22-r0/recipe-sysroot
24-I.. -O2 -Wall -g -o obj32/linkhuge_rw.o -c linkhuge_rw.c
25libhugetlbfs/1_2.22-r0-old/temp/log.do_compile:arm-oe-linux-gnueabi-gcc
26 -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -Wl,-O1
27-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
28-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
29-Werror=format-security -Werror=return-type
30--sysroot=/jenkins/mjansa/build/ros/oe-melodic-gatesgarth/libhugetlbfs/1_2.22-r0/recipe-sysroot
31-B./obj32 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
32-ldl -L../obj32 -o obj32/linkhuge_rw -Wl,--no-as-needed -lpthread -ldl
33-lhugetlbfs_privutils -Wl,--hugetlbfs-align obj32/linkhuge_rw.o
34obj32/testutils.o
35libhugetlbfs/1_2.23-r0-new/temp/log.do_compile:arm-oe-linux-gnueabi-gcc
36 -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -Wl,-O1
37-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
38-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
39-Werror=format-security -Werror=return-type
40--sysroot=/jenkins/mjansa/build/ros/oe-melodic-gatesgarth/libhugetlbfs/1_2.23-r0/recipe-sysroot
41-I.. -O2 -Wall -g -o obj32/linkhuge_rw.o -c linkhuge_rw.c
42libhugetlbfs/1_2.23-r0-new/temp/log.do_compile:arm-oe-linux-gnueabi-gcc
43 -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -Wl,-O1
44-Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
45-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security
46-Werror=format-security -Werror=return-type
47--sysroot=/jenkins/mjansa/build/ros/oe-melodic-gatesgarth/libhugetlbfs/1_2.23-r0/recipe-sysroot
48-B./obj32 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,relro,-z,now
49-ldl -L../obj32 -o obj32/linkhuge_rw -Wl,--no-as-needed -lpthread -ldl
50-lhugetlbfs_privutils -Wl,--hugetlbfs-align obj32/linkhuge_rw.o
51obj32/testutils.o
52
53And the git log between 2.22 and 2.23 is also very short and looks
54reasonable.
55https://github.com/libhugetlbfs/libhugetlbfs/compare/2.22...2.23
56
57When checking with readelf -l it also shows the error about PHDR segment:
58arm-oe-linux-gnueabi-readelf -l
59./1_2.22-r0-old/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/linkhuge_rw
60
61Elf file type is DYN (Shared object file)
62Entry point 0x201105
63There are 10 program headers, starting at offset 52
64
65Program Headers:
66 Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
67 PHDR 0x000034 0x00200034 0x00200034 0x00140 0x00140 R 0x4
68 INTERP 0x000174 0x00200174 0x00200174 0x0001d 0x0001d R 0x1
69 [Requesting program interpreter: /usr/lib/ld-linux-armhf.so.3]
70 LOAD 0x000000 0x00200000 0x00200000 0x1222c 0x1222c R E 0x200000
71 LOAD 0x1ffdf0 0x005ffdf0 0x005ffdf0 0x102e0 0x202ec RW 0x200000
72 DYNAMIC 0x1ffdf8 0x005ffdf8 0x005ffdf8 0x00128 0x00128 RW 0x4
73 NOTE 0x000194 0x00200194 0x00200194 0x00044 0x00044 R 0x4
74 GNU_EH_FRAME 0x012224 0x00212224 0x00212224 0x00008 0x00008 R 0x4
75 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10
76 EXIDX 0x001c5c 0x00201c5c 0x00201c5c 0x00008 0x00008 R 0x4
77 GNU_RELRO 0x1ffdf0 0x005ffdf0 0x005ffdf0 0x00210 0x00210 RW 0x4
78
79 Section to Segment mapping:
80 Segment Sections...
81 00
82 01 .interp
83 02 .interp .note.ABI-tag .note.gnu.build-id .dynsym .dynstr
84.gnu.hash .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text
85.fini .ARM.extab .ARM.exidx .rodata .eh_frame .eh_frame_hdr
86 03 .fini_array .init_array .dynamic .got .data .bss
87 04 .dynamic
88 05 .note.ABI-tag .note.gnu.build-id
89 06 .eh_frame_hdr
90 07
91 08 .ARM.extab .ARM.exidx
92 09 .fini_array .init_array .dynamic .got
93
94arm-oe-linux-gnueabi-readelf -l
95./1_2.23-r0-new/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/linkhuge_rw
96
97Elf file type is DYN (Shared object file)
98Entry point 0x31cd1
99There are 10 program headers, starting at offset 52
100
101Program Headers:
102 Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
103 PHDR 0x000000 0x00000000 0x00000000 0x00000 0x00000 R 0
104readelf: Error: the PHDR segment is not covered by a LOAD segment
105 INTERP 0x030d40 0x00030d40 0x00030d40 0x0001d 0x0001d R 0x1
106 [Requesting program interpreter: /usr/lib/ld-linux-armhf.so.3]
107 LOAD 0x030d40 0x00030d40 0x00030d40 0x120b8 0x120b8 R E 0x200000
108 LOAD 0x1ffdf0 0x003ffdf0 0x003ffdf0 0x102e0 0x202ec RW 0x200000
109 DYNAMIC 0x1ffdf8 0x003ffdf8 0x003ffdf8 0x00128 0x00128 RW 0x4
110 NOTE 0x030d60 0x00030d60 0x00030d60 0x00044 0x00044 R 0x4
111 GNU_EH_FRAME 0x042df0 0x00042df0 0x00042df0 0x00008 0x00008 R 0x4
112 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10
113 EXIDX 0x032828 0x00032828 0x00032828 0x00008 0x00008 R 0x4
114 GNU_RELRO 0x1ffdf0 0x003ffdf0 0x003ffdf0 0x00210 0x00210 RW 0x4
115
116 Section to Segment mapping:
117 Segment Sections...
118 00
119 01 .interp
120 02 .interp .note.ABI-tag .note.gnu.build-id .dynsym .dynstr
121.gnu.hash .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text
122.fini .ARM.extab .ARM.exidx .rodata .eh_frame .eh_frame_hdr
123 03 .fini_array .init_array .dynamic .got .data .bss
124 04 .dynamic
125 05 .note.ABI-tag .note.gnu.build-id
126 06 .eh_frame_hdr
127 07
128 08 .ARM.extab .ARM.exidx
129 09 .fini_array .init_array .dynamic .got
130
131And the diff between these 2:
132
1331_2.22-r0-old/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/linkhuge_rw.readelf
1341_2.23-r0-new/sysroot-destdir/usr/lib/libhugetlbfs/tests/obj32/linkhuge_rw.readelf
135 Elf file type is DYN (Shared object file)
136-Entry point 0x201105
137+Entry point 0x31cd1
138 There are 10 program headers, starting at offset 52
139
140 Program Headers:
141 Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
142- PHDR 0x000034 0x00200034 0x00200034 0x00140 0x00140 R 0x4
143- INTERP 0x000174 0x00200174 0x00200174 0x0001d 0x0001d R 0x1
144+ PHDR 0x000000 0x00000000 0x00000000 0x00000 0x00000 R 0
145+readelf: Error: the PHDR segment is not covered by a LOAD segment
146+ INTERP 0x030d40 0x00030d40 0x00030d40 0x0001d 0x0001d R 0x1
147 [Requesting program interpreter: /usr/lib/ld-linux-armhf.so.3]
148- LOAD 0x000000 0x00200000 0x00200000 0x1222c 0x1222c R E 0x200000
149- LOAD 0x1ffdf0 0x005ffdf0 0x005ffdf0 0x102e0 0x202ec RW 0x200000
150- DYNAMIC 0x1ffdf8 0x005ffdf8 0x005ffdf8 0x00128 0x00128 RW 0x4
151- NOTE 0x000194 0x00200194 0x00200194 0x00044 0x00044 R 0x4
152- GNU_EH_FRAME 0x012224 0x00212224 0x00212224 0x00008 0x00008 R 0x4
153+ LOAD 0x030d40 0x00030d40 0x00030d40 0x120b8 0x120b8 R E 0x200000
154+ LOAD 0x1ffdf0 0x003ffdf0 0x003ffdf0 0x102e0 0x202ec RW 0x200000
155+ DYNAMIC 0x1ffdf8 0x003ffdf8 0x003ffdf8 0x00128 0x00128 RW 0x4
156+ NOTE 0x030d60 0x00030d60 0x00030d60 0x00044 0x00044 R 0x4
157+ GNU_EH_FRAME 0x042df0 0x00042df0 0x00042df0 0x00008 0x00008 R 0x4
158 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10
159- EXIDX 0x001c5c 0x00201c5c 0x00201c5c 0x00008 0x00008 R 0x4
160- GNU_RELRO 0x1ffdf0 0x005ffdf0 0x005ffdf0 0x00210 0x00210 RW 0x4
161+ EXIDX 0x032828 0x00032828 0x00032828 0x00008 0x00008 R 0x4
162+ GNU_RELRO 0x1ffdf0 0x003ffdf0 0x003ffdf0 0x00210 0x00210 RW 0x4
163
164 Section to Segment mapping:
165
166Revert fixes this build issue, but I still don't see why it fails this way.
167
168Upstream-Status: Pending
169
170Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
171
172# Please enter the commit message for your changes. Lines starting
173# with '#' will be ignored, and an empty message aborts the commit.
174#
175# Date: Wed Sep 16 13:43:09 2020 +0200
176#
177# On branch jansa/master
178# Changes to be committed:
179# new file: meta-oe/recipes-benchmark/libhugetlbfs/files/0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch
180# modified: meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
181#
182# Untracked files:
183# counts.txt
184# diff
185# log.svn
186# log.svn2
187# wip/
188#
189---
190 ld.hugetlbfs | 4 +---
191 1 file changed, 1 insertion(+), 3 deletions(-)
192
193diff --git a/ld.hugetlbfs b/ld.hugetlbfs
194index 5e4e497..6ee8238 100755
195--- a/ld.hugetlbfs
196+++ b/ld.hugetlbfs
197@@ -130,9 +130,7 @@ if [ "$HTLB_ALIGN" == "slice" ]; then
198 # targeting the ARM platform one needs to explicitly set the text segment offset
199 # otherwise it will be NULL.
200 case "$EMU" in
201- armelf*_linux_eabi|aarch64elf*|aarch64linux*)
202- printf -v TEXTADDR "%x" "$SLICE_SIZE"
203- HTLBOPTS="$HTLBOPTS -Ttext-segment=$TEXTADDR" ;;
204+ armelf*_linux_eabi|aarch64elf*|aarch64linux*) HTLBOPTS="$HTLBOPTS -Ttext-segment=$SLICE_SIZE" ;;
205 elf_i386) HTLBOPTS="$HTLBOPTS -Ttext-segment=0x08000000" ;;
206 elf64ppc|elf64lppc)
207 if [ "$MMU_TYPE" == "Hash" ] ; then
208--
2092.17.1
210
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch
index a13c5389fb..3dbc34d08d 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch
@@ -1,20 +1,20 @@
1From 183a4dafe141197de5840f2e48c266ef209307aa Mon Sep 17 00:00:00 2001 1From b448672f1bc08dcef2ae07727ae6f124a3032a35 Mon Sep 17 00:00:00 2001
2From: Ting Liu <b28495@freescale.com> 2From: Ting Liu <b28495@freescale.com>
3Date: Mon, 18 Jun 2012 16:37:05 +0800 3Date: Mon, 18 Jun 2012 16:37:05 +0800
4Subject: [PATCH] skip checking LIB32 and LIB64 if they point to the same place 4Subject: [PATCH] skip checking LIB32 and LIB64 if they point to the same place
5 5
6Upstream-Status: Inappropriate [oe-core specific] 6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Ting Liu <b28495@freescale.com>
8 7
8Signed-off-by: Ting Liu <b28495@freescale.com>
9--- 9---
10 Makefile | 1 - 10 Makefile.in | 1 -
11 1 file changed, 1 deletion(-) 11 1 file changed, 1 deletion(-)
12 12
13diff --git a/Makefile b/Makefile 13diff --git a/Makefile.in b/Makefile.in
14index 51e41f0..373df3c 100644 14index 65ae5a4..25be577 100644
15--- a/Makefile 15--- a/Makefile.in
16+++ b/Makefile 16+++ b/Makefile.in
17@@ -177,7 +177,6 @@ REALLIB32 = $(realpath $(PREFIX)/$(LIB32)) 17@@ -196,7 +196,6 @@ REALLIB32 = $(realpath $(PREFIX)/$(LIB32))
18 REALLIB64 = $(realpath $(PREFIX)/$(LIB64)) 18 REALLIB64 = $(realpath $(PREFIX)/$(LIB64))
19 ifneq ($(realpath $(PREFIX)),) 19 ifneq ($(realpath $(PREFIX)),)
20 ifeq ($(REALLIB32),$(REALLIB64)) 20 ifeq ($(REALLIB32),$(REALLIB64))
@@ -22,3 +22,6 @@ index 51e41f0..373df3c 100644
22 endif 22 endif
23 endif 23 endif
24 24
25--
262.25.1
27
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch
deleted file mode 100644
index 78a4cb0fc2..0000000000
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From b6dba773491bbb7b4664dacdd87a12af860f1bd8 Mon Sep 17 00:00:00 2001
2From: Oleksiy Obitotskyy <oobitots@cisco.com>
3Date: Thu, 28 Jan 2021 05:43:33 -0800
4Subject: [PATCH] tests/makefile: Append CPPFLAGS rather then override
5
6CPPFLAGS overrided and we could miss some options needed.
7
8Upstream-Status: Submitted
9Signed-off-by: Oleksiy Obitotskyy <oobitots@cisco.com>
10---
11 tests/Makefile | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/tests/Makefile b/tests/Makefile
15index 0ca3716..d262932 100644
16--- a/tests/Makefile
17+++ b/tests/Makefile
18@@ -33,8 +33,8 @@ HELPERS = get_hugetlbfs_path compare_kvers
19 HELPER_LIBS = libheapshrink.so
20 BADTOOLCHAIN = bad-toolchain.sh
21
22-CFLAGS = -O2 -Wall -g
23-CPPFLAGS = -I..
24+CFLAGS += -O2 -Wall -g
25+CPPFLAGS += -I..
26 STATIC_LIBHUGE = -Wl,--whole-archive -lhugetlbfs -Wl,--no-whole-archive
27 STATIC_LDLIBS = -Wl,--no-as-needed -lpthread
28 LDLIBS = $(STATIC_LDLIBS) -ldl -lhugetlbfs_privutils
29--
302.26.2.Cisco
31
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-avoid-search-host-library-path-for-cros.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-libhugetlbfs-avoid-search-host-library-path-for-cros.patch
index f95e9e85a4..1b99c007f5 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-avoid-search-host-library-path-for-cros.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-libhugetlbfs-avoid-search-host-library-path-for-cros.patch
@@ -1,4 +1,4 @@
1From 82a4f60ab24dff121f5f9d3bbcd9a8a28bb7caef Mon Sep 17 00:00:00 2001 1From d3903cbe348c6ecb2f38b37f20dafa6b0ca3b114 Mon Sep 17 00:00:00 2001
2From: Chunrong Guo <B40290@freescale.com> 2From: Chunrong Guo <B40290@freescale.com>
3Date: Sun, 8 Sep 2013 23:21:49 -0500 3Date: Sun, 8 Sep 2013 23:21:49 -0500
4Subject: [PATCH] libhugetlbfs: avoid search host library path for cross 4Subject: [PATCH] libhugetlbfs: avoid search host library path for cross
@@ -7,7 +7,6 @@ Subject: [PATCH] libhugetlbfs: avoid search host library path for cross
7Upstream-Status: Inappropriate [oe-core specific] 7Upstream-Status: Inappropriate [oe-core specific]
8 8
9Signed-off-by: Chunrong Guo <B40290@freescale.com> 9Signed-off-by: Chunrong Guo <B40290@freescale.com>
10
11--- 10---
12 ldscripts/elf32ppclinux.xB | 2 +- 11 ldscripts/elf32ppclinux.xB | 2 +-
13 ldscripts/elf32ppclinux.xBDT | 2 +- 12 ldscripts/elf32ppclinux.xBDT | 2 +-
@@ -95,3 +94,6 @@ index 1855202..c62d245 100644
95 INPUT(-lhugetlbfs); 94 INPUT(-lhugetlbfs);
96 /* Do we need any of these for elf? 95 /* Do we need any of these for elf?
97 __DYNAMIC = 0; */ 96 __DYNAMIC = 0; */
97--
982.25.1
99
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/tests-Makefile-install-static-4G-edge-testcases.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-tests-Makefile-install-static-4G-edge-testcases.patch
index b8b2f8e6fb..98cdf2f51c 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/tests-Makefile-install-static-4G-edge-testcases.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-tests-Makefile-install-static-4G-edge-testcases.patch
@@ -1,22 +1,21 @@
1From f1ad8ff887f16daee8d06eca3df0f2541bfdaac0 Mon Sep 17 00:00:00 2001 1From 3e54866a0ea3c9e933e91213cbe6e55b7ff67b87 Mon Sep 17 00:00:00 2001
2From: Ting Liu <b28495@freescale.com> 2From: Ting Liu <b28495@freescale.com>
3Date: Mon, 23 Sep 2013 08:00:55 +0000 3Date: Mon, 23 Sep 2013 08:00:55 +0000
4Subject: [PATCH] libhugetlbfs: add recipe 4Subject: [PATCH] tests/Makefile: install static 4G edge testcases
5
6Upstream-Status: Submitted
7 5
8TESTS_64 is empty, install will fail due to missing file operand 6TESTS_64 is empty, install will fail due to missing file operand
9 7
10Signed-off-by: Ting Liu <b28495@freescale.com> 8Upstream-Status: Submitted
11 9
10Signed-off-by: Ting Liu <b28495@freescale.com>
12--- 11---
13 tests/Makefile | 2 +- 12 tests/Makefile.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-) 13 1 file changed, 1 insertion(+), 1 deletion(-)
15 14
16diff --git a/tests/Makefile b/tests/Makefile 15diff --git a/tests/Makefile.in b/tests/Makefile.in
17index 073df96..0ca3716 100644 16index d33a228..d262932 100644
18--- a/tests/Makefile 17--- a/tests/Makefile.in
19+++ b/tests/Makefile 18+++ b/tests/Makefile.in
20@@ -295,7 +295,7 @@ obj64/install: 19@@ -295,7 +295,7 @@ obj64/install:
21 $(INSTALL) -m 755 wrapper-utils.sh $(DESTDIR)$(INST_TESTSDIR64)/obj64 20 $(INSTALL) -m 755 wrapper-utils.sh $(DESTDIR)$(INST_TESTSDIR64)/obj64
22 $(INSTALL) -m 755 $(HELPERS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64 21 $(INSTALL) -m 755 $(HELPERS:%=obj64/%) $(DESTDIR)$(INST_TESTSDIR64)/obj64
@@ -26,3 +25,6 @@ index 073df96..0ca3716 100644
26 $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR64) 25 $(INSTALL) -m 755 run_tests.py $(DESTDIR)$(INST_TESTSDIR64)
27 26
28 install: $(OBJDIRS:%=%/install) 27 install: $(OBJDIRS:%=%/install)
28--
292.25.1
30
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0004-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
index 83934abef8..6b010365a0 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0004-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch
@@ -1,4 +1,4 @@
1From 0077532b07e268347cb8557be6d70148d5f0e840 Mon Sep 17 00:00:00 2001 1From 86d3ebfc4da5ccbc82fdee4abaf2cbf758d82403 Mon Sep 17 00:00:00 2001
2From: Ting Liu <b28495@freescale.com> 2From: Ting Liu <b28495@freescale.com>
3Date: Wed, 21 Aug 2013 15:44:57 +0800 3Date: Wed, 21 Aug 2013 15:44:57 +0800
4Subject: [PATCH] run_test.py: not use hard coded path ../obj/hugeadm 4Subject: [PATCH] run_test.py: not use hard coded path ../obj/hugeadm
@@ -20,10 +20,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
20 1 file changed, 11 insertions(+), 1 deletion(-) 20 1 file changed, 11 insertions(+), 1 deletion(-)
21 21
22diff --git a/tests/run_tests.py b/tests/run_tests.py 22diff --git a/tests/run_tests.py b/tests/run_tests.py
23index 018264d..0aabcd1 100755 23index 4793262..6cd0241 100755
24--- a/tests/run_tests.py 24--- a/tests/run_tests.py
25+++ b/tests/run_tests.py 25+++ b/tests/run_tests.py
26@@ -245,9 +245,19 @@ def get_pagesizes(): 26@@ -250,9 +250,19 @@ def get_pagesizes():
27 Use libhugetlbfs' hugeadm utility to get a list of page sizes that have 27 Use libhugetlbfs' hugeadm utility to get a list of page sizes that have
28 active mount points and at least one huge page allocated to the pool. 28 active mount points and at least one huge page allocated to the pool.
29 """ 29 """
@@ -45,5 +45,5 @@ index 018264d..0aabcd1 100755
45 return sizes 45 return sizes
46 46
47-- 47--
482.7.4 482.25.1
49 49
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-elf_i386-avoid-search-host-library-path.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0005-libhugetlbfs-elf_i386-avoid-search-host-library-path.patch
index 7cc180a4b7..fc8776af66 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/libhugetlbfs-elf_i386-avoid-search-host-library-path.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0005-libhugetlbfs-elf_i386-avoid-search-host-library-path.patch
@@ -1,4 +1,4 @@
1From b5887693d90c430291b644c2f5713b5fdd1777ce Mon Sep 17 00:00:00 2001 1From 8c7a379876e3c7a32bef8620f94a85d20b7b186f Mon Sep 17 00:00:00 2001
2From: Jackie Huang <jackie.huang@windriver.com> 2From: Jackie Huang <jackie.huang@windriver.com>
3Date: Tue, 4 Nov 2014 00:49:11 -0800 3Date: Tue, 4 Nov 2014 00:49:11 -0800
4Subject: [PATCH] libhugetlbfs/elf_i386: avoid search host library path for 4Subject: [PATCH] libhugetlbfs/elf_i386: avoid search host library path for
@@ -7,7 +7,6 @@ Subject: [PATCH] libhugetlbfs/elf_i386: avoid search host library path for
7Upstream-Status: Inappropriate [cross compile specific] 7Upstream-Status: Inappropriate [cross compile specific]
8 8
9Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 9Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
10
11--- 10---
12 ldscripts/elf_i386.xB | 1 - 11 ldscripts/elf_i386.xB | 1 -
13 ldscripts/elf_i386.xBDT | 1 - 12 ldscripts/elf_i386.xBDT | 1 -
@@ -37,3 +36,6 @@ index d72aebe..3bac1b1 100644
37 INPUT(-lhugetlbfs); 36 INPUT(-lhugetlbfs);
38 /* Do we need any of these for elf? 37 /* Do we need any of these for elf?
39 __DYNAMIC = 0; */ 38 __DYNAMIC = 0; */
39--
402.25.1
41
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-include-stddef.h-for-ptrdiff_t.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-stddef.h-for-ptrdiff_t.patch
index 914b0514f8..33a4efb1fa 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-include-stddef.h-for-ptrdiff_t.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-stddef.h-for-ptrdiff_t.patch
@@ -1,18 +1,17 @@
1From 351d1de09dd80049b7a2cb02c5750635d0389873 Mon Sep 17 00:00:00 2001 1From 5fe5dae674e259bcdd57b9c6a0004111ab0700ce Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:25:57 -0700 3Date: Thu, 21 Jun 2018 19:25:57 -0700
4Subject: [PATCH] include stddef.h for ptrdiff_t 4Subject: [PATCH] include stddef.h for ptrdiff_t
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9Upstream-Status: Pending 6Upstream-Status: Pending
10 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
11 morecore.c | 1 + 10 morecore.c | 1 +
12 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
13 12
14diff --git a/morecore.c b/morecore.c 13diff --git a/morecore.c b/morecore.c
15index 6563bbd..0eef782 100644 14index 405c566..0edccd2 100644
16--- a/morecore.c 15--- a/morecore.c
17+++ b/morecore.c 16+++ b/morecore.c
18@@ -19,6 +19,7 @@ 17@@ -19,6 +19,7 @@
@@ -23,3 +22,6 @@ index 6563bbd..0eef782 100644
23 #include <stdio.h> 22 #include <stdio.h>
24 #include <stdlib.h> 23 #include <stdlib.h>
25 #include <malloc.h> 24 #include <malloc.h>
25--
262.25.1
27
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0007-Mark-glibc-specific-code-so.patch
index 7ad6c43eb1..5b2c91b8a1 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0002-Mark-glibc-specific-code-so.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0007-Mark-glibc-specific-code-so.patch
@@ -1,21 +1,20 @@
1From 0f548286848c70aa325c6748d80e8651389b4938 Mon Sep 17 00:00:00 2001 1From c98e64c56d0118a2d5f950eaceaed0e85eaa2543 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:32:59 -0700 3Date: Thu, 21 Jun 2018 19:32:59 -0700
4Subject: [PATCH] Mark glibc specific code so 4Subject: [PATCH] Mark glibc specific code so
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9Upstream-Status: Pending 6Upstream-Status: Pending
10 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
11 morecore.c | 3 ++- 10 morecore.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-) 11 1 file changed, 2 insertions(+), 1 deletion(-)
13 12
14diff --git a/morecore.c b/morecore.c 13diff --git a/morecore.c b/morecore.c
15index 0eef782..d48509c 100644 14index 0edccd2..db22216 100644
16--- a/morecore.c 15--- a/morecore.c
17+++ b/morecore.c 16+++ b/morecore.c
18@@ -364,6 +364,7 @@ void hugetlbfs_setup_morecore(void) 17@@ -371,6 +371,7 @@ void hugetlbfs_setup_morecore(void)
19 18
20 INFO("setup_morecore(): heapaddr = 0x%lx\n", heapaddr); 19 INFO("setup_morecore(): heapaddr = 0x%lx\n", heapaddr);
21 20
@@ -23,7 +22,7 @@ index 0eef782..d48509c 100644
23 heaptop = heapbase = (void *)heapaddr; 22 heaptop = heapbase = (void *)heapaddr;
24 if (__hugetlb_opts.thp_morecore) 23 if (__hugetlb_opts.thp_morecore)
25 __morecore = &thp_morecore; 24 __morecore = &thp_morecore;
26@@ -371,7 +372,6 @@ void hugetlbfs_setup_morecore(void) 25@@ -378,7 +379,6 @@ void hugetlbfs_setup_morecore(void)
27 __morecore = &hugetlbfs_morecore; 26 __morecore = &hugetlbfs_morecore;
28 27
29 /* Set some allocator options more appropriate for hugepages */ 28 /* Set some allocator options more appropriate for hugepages */
@@ -31,9 +30,13 @@ index 0eef782..d48509c 100644
31 if (__hugetlb_opts.shrink_ok) 30 if (__hugetlb_opts.shrink_ok)
32 mallopt(M_TRIM_THRESHOLD, hpage_size + hpage_size / 2); 31 mallopt(M_TRIM_THRESHOLD, hpage_size + hpage_size / 2);
33 else 32 else
34@@ -381,4 +381,5 @@ void hugetlbfs_setup_morecore(void) 33@@ -388,5 +388,6 @@ void hugetlbfs_setup_morecore(void)
35 * This doesn't appear to prohibit malloc() from falling back 34 * This doesn't appear to prohibit malloc() from falling back
36 * to mmap() if we run out of hugepages. */ 35 * to mmap() if we run out of hugepages. */
37 mallopt(M_MMAP_MAX, 0); 36 mallopt(M_MMAP_MAX, 0);
38+#endif 37+#endif
39 } 38 }
39 #endif /* HAS_MORECORE */
40--
412.25.1
42
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0008-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch
index 858a8e511a..73844b71f9 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0008-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch
@@ -1,20 +1,19 @@
1From 9ff04d7acc700387e3837f8ab11a41efea5ee8b0 Mon Sep 17 00:00:00 2001 1From 4f69eb130dc2c67a90f2460cedb78f6db11dd6d2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:44:26 -0700 3Date: Thu, 21 Jun 2018 19:44:26 -0700
4Subject: [PATCH] alloc.c: Avoid sysconf(_SC_LEVEL2_CACHE_LINESIZE) on linux 4Subject: [PATCH] alloc.c: Avoid sysconf(_SC_LEVEL2_CACHE_LINESIZE) on linux
5 5
6musl does not have it 6musl does not have it
7 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10---
11Upstream-Status: Pending 8Upstream-Status: Pending
12 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
13 alloc.c | 15 ++++++++++++++- 12 alloc.c | 15 ++++++++++++++-
14 1 file changed, 14 insertions(+), 1 deletion(-) 13 1 file changed, 14 insertions(+), 1 deletion(-)
15 14
16diff --git a/alloc.c b/alloc.c 15diff --git a/alloc.c b/alloc.c
17index bce9464..cf7eb40 100644 16index b8ed663..a58c43d 100644
18--- a/alloc.c 17--- a/alloc.c
19+++ b/alloc.c 18+++ b/alloc.c
20@@ -245,6 +245,19 @@ void free_huge_pages(void *ptr) 19@@ -245,6 +245,19 @@ void free_huge_pages(void *ptr)
@@ -46,3 +45,6 @@ index bce9464..cf7eb40 100644
46 linemod = time(NULL); 45 linemod = time(NULL);
47 } 46 }
48 47
48--
492.25.1
50
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0004-shm.c-Mark-glibc-specific-changes-so.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch
index c3f7b3e479..4fbf30e24b 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0004-shm.c-Mark-glibc-specific-changes-so.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0009-shm.c-Mark-glibc-specific-changes-so.patch
@@ -1,13 +1,12 @@
1From 9ce323432a7f4d99f617970c7e35b607b9bbf843 Mon Sep 17 00:00:00 2001 1From 37239dd5f14a34b05e77b3ca6e34f96161f1339a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:48:04 -0700 3Date: Thu, 21 Jun 2018 19:48:04 -0700
4Subject: [PATCH] shm.c: Mark glibc specific changes so 4Subject: [PATCH] shm.c: Mark glibc specific changes so
5 5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8---
9Upstream-Status: Pending 6Upstream-Status: Pending
10 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
11 shm.c | 3 ++- 10 shm.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-) 11 1 file changed, 2 insertions(+), 1 deletion(-)
13 12
@@ -28,3 +27,6 @@ index 1f82cab..9447b63 100644
28 27
29 /* call syscall shmget through the generic syscall mechanism */ 28 /* call syscall shmget through the generic syscall mechanism */
30 static int syscall_shmget(key_t key, size_t size, int shmflg) 29 static int syscall_shmget(key_t key, size_t size, int shmflg)
30--
312.25.1
32
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0005-Include-dirent.h-for-ino_t.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0010-Include-dirent.h-for-ino_t.patch
index 8bd1633392..a530a5267a 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0005-Include-dirent.h-for-ino_t.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0010-Include-dirent.h-for-ino_t.patch
@@ -1,4 +1,4 @@
1From bb8c370aaaf25b1fe1fbf984e73177018026cb91 Mon Sep 17 00:00:00 2001 1From ec9163c0436d1c77cecc941aca2e524b26001b15 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:51:02 -0700 3Date: Thu, 21 Jun 2018 19:51:02 -0700
4Subject: [PATCH] Include dirent.h for ino_t 4Subject: [PATCH] Include dirent.h for ino_t
@@ -6,13 +6,13 @@ Subject: [PATCH] Include dirent.h for ino_t
6Fixes 6Fixes
7error: unknown type name 'ino_t'; did you mean 'int'? 7error: unknown type name 'ino_t'; did you mean 'int'?
8 8
9Upstream-Status: Pending
10
9Signed-off-by: Khem Raj <raj.khem@gmail.com> 11Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 12
11Update for 2.22. 13Update for 2.22.
12Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> 14Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
13--- 15---
14Upstream-Status: Pending
15
16 tests/hugetests.h | 1 + 16 tests/hugetests.h | 1 +
17 1 file changed, 1 insertion(+) 17 1 file changed, 1 insertion(+)
18 18
@@ -29,5 +29,5 @@ index bc4e16a..fbe4dc0 100644
29 29
30 #include "libhugetlbfs_privutils.h" 30 #include "libhugetlbfs_privutils.h"
31-- 31--
322.7.4 322.25.1
33 33
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-limits.h-for-PATH_MAX.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0011-include-limits.h-for-PATH_MAX.patch
index e4f8030961..08de396d9f 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0006-include-limits.h-for-PATH_MAX.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0011-include-limits.h-for-PATH_MAX.patch
@@ -1,4 +1,4 @@
1From 5f64aa8c47c2d3a155a97e262f89cc47394a69eb Mon Sep 17 00:00:00 2001 1From 79b76433f4b6f2f14914817b7e8ac0db1df39250 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Jun 2018 19:58:53 -0700 3Date: Thu, 21 Jun 2018 19:58:53 -0700
4Subject: [PATCH] include limits.h for PATH_MAX 4Subject: [PATCH] include limits.h for PATH_MAX
@@ -7,17 +7,16 @@ Fixes
7 7
8error: 'PATH_MAX' undeclared 8error: 'PATH_MAX' undeclared
9 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12---
13Upstream-Status: Pending 10Upstream-Status: Pending
14 11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
15 hugeadm.c | 1 + 14 hugeadm.c | 1 +
16 tests/gethugepagesizes.c | 1 + 15 tests/gethugepagesizes.c | 1 +
17 2 files changed, 2 insertions(+) 16 2 files changed, 2 insertions(+)
18 17
19diff --git a/hugeadm.c b/hugeadm.c 18diff --git a/hugeadm.c b/hugeadm.c
20index fe4211d..8db274c 100644 19index 79a4867..65d5136 100644
21--- a/hugeadm.c 20--- a/hugeadm.c
22+++ b/hugeadm.c 21+++ b/hugeadm.c
23@@ -33,6 +33,7 @@ 22@@ -33,6 +33,7 @@
@@ -29,7 +28,7 @@ index fe4211d..8db274c 100644
29 #include <sys/stat.h> 28 #include <sys/stat.h>
30 #include <sys/types.h> 29 #include <sys/types.h>
31diff --git a/tests/gethugepagesizes.c b/tests/gethugepagesizes.c 30diff --git a/tests/gethugepagesizes.c b/tests/gethugepagesizes.c
32index 9551b38..2645e3f 100644 31index 5777265..990db69 100644
33--- a/tests/gethugepagesizes.c 32--- a/tests/gethugepagesizes.c
34+++ b/tests/gethugepagesizes.c 33+++ b/tests/gethugepagesizes.c
35@@ -29,6 +29,7 @@ 34@@ -29,6 +29,7 @@
@@ -40,3 +39,6 @@ index 9551b38..2645e3f 100644
40 39
41 #include "hugetests.h" 40 #include "hugetests.h"
42 41
42--
432.25.1
44
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0012-huge_page_setup_helper-use-python3-interpreter.patch
index e45f283b38..0583df95ad 100644
--- a/meta-oe/recipes-benchmark/libhugetlbfs/files/0001-huge_page_setup_helper-use-python3-interpreter.patch
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0012-huge_page_setup_helper-use-python3-interpreter.patch
@@ -1,4 +1,4 @@
1From b77c61de4d88d2c6e5d31f4f5a5877cc4c61272e Mon Sep 17 00:00:00 2001 1From e5580e392b8764e1e6509c5a4ed13fb2ce7566b9 Mon Sep 17 00:00:00 2001
2From: Andrey Zhizhikin <andrey.z@gmail.com> 2From: Andrey Zhizhikin <andrey.z@gmail.com>
3Date: Mon, 27 Jan 2020 17:27:55 +0000 3Date: Mon, 27 Jan 2020 17:27:55 +0000
4Subject: [PATCH] huge_page_setup_helper: use python3 interpreter 4Subject: [PATCH] huge_page_setup_helper: use python3 interpreter
@@ -15,7 +15,7 @@ Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
15 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
16 16
17diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py 17diff --git a/huge_page_setup_helper.py b/huge_page_setup_helper.py
18index a9ba2bf..7ba0c92 100755 18index 01fc8dc..79a88ca 100755
19--- a/huge_page_setup_helper.py 19--- a/huge_page_setup_helper.py
20+++ b/huge_page_setup_helper.py 20+++ b/huge_page_setup_helper.py
21@@ -1,4 +1,4 @@ 21@@ -1,4 +1,4 @@
@@ -25,5 +25,5 @@ index a9ba2bf..7ba0c92 100755
25 # 25 #
26 # Tool to set up Linux large page support with minimal effort 26 # Tool to set up Linux large page support with minimal effort
27-- 27--
282.17.1 282.25.1
29 29
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/files/0013-elflink.c-include-libgen.h-for-basename.patch b/meta-oe/recipes-benchmark/libhugetlbfs/files/0013-elflink.c-include-libgen.h-for-basename.patch
new file mode 100644
index 0000000000..264a535cc7
--- /dev/null
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/files/0013-elflink.c-include-libgen.h-for-basename.patch
@@ -0,0 +1,41 @@
1From 825444522d698991be04bbfa683a7cf785c6f72c Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 2 Oct 2024 00:06:34 +0800
4Subject: [PATCH] elflink.c: include libgen.h for basename
5
6Basename prototype has been removed from string.h from latest musl[1].
7Compilers e.g. clang-18 flags the absense of prototype as error.
8Therefore include libgen.h for providing it.
9
10elflink.c: In function 'get_shared_file_name':
11elflink.c:363:19: error: implicit declaration of function 'basename' [-Wimplicit-function-declaration]
12 363 | binary2 = basename(binary);
13 | ^~~~~~~~
14elflink.c:363:17: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
15 363 | binary2 = basename(binary);
16 | ^
17
18[1] https://git.musl-libc.org/cgit/musl/commit/?id=725e17ed6dff4d0cd22487bb64470881e86a92e7
19
20Upstream-Status: Pending
21
22Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
23---
24 elflink.c | 1 +
25 1 file changed, 1 insertion(+)
26
27diff --git a/elflink.c b/elflink.c
28index 278d338..0e78d61 100644
29--- a/elflink.c
30+++ b/elflink.c
31@@ -38,6 +38,7 @@
32 #include <limits.h>
33 #include <elf.h>
34 #include <dlfcn.h>
35+#include <libgen.h>
36
37 #include "version.h"
38 #include "hugetlbfs.h"
39--
402.25.1
41
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb
new file mode 100644
index 0000000000..e688d6ede2
--- /dev/null
+++ b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_2.24.bb
@@ -0,0 +1,79 @@
1SUMMARY = "A library which provides easy access to huge pages of memory"
2HOMEPAGE = "https://github.com/libhugetlbfs/libhugetlbfs"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
5
6RDEPENDS:${PN} += "bash"
7RDEPENDS:${PN}-tests += "bash python3-core python3-resource"
8
9PE = "1"
10
11SRCREV = "1322884fb0d55dc55f53563c1aa6328d118997e7"
12SRC_URI = " \
13 git://github.com/libhugetlbfs/libhugetlbfs.git;protocol=https;branch=master \
14 file://0001-skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \
15 file://0002-libhugetlbfs-avoid-search-host-library-path-for-cros.patch \
16 file://0003-tests-Makefile-install-static-4G-edge-testcases.patch \
17 file://0004-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch \
18 file://0005-libhugetlbfs-elf_i386-avoid-search-host-library-path.patch \
19 file://0006-include-stddef.h-for-ptrdiff_t.patch \
20 file://0007-Mark-glibc-specific-code-so.patch \
21 file://0008-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch \
22 file://0009-shm.c-Mark-glibc-specific-changes-so.patch \
23 file://0010-Include-dirent.h-for-ino_t.patch \
24 file://0011-include-limits.h-for-PATH_MAX.patch \
25 file://0012-huge_page_setup_helper-use-python3-interpreter.patch \
26 file://0013-elflink.c-include-libgen.h-for-basename.patch \
27"
28
29UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
30
31
32COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
33
34LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
35LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
36LIBHUGETLBFS_ARCH:powerpc = "ppc"
37LIBHUGETLBFS_ARCH:powerpc64 = "ppc64"
38LIBHUGETLBFS_ARCH:powerpc64le = "ppc64le"
39EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} BUILDTYPE=NATIVEONLY V=2"
40PARALLEL_MAKE = ""
41CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
42
43export HUGETLB_LDSCRIPT_PATH = "${S}/ldscripts"
44
45TARGET_CC_ARCH += "${LDFLAGS}"
46
47LDFLAGS += "-B${S}"
48
49inherit autotools-brokensep
50
51do_configure:prepend() {
52 ln -sf ld.hugetlbfs ${S}/ld
53 ln -sf ld.hugetlbfs ${S}/ld.bfd
54 ln -sf ld.hugetlbfs ${S}/ld.lld
55}
56
57do_install() {
58 oe_runmake PREFIX=${prefix} DESTDIR=${D} \
59 INST_TESTSDIR32=${libdir}/libhugetlbfs/tests \
60 INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \
61 install-tests
62
63 sed -i \
64 -e 's|${RECIPE_SYSROOT_NATIVE}||g' \
65 -e 's|${RECIPE_SYSROOT}||g' \
66 -e 's|${S}||g' \
67 `find ${D}${libdir}/libhugetlbfs/tests -name dummy.ldscript`
68}
69
70PACKAGES =+ "${PN}-tests "
71FILES:${PN} += "${libdir}/*.so"
72FILES:${PN}-dev = "${includedir}"
73FILES:${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
74FILES:${PN}-tests += "${libdir}/libhugetlbfs/tests"
75
76INSANE_SKIP:${PN} = "dev-so"
77
78INHIBIT_PACKAGE_STRIP = "1"
79INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
diff --git a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb b/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
deleted file mode 100644
index 80af9873b1..0000000000
--- a/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb
+++ /dev/null
@@ -1,79 +0,0 @@
1SUMMARY = "A library which provides easy access to huge pages of memory"
2HOMEPAGE = "https://github.com/libhugetlbfs/libhugetlbfs"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://LGPL-2.1;md5=2d5025d4aa3495befef8f17206a5b0a1"
5
6DEPENDS = "sysfsutils"
7RDEPENDS:${PN} += "bash python3-core"
8RDEPENDS:${PN}-tests += "bash python3-core"
9
10PV = "2.23"
11PE = "1"
12
13SRCREV = "6b126a4d7da9490fa40fe7e1b962edcb939feddc"
14SRC_URI = " \
15 git://github.com/libhugetlbfs/libhugetlbfs.git;protocol=https;branch=master \
16 file://skip-checking-LIB32-and-LIB64-if-they-point-to-the-s.patch \
17 file://libhugetlbfs-avoid-search-host-library-path-for-cros.patch \
18 file://tests-Makefile-install-static-4G-edge-testcases.patch \
19 file://0001-run_test.py-not-use-hard-coded-path-.-obj-hugeadm.patch \
20 file://libhugetlbfs-elf_i386-avoid-search-host-library-path.patch \
21 file://0001-include-stddef.h-for-ptrdiff_t.patch \
22 file://0002-Mark-glibc-specific-code-so.patch \
23 file://0003-alloc.c-Avoid-sysconf-_SC_LEVEL2_CACHE_LINESIZE-on-l.patch \
24 file://0004-shm.c-Mark-glibc-specific-changes-so.patch \
25 file://0005-Include-dirent.h-for-ino_t.patch \
26 file://0006-include-limits.h-for-PATH_MAX.patch \
27 file://0001-huge_page_setup_helper-use-python3-interpreter.patch \
28 file://0001-Revert-ld.hugetlbfs-fix-Ttext-segment-argument-on-AA.patch \
29 file://0001-tests-makefile-Append-CPPFLAGS-rather-then-override.patch \
30"
31
32UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
33
34S = "${WORKDIR}/git"
35
36COMPATIBLE_HOST = "(i.86|x86_64|powerpc|powerpc64|aarch64|arm).*-linux*"
37
38LIBARGS = "LIB32=${baselib} LIB64=${baselib}"
39LIBHUGETLBFS_ARCH = "${TARGET_ARCH}"
40LIBHUGETLBFS_ARCH:powerpc = "ppc"
41LIBHUGETLBFS_ARCH:powerpc64 = "ppc64"
42LIBHUGETLBFS_ARCH:powerpc64le = "ppc64le"
43EXTRA_OEMAKE = "'ARCH=${LIBHUGETLBFS_ARCH}' 'OPT=${CFLAGS}' 'CC=${CC}' ${LIBARGS} BUILDTYPE=NATIVEONLY V=2"
44PARALLEL_MAKE = ""
45CFLAGS += "-fexpensive-optimizations -frename-registers -fomit-frame-pointer -g0"
46
47export HUGETLB_LDSCRIPT_PATH="${S}/ldscripts"
48
49TARGET_CC_ARCH += "${LDFLAGS}"
50
51#The CUSTOM_LDSCRIPTS doesn't work with the gold linker
52inherit cpan-base
53do_configure() {
54 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then
55 sed -i 's/CUSTOM_LDSCRIPTS = yes/CUSTOM_LDSCRIPTS = no/' Makefile
56 fi
57}
58
59do_install() {
60 oe_runmake PREFIX=${prefix} DESTDIR=${D} \
61 INST_TESTSDIR32=${libdir}/libhugetlbfs/tests \
62 INST_TESTSDIR64=${libdir}/libhugetlbfs/tests \
63 install-tests
64}
65
66
67PACKAGES =+ "${PN}-tests "
68FILES:${PN} += "${libdir}/*.so"
69FILES:${PN}-dev = "${includedir}"
70FILES:${PN}-dbg += "${libdir}/libhugetlbfs/tests/obj32/.debug ${libdir}/libhugetlbfs/tests/obj64/.debug"
71FILES:${PN}-tests += "${libdir}/libhugetlbfs/tests"
72
73INSANE_SKIP:${PN} = "dev-so"
74
75INHIBIT_PACKAGE_STRIP = "1"
76INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
77
78# see https://github.com/libhugetlbfs/libhugetlbfs/issues/52
79SKIP_RECIPE[libhugetlbfs] ?= "Needs porting to glibc 2.34+"
diff --git a/meta-oe/recipes-benchmark/linpack/linpack/0001-Fix-build-error-in-gcc-15.0.1-due-to-function-redecl.patch b/meta-oe/recipes-benchmark/linpack/linpack/0001-Fix-build-error-in-gcc-15.0.1-due-to-function-redecl.patch
new file mode 100644
index 0000000000..fbde7396c2
--- /dev/null
+++ b/meta-oe/recipes-benchmark/linpack/linpack/0001-Fix-build-error-in-gcc-15.0.1-due-to-function-redecl.patch
@@ -0,0 +1,52 @@
1From a1c1211fd6fc8d82053074c6dc531340f046c8d4 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Tue, 1 Apr 2025 16:06:56 +0900
4Subject: [PATCH] Fix build error in gcc 15.0.1 due to function redeclaration.
5
6Fix build error:
7linpacknew.c: In function 'dgefa':
8linpacknew.c:257:9: error: conflicting types for 'idamax'; have 'int(void)'
9 257 | int idamax(),j,k,kp1,l,nm1;
10 | ^~~~~~
11linpacknew.c:63:13: note: previous declaration of 'idamax' with type 'int(int, REAL *, int)' {aka 'int(int, double *, int)'}
12 63 | static int idamax (int n,REAL *dx,int incx);
13 | ^~~~~~
14linpacknew.c:272:21: error: too many arguments to function 'idamax'; expected 0, have 3
15 272 | l = idamax(n-k,&a[lda*k+k],1) + k;
16 | ^~~~~~ ~~~
17linpacknew.c:257:9: note: declared here
18 257 | int idamax(),j,k,kp1,l,nm1;
19 | ^~~~~~
20linpacknew.c:326:21: error: too many arguments to function 'idamax'; expected 0, have 3
21 326 | l = idamax(n-k,&a[lda*k+k],1) + k;
22 | ^~~~~~ ~~~
23linpacknew.c:257:9: note: declared here
24 257 | int idamax(),j,k,kp1,l,nm1;
25 | ^~~~~~
26
27The function was already declared as static int idamax(int n, REAL *dx, int incx);
28on line 63, but it was redeclared as int idamax() inside the dgefa function on line 257,
29causing a conflict.
30where functions are redeclared without parameters,
31causing conflicts with the original function definitions.
32
33Upstream-Status: Inactive-Upstream [lastrelease: 2/25/94]
34
35Signed-off-by: mark.yang <mark.yang@lge.com>
36---
37 linpacknew.c | 2 +-
38 1 file changed, 1 insertion(+), 1 deletion(-)
39
40diff --git a/linpacknew.c b/linpacknew.c
41index c656082..5c8687b 100644
42--- a/linpacknew.c
43+++ b/linpacknew.c
44@@ -254,7 +254,7 @@ static void dgefa(REAL *a,int lda,int n,int *ipvt,int *info,int roll)
45
46 {
47 REAL t;
48- int idamax(),j,k,kp1,l,nm1;
49+ int j,k,kp1,l,nm1;
50
51 /* gaussian elimination with partial pivoting */
52
diff --git a/meta-oe/recipes-benchmark/linpack/linpack_1.0.bb b/meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
index 603004ddd5..6a500dbf01 100644
--- a/meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
+++ b/meta-oe/recipes-benchmark/linpack/linpack_1.0.bb
@@ -2,15 +2,15 @@ DESCRIPTION = "LINPACK Benchmarks are a measure of a system's floating point com
2SUMMARY = "LINPACK is a software library for performing numerical linear algebra on digital computers" 2SUMMARY = "LINPACK is a software library for performing numerical linear algebra on digital computers"
3 3
4LICENSE = "PD" 4LICENSE = "PD"
5LIC_FILES_CHKSUM ="file://${WORKDIR}/linpacknew.c;beginline=1;endline=23;md5=aa025e3bc44190c71e4c5e3b084fed87" 5LIC_FILES_CHKSUM = "file://${UNPACKDIR}/linpacknew.c;beginline=1;endline=23;md5=aa025e3bc44190c71e4c5e3b084fed87"
6 6
7SRC_URI = "http://www.netlib.org/benchmark/linpackc.new;downloadfilename=linpacknew.c \ 7SRC_URI = "http://www.netlib.org/benchmark/linpackc.new;downloadfilename=linpacknew.c \
8 file://0001-linpack-Define-DP-only-when-SP-is-not-defined.patch \ 8 file://0001-linpack-Define-DP-only-when-SP-is-not-defined.patch \
9 file://0001-Fix-build-error-in-gcc-15.0.1-due-to-function-redecl.patch \
9 " 10 "
10SRC_URI[md5sum] = "1c5d0b6a31264685d2e651c920e3cdf4"
11SRC_URI[sha256sum] = "a63f2ec86512959f1fd926bfafb85905b2d7b7402942ffae3af374d48745e97e" 11SRC_URI[sha256sum] = "a63f2ec86512959f1fd926bfafb85905b2d7b7402942ffae3af374d48745e97e"
12 12
13S = "${WORKDIR}" 13S = "${UNPACKDIR}"
14 14
15do_compile () { 15do_compile () {
16 ${CC} ${CFLAGS} ${LDFLAGS} -DDP -o linpack_dp linpacknew.c -lm 16 ${CC} ${CFLAGS} ${LDFLAGS} -DDP -o linpack_dp linpacknew.c -lm
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench/0001-Fix-build-errors-related-to-incorrect-function-param.patch b/meta-oe/recipes-benchmark/lmbench/lmbench/0001-Fix-build-errors-related-to-incorrect-function-param.patch
new file mode 100644
index 0000000000..30f52023cd
--- /dev/null
+++ b/meta-oe/recipes-benchmark/lmbench/lmbench/0001-Fix-build-errors-related-to-incorrect-function-param.patch
@@ -0,0 +1,252 @@
1From 8a6b5f649fe7f42aff4f69a8d99c522adb22f54c Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 10 Apr 2025 13:19:07 +0900
4Subject: [PATCH] Fix build errors related to incorrect function parameters in
5 gcc-15
6
7* see more details
8 http://errors.yoctoproject.org/Errors/Details/851798/
9
10 lat_rpc.c:172:1: error: conflicting types for 'client_rpc_xact_1'; have 'char *(char *, CLIENT *)' {aka 'char *(char *, struct __rpc_client *)'}
11 172 | client_rpc_xact_1(char *argp, CLIENT *clnt)
12 | ^~~~~~~~~~~~~~~~~
13 bench.h:349:14: note: previous declaration of 'client_rpc_xact_1' with type 'char *(void)'
14 349 | extern char *client_rpc_xact_1();
15 | ^~~~~~~~~~~~~~~~~
16 lat_rpc.c: In function 'rpc_xact_1':
17 lat_rpc.c:189:1: warning: old-style function definition [-Wold-style-definition]
18 189 | rpc_xact_1(msg, transp)
19 | ^~~~~~~~~~
20 lat_rpc.c:192:1: error: number of arguments doesn't match prototype
21 192 | {
22 | ^
23 bench.h:348:14: error: prototype declaration
24 348 | extern char *rpc_xact_1();
25 | ^~~~~~~~~~
26
27 Fix errors due to old-style function declarations
28
29 The code was using old-style function declarations without proper prototypes,
30 which causes compilation errors with newer GCC versions. This patch updates
31 the function declarations to use modern C syntax with proper parameter types.
32
33Upstream-Status: Submitted [https://sourceforge.net/p/lmbench/patches/3]
34Signed-off-by: mark.yang <mark.yang@lge.com>
35---
36 src/bench.h | 4 ++--
37 src/lat_rpc.c | 24 ++++++++++--------------
38 src/lat_udp.c | 4 ++--
39 src/lmdd.c | 18 +++++++++---------
40 src/lmhttp.c | 4 ++--
41 5 files changed, 25 insertions(+), 29 deletions(-)
42
43diff --git a/src/bench.h b/src/bench.h
44index 1768ef7..4fc2822 100644
45--- a/src/bench.h
46+++ b/src/bench.h
47@@ -345,7 +345,7 @@ extern int sched_pin(int cpu);
48 #define XACT_VERS ((u_long)1)
49 #define RPC_XACT ((u_long)1)
50 #define RPC_EXIT ((u_long)2)
51-extern char *rpc_xact_1();
52-extern char *client_rpc_xact_1();
53+extern char *rpc_xact_1(char *msg, struct svc_req *rqstp);
54+extern char *client_rpc_xact_1(char *argp, CLIENT *clnt);
55
56 #endif /* _BENCH_H */
57diff --git a/src/lat_rpc.c b/src/lat_rpc.c
58index 9c02192..e1450af 100644
59--- a/src/lat_rpc.c
60+++ b/src/lat_rpc.c
61@@ -185,17 +185,15 @@ client_rpc_xact_1(char *argp, CLIENT *clnt)
62 * The remote procedure[s] that will be called
63 */
64 /* ARGSUSED */
65-char *
66-rpc_xact_1(msg, transp)
67- char *msg;
68- register SVCXPRT *transp;
69+char *
70+rpc_xact_1(char *msg, struct svc_req *rqstp /* transp is unused */)
71 {
72 static char r = 123;
73
74 return &r;
75 }
76
77-static void xact_prog_1();
78+static void xact_prog_1(struct svc_req *rqstp, register SVCXPRT *transp);
79
80 void
81 server_main()
82@@ -233,16 +231,14 @@ server_main()
83 }
84
85 static void
86-xact_prog_1(rqstp, transp)
87- struct svc_req *rqstp;
88- register SVCXPRT *transp;
89+xact_prog_1(struct svc_req *rqstp, register SVCXPRT *transp)
90 {
91 union {
92 char rpc_xact_1_arg;
93 } argument;
94 char *result;
95- bool_t (*xdr_argument)(), (*xdr_result)();
96- char *(*local)();
97+ bool_t (*xdr_argument)(XDR *, void *), (*xdr_result)(XDR *, void *);
98+ char *(*local)(char *, struct svc_req *);
99
100 switch (rqstp->rq_proc) {
101 case NULLPROC:
102@@ -250,9 +246,9 @@ xact_prog_1(rqstp, transp)
103 return;
104
105 case RPC_XACT:
106- xdr_argument = xdr_char;
107- xdr_result = xdr_char;
108- local = (char *(*)()) rpc_xact_1;
109+ xdr_argument = (bool_t (*)(XDR *, void *))xdr_char;
110+ xdr_result = (bool_t (*)(XDR *, void *))xdr_char;
111+ local = rpc_xact_1;
112 break;
113
114 case RPC_EXIT:
115@@ -269,7 +265,7 @@ xact_prog_1(rqstp, transp)
116 svcerr_decode(transp);
117 return;
118 }
119- result = (*local)(&argument, rqstp);
120+ result = local(&argument.rpc_xact_1_arg, rqstp);
121 if (result != NULL && !svc_sendreply(transp, (xdrproc_t)xdr_result, result)) {
122 svcerr_systemerr(transp);
123 }
124diff --git a/src/lat_udp.c b/src/lat_udp.c
125index cdd2e9b..292d5c4 100644
126--- a/src/lat_udp.c
127+++ b/src/lat_udp.c
128@@ -19,7 +19,7 @@ char *id = "$Id$\n";
129
130 void client_main(int ac, char **av);
131 void server_main();
132-void timeout();
133+void timeout(int sig);
134 void init(iter_t iterations, void* cookie);
135 void cleanup(iter_t iterations, void* cookie);
136 void doit(iter_t iterations, void* cookie);
137@@ -164,7 +164,7 @@ cleanup(iter_t iterations, void* cookie)
138 }
139
140 void
141-timeout()
142+timeout(__attribute__((unused)) int sig)
143 {
144 fprintf(stderr, "Recv timed out\n");
145 exit(1);
146diff --git a/src/lmdd.c b/src/lmdd.c
147index dee37b4..da64b04 100644
148--- a/src/lmdd.c
149+++ b/src/lmdd.c
150@@ -76,7 +76,7 @@ int norepeats = -1;
151 bds_msg *m1, *m2;
152 #endif
153
154-uint64 getarg();
155+uint64 getarg(char *s, int ac, char **av);
156 int been_there(uint64 off);
157 int getfile(char *s, int ac, char **av);
158
159@@ -148,7 +148,7 @@ char *cmds[] = {
160
161
162 void error(char *);
163-void done();
164+void done(int sig);
165 #ifdef DBG
166 extern int dbg;
167 #endif
168@@ -162,7 +162,7 @@ main(int ac, char **av)
169 int Fork, misses, mismatch, outpat, inpat, in, timeopen, gotcnt;
170 int slp;
171 uint64 skip, size, count;
172- void chkarg();
173+ void chkarg(char *arg);
174 int i;
175 uint64 off = 0;
176 int touch;
177@@ -332,7 +332,7 @@ main(int ac, char **av)
178 register int moved;
179
180 if (gotcnt && count-- <= 0) {
181- done();
182+ done(0);
183 }
184
185 /*
186@@ -445,7 +445,7 @@ main(int ac, char **av)
187 perror("read");
188 }
189 if (moved <= 0) {
190- done();
191+ done(0);
192 }
193 if (inpat != -1) {
194 register int foo, cnt;
195@@ -458,7 +458,7 @@ main(int ac, char **av)
196 (uint)(off + foo*sizeof(int)),
197 buf[foo]);
198 if (mismatch != -1 && --misses == 0) {
199- done();
200+ done(0);
201 }
202 }
203 }
204@@ -523,7 +523,7 @@ main(int ac, char **av)
205 if (moved2 != moved) {
206 fprintf(stderr, "write: wanted=%d got=%d\n",
207 moved, moved2);
208- done();
209+ done(0);
210 }
211 if ((Wtmax != -1) || (Wtmin != -1)) {
212 int mics = stop(&start_tv, &stop_tv);
213@@ -560,7 +560,7 @@ main(int ac, char **av)
214 perror("write");
215 }
216 if (moved2 != moved) {
217- done();
218+ done(0);
219 }
220
221 if (touch) {
222@@ -626,7 +626,7 @@ chkarg(char *arg)
223 }
224
225 void
226-done(void)
227+done(__attribute__((unused)) int sig)
228 {
229 int i;
230 int step;
231diff --git a/src/lmhttp.c b/src/lmhttp.c
232index 41d9949..c2f3cb9 100644
233--- a/src/lmhttp.c
234+++ b/src/lmhttp.c
235@@ -26,7 +26,7 @@ char *buf;
236 char *bufs[3];
237 int Dflg, dflg, nflg, lflg, fflg, zflg;
238 int data, logfile;
239-void die();
240+void die(int sig);
241 void worker();
242 char *http_time(void);
243 char *date(time_t *tt);
244@@ -387,7 +387,7 @@ logit(int sock, char *name, int size)
245 nbytes += len;
246 }
247
248-void die()
249+void die(__attribute__((unused)) int sig)
250 {
251 if (nbytes) {
252 write(logfile, logbuf, nbytes);
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
index 57f73eedc7..acd4d6decf 100644
--- a/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
+++ b/meta-oe/recipes-benchmark/lmbench/lmbench_3.0-a9.bb
@@ -29,8 +29,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/lmbench/lmbench-${PV}.tgz \
29 file://0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch \ 29 file://0001-doc-Fix-typos-in-lat_unix_connect-manual-page.patch \
30 file://0001-bench.h-Fix-typo-in-specifying-string.h.patch \ 30 file://0001-bench.h-Fix-typo-in-specifying-string.h.patch \
31 file://0001-scripts-build-Fix-the-tests-to-build-with-clang15.patch \ 31 file://0001-scripts-build-Fix-the-tests-to-build-with-clang15.patch \
32 file://0001-Fix-build-errors-related-to-incorrect-function-param.patch \
32 " 33 "
33SRC_URI[md5sum] = "b3351a3294db66a72e2864a199d37cbf"
34SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551" 34SRC_URI[sha256sum] = "cbd5777d15f44eab7666dcac418054c3c09df99826961a397d9acf43d8a2a551"
35 35
36UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/lmbench/files/development/" 36UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/lmbench/files/development/"
@@ -75,7 +75,7 @@ do_install () {
75 DESTDIR="${D}" \ 75 DESTDIR="${D}" \
76 -C src install 76 -C src install
77 mv ${D}${bindir}/line ${D}${bindir}/lm_line 77 mv ${D}${bindir}/line ${D}${bindir}/lm_line
78 install -m 0755 ${WORKDIR}/lmbench-run ${D}${bindir}/ 78 install -m 0755 ${UNPACKDIR}/lmbench-run ${D}${bindir}/
79 install -m 0755 ${S}/bin/${TARGET_SYS}/cache ${D}${bindir}/ 79 install -m 0755 ${S}/bin/${TARGET_SYS}/cache ${D}${bindir}/
80 sed -i -e 's,^SHAREDIR=.*$,SHAREDIR=${datadir}/${BPN},;' \ 80 sed -i -e 's,^SHAREDIR=.*$,SHAREDIR=${datadir}/${BPN},;' \
81 -e 's,^CONFIG=.*$,CONFIG=`$SCRIPTSDIR/config`,;' \ 81 -e 's,^CONFIG=.*$,CONFIG=`$SCRIPTSDIR/config`,;' \
diff --git a/meta-oe/recipes-benchmark/mbw/mbw_2.0.bb b/meta-oe/recipes-benchmark/mbw/mbw_2.0.bb
index bb8c4625d5..1fd95de038 100644
--- a/meta-oe/recipes-benchmark/mbw/mbw_2.0.bb
+++ b/meta-oe/recipes-benchmark/mbw/mbw_2.0.bb
@@ -8,7 +8,6 @@ SRC_URI = "git://github.com/raas/${BPN}.git;branch=master;protocol=https"
8 8
9SRCREV = "c3155b544a5065e8235508059c6512af6c46bd4d" 9SRCREV = "c3155b544a5065e8235508059c6512af6c46bd4d"
10 10
11S = "${WORKDIR}/git"
12 11
13do_install() { 12do_install() {
14 install -d ${D}${bindir} 13 install -d ${D}${bindir}
diff --git a/meta-oe/recipes-benchmark/memtester/memtester_4.6.0.bb b/meta-oe/recipes-benchmark/memtester/memtester_4.7.1.bb
index 42cee1108d..fd6713ea9f 100644
--- a/meta-oe/recipes-benchmark/memtester/memtester_4.6.0.bb
+++ b/meta-oe/recipes-benchmark/memtester/memtester_4.7.1.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
8SRC_URI = "http://pyropus.ca/software/memtester/old-versions/${BP}.tar.gz \ 8SRC_URI = "http://pyropus.ca/software/memtester/old-versions/${BP}.tar.gz \
9 file://Makefile.patch \ 9 file://Makefile.patch \
10 " 10 "
11SRC_URI[sha256sum] = "c9fe4eb7e80c8cef5202f9065c4c0682f5616647c0455e916a5700f98e3dbb2e" 11SRC_URI[sha256sum] = "e427de663f7bd22d1ebee8af12506a852c010bd4fcbca1e0e6b02972d298b5bb"
12 12
13do_compile () { 13do_compile () {
14 echo '${CC} ${CFLAGS} -DPOSIX -c' > conf-cc 14 echo '${CC} ${CFLAGS} -DPOSIX -c' > conf-cc
diff --git a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch
new file mode 100644
index 0000000000..8e01e17e91
--- /dev/null
+++ b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte/0001-Fix-build-error-with-gcc-15.patch
@@ -0,0 +1,34 @@
1From 3ee8798764919cd3f7d983f99f6189bbb940d639 Mon Sep 17 00:00:00 2001
2From: "mark.yang" <mark.yang@lge.com>
3Date: Thu, 10 Apr 2025 10:53:14 +0900
4Subject: [PATCH] Fix build error with gcc-15
5
6* Fix the following build error with gcc-15:
7nbench1.c:3520:13: error: conflicting types for 'adjust_mid_wts'; have 'void(int)'
8 3520 | static void adjust_mid_wts(int patt)
9 | ^~~~~~~~~~~~~~
10In file included from nbench1.c:64:
11nbench1.h:373:13: note: previous declaration of 'adjust_mid_wts' with type 'void(void)'
12 373 | static void adjust_mid_wts();
13 | ^~~~~~~~~~~~~~
14
15Upstream-Status: Inappropriate [no upstream]
16
17Signed-off-by: mark.yang <mark.yang@lge.com>
18---
19 nbench1.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22diff --git a/nbench1.h b/nbench1.h
23index 13a5907..b81ca82 100644
24--- a/nbench1.h
25+++ b/nbench1.h
26@@ -370,7 +370,7 @@ static void do_out_error(int patt);
27 static void worst_pass_error();
28 static void do_mid_error();
29 static void adjust_out_wts();
30-static void adjust_mid_wts();
31+static void adjust_mid_wts(int patt);
32 static void do_back_pass(int patt);
33 static void move_wt_changes();
34 static int check_out_error();
diff --git a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
index b4d55be1b0..da03ebb291 100644
--- a/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
+++ b/meta-oe/recipes-benchmark/nbench-byte/nbench-byte_2.2.3.bb
@@ -9,9 +9,9 @@ SECTION = "console/utils"
9 9
10SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \ 10SRC_URI = "https://fossies.org/linux/misc/old/${BP}.tar.gz \
11 file://nbench_32bits.patch \ 11 file://nbench_32bits.patch \
12 file://Makefile-add-more-dependencies-to-pointer.h.patch" 12 file://Makefile-add-more-dependencies-to-pointer.h.patch \
13 file://0001-Fix-build-error-with-gcc-15.patch"
13 14
14SRC_URI[md5sum] = "285dfab361080759d477ea1fe7d3093a"
15SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac" 15SRC_URI[sha256sum] = "723dd073f80e9969639eb577d2af4b540fc29716b6eafdac488d8f5aed9101ac"
16 16
17EXTRA_OEMAKE = "-e MAKEFLAGS=" 17EXTRA_OEMAKE = "-e MAKEFLAGS="
diff --git a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.4.bb b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.4.bb
index 8de3314b3c..5f105c9f8e 100644
--- a/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.4.bb
+++ b/meta-oe/recipes-benchmark/phoronix-test-suite/phoronix-test-suite_10.8.4.bb
@@ -11,7 +11,7 @@ SRC_URI = "http://www.phoronix-test-suite.com/releases/${BP}.tar.gz \
11 11
12SRC_URI[sha256sum] = "1f2092d536c0a3193efc53e4a50f3cee65c0ef1a78d31e5404f1c663fff7b7f4" 12SRC_URI[sha256sum] = "1f2092d536c0a3193efc53e4a50f3cee65c0ef1a78d31e5404f1c663fff7b7f4"
13 13
14S = "${WORKDIR}/phoronix-test-suite" 14S = "${UNPACKDIR}/phoronix-test-suite"
15 15
16inherit systemd allarch mime mime-xdg 16inherit systemd allarch mime mime-xdg
17 17
@@ -25,6 +25,9 @@ do_install() {
25 fi 25 fi
26} 26}
27 27
28PACKAGECONFIG ??= ""
29PACKAGECONFIG[pdf] = ",,,ttf-dejavu-sans"
30
28# It is not advisable to enable these services by default since they can cause 31# It is not advisable to enable these services by default since they can cause
29# continual target reboots if they encounter network problems. 32# continual target reboots if they encounter network problems.
30# 33#
diff --git a/meta-oe/recipes-benchmark/qperf/qperf_0.4.11.bb b/meta-oe/recipes-benchmark/qperf/qperf_0.4.11.bb
index b32f37153e..e034371604 100644
--- a/meta-oe/recipes-benchmark/qperf/qperf_0.4.11.bb
+++ b/meta-oe/recipes-benchmark/qperf/qperf_0.4.11.bb
@@ -9,7 +9,6 @@ inherit autotools-brokensep
9SRCREV = "c706363815a38ff2c5cbc07b73e2cfaaa59bae0f" 9SRCREV = "c706363815a38ff2c5cbc07b73e2cfaaa59bae0f"
10SRC_URI = "git://github.com/linux-rdma/qperf.git;protocol=https;branch=master" 10SRC_URI = "git://github.com/linux-rdma/qperf.git;protocol=https;branch=master"
11 11
12S = "${WORKDIR}/git"
13 12
14do_configure() { 13do_configure() {
15 ./cleanup 14 ./cleanup
diff --git a/meta-oe/recipes-benchmark/s-suite/s-suite_git.bb b/meta-oe/recipes-benchmark/s-suite/s-suite_git.bb
index 629b123042..caefdb7b6b 100644
--- a/meta-oe/recipes-benchmark/s-suite/s-suite_git.bb
+++ b/meta-oe/recipes-benchmark/s-suite/s-suite_git.bb
@@ -6,7 +6,10 @@ SRCREV = "f97f1ae321d1fb8111a2c638075702ed2512ff07"
6PV = "3.6" 6PV = "3.6"
7SRC_URI = "git://github.com/Algodev-github/S.git;protocol=https;branch=master" 7SRC_URI = "git://github.com/Algodev-github/S.git;protocol=https;branch=master"
8 8
9S = "${WORKDIR}/git" 9# Current PV is not a git tag but a Readme content, track commits to detect
10# upstream updates
11UPSTREAM_CHECK_COMMITS = "1"
12
10 13
11# installing in /opt/S-suite since the package has 14# installing in /opt/S-suite since the package has
12# dependencies to the directory structure. 15# dependencies to the directory structure.
diff --git a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.11.bb b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.11.bb
index ba61ff971e..2d450094b7 100644
--- a/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.11.bb
+++ b/meta-oe/recipes-benchmark/stressapptest/stressapptest_1.0.11.bb
@@ -18,6 +18,5 @@ GI_DATA_ENABLED:libc-musl:armv7a = "False"
18GI_DATA_ENABLED:libc-musl:armv7ve = "False" 18GI_DATA_ENABLED:libc-musl:armv7ve = "False"
19SRC_URI = "git://github.com/stressapptest/stressapptest;branch=master;protocol=https" 19SRC_URI = "git://github.com/stressapptest/stressapptest;branch=master;protocol=https"
20 20
21S = "${WORKDIR}/git"
22 21
23inherit autotools 22inherit autotools
diff --git a/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb b/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb
index 11e33fec55..198552e5c6 100644
--- a/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb
+++ b/meta-oe/recipes-benchmark/sysbench/sysbench_1.0.20.bb
@@ -13,7 +13,6 @@ inherit autotools-brokensep pkgconfig
13SRC_URI = "git://github.com/akopytov/sysbench.git;protocol=https;branch=master" 13SRC_URI = "git://github.com/akopytov/sysbench.git;protocol=https;branch=master"
14SRCREV = "ebf1c90da05dea94648165e4f149abc20c979557" 14SRCREV = "ebf1c90da05dea94648165e4f149abc20c979557"
15 15
16S = "${WORKDIR}/git"
17 16
18COMPATIBLE_HOST = "(arm|aarch64|i.86|x86_64).*-linux*" 17COMPATIBLE_HOST = "(arm|aarch64|i.86|x86_64).*-linux*"
19 18
diff --git a/meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb b/meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb
index 200a0de849..8f65a6135c 100644
--- a/meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb
+++ b/meta-oe/recipes-benchmark/tinymembench/tinymembench_git.bb
@@ -13,7 +13,6 @@ SRC_URI = "git://github.com/ssvb/tinymembench.git;branch=master;protocol=https \
13 file://0001-asm-Delete-.func-.endfunc-directives.patch \ 13 file://0001-asm-Delete-.func-.endfunc-directives.patch \
14 " 14 "
15 15
16S = "${WORKDIR}/git"
17 16
18TARGET_CC_ARCH += "${LDFLAGS}" 17TARGET_CC_ARCH += "${LDFLAGS}"
19 18
diff --git a/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb b/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb
index 0769715f45..98914836ed 100644
--- a/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb
+++ b/meta-oe/recipes-benchmark/tiobench/tiobench_0.3.3.bb
@@ -11,7 +11,6 @@ SRC_URI = "\
11 file://0001-Drop-inline-of-crc32-function-to-fix-build-using-GCC.patch \ 11 file://0001-Drop-inline-of-crc32-function-to-fix-build-using-GCC.patch \
12 file://0001-Specify-printf-formats.patch \ 12 file://0001-Specify-printf-formats.patch \
13" 13"
14SRC_URI[md5sum] = "bf485bf820e693c79e6bd2a38702a128"
15SRC_URI[sha256sum] = "8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc" 14SRC_URI[sha256sum] = "8ad011059a35ac70cdb5e3d3999ceee44a8e8e9078926844b0685b7ea9db2bcc"
16 15
17EXTRA_OEMAKE = "PREFIX=${D}/usr" 16EXTRA_OEMAKE = "PREFIX=${D}/usr"
diff --git a/meta-oe/recipes-benchmark/whetstone/whetstone_1.2.bb b/meta-oe/recipes-benchmark/whetstone/whetstone_1.2.bb
index 8fad04e365..0c6661567b 100644
--- a/meta-oe/recipes-benchmark/whetstone/whetstone_1.2.bb
+++ b/meta-oe/recipes-benchmark/whetstone/whetstone_1.2.bb
@@ -2,13 +2,12 @@ DESCRIPTION = "Whetstone benchmark is a synthetic benchmark for evaluating the p
2SUMMARY = "CPU benchmark to measure floating point performance" 2SUMMARY = "CPU benchmark to measure floating point performance"
3 3
4LICENSE = "PD" 4LICENSE = "PD"
5LIC_FILES_CHKSUM ="file://${WORKDIR}/whetstone.c;beginline=1;endline=52;md5=c795edc15e7e1d92ca8f88ad718449f5" 5LIC_FILES_CHKSUM = "file://${UNPACKDIR}/whetstone.c;beginline=1;endline=52;md5=c795edc15e7e1d92ca8f88ad718449f5"
6 6
7SRC_URI = "http://www.netlib.org/benchmark/whetstone.c" 7SRC_URI = "http://www.netlib.org/benchmark/whetstone.c"
8SRC_URI[md5sum] = "d8eb2cd7104bb5a12d614ac6d3f1f9fb"
9SRC_URI[sha256sum] = "333e4ceca042c146f63eec605573d16ae8b07166cbc44a17bec1ea97c6f1efbf" 8SRC_URI[sha256sum] = "333e4ceca042c146f63eec605573d16ae8b07166cbc44a17bec1ea97c6f1efbf"
10 9
11S = "${WORKDIR}" 10S = "${UNPACKDIR}"
12 11
13do_compile () { 12do_compile () {
14 ${CC} ${CFLAGS} ${LDFLAGS} -Ofast -o whetstone whetstone.c -lm 13 ${CC} ${CFLAGS} ${LDFLAGS} -Ofast -o whetstone whetstone.c -lm