summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-03-05 16:07:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-06 09:52:16 +0000
commit9def0bd407adea0a547fa87128cc97b7dc0883a6 (patch)
tree459974201bcc934e0995a39591ca1ebc0b87c0cf
parent47040ed6d1e56964c44fdc47679ce86325fd903d (diff)
downloadpoky-9def0bd407adea0a547fa87128cc97b7dc0883a6.tar.gz
stress-ng: upgrade 0.15.03 -> 0.15.04
0001-test-float-Make-variables-global.patch 0001-Include-sys-futex.h-for-clock_adjtime.patch removed since they're included in 0.15.04. 0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch refreshed for 0.15.04. (From OE-Core rev: 7c6192ef37907341679a06ce9f5e519902036649) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch32
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch42
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-test-float-Make-variables-global.patch34
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.15.04.bb (renamed from meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb)7
4 files changed, 9 insertions, 106 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch
deleted file mode 100644
index 87d2ead46a..0000000000
--- a/meta/recipes-extended/stress-ng/stress-ng/0001-Include-sys-futex.h-for-clock_adjtime.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From 57f207ec7fb39c8b502f40dbdabd568f6b866a82 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 13 Feb 2023 12:18:08 -0800
4Subject: [PATCH] Include sys/futex.h for clock_adjtime
5
6Fixes
7core-shim.c:1942:9: error: call to undeclared function 'clock_adjtime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
8
9Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/261]
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 core-shim.c | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/core-shim.c b/core-shim.c
16index dc539c64..de38e908 100644
17--- a/core-shim.c
18+++ b/core-shim.c
19@@ -66,6 +66,10 @@ UNEXPECTED
20 #include <sys/prctl.h>
21 #endif
22
23+#if defined(HAVE_SYS_TIMEX_H)
24+#include <sys/timex.h>
25+#endif
26+
27 #if defined(HAVE_SYS_RANDOM_H)
28 #include <sys/random.h>
29 #endif
30--
312.39.1
32
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch
index 821e4d910f..6742e0d256 100644
--- a/meta/recipes-extended/stress-ng/stress-ng/0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch
+++ b/meta/recipes-extended/stress-ng/stress-ng/0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch
@@ -1,4 +1,4 @@
1From 32386c13420f676bd938a8b1ceaeab8a5da46d17 Mon Sep 17 00:00:00 2001 1From 5d6fa06b3104637289178a471dd28d7bf3e14e76 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 3 Jan 2023 11:00:09 -0800 3Date: Tue, 3 Jan 2023 11:00:09 -0800
4Subject: [PATCH] Pass LD_GOLD=1 via makefile to enable gold linker 4Subject: [PATCH] Pass LD_GOLD=1 via makefile to enable gold linker
@@ -10,16 +10,16 @@ detecting and deciding.
10 10
11Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/251] 11Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/251]
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13
13--- 14---
14 Makefile | 7 +++++++ 15 Makefile | 7 +++++++
15 Makefile.config | 9 +-------- 16 1 file changed, 7 insertions(+)
16 2 files changed, 8 insertions(+), 8 deletions(-)
17 17
18diff --git a/Makefile b/Makefile 18diff --git a/Makefile b/Makefile
19index f2fd4b6c..bff6b8ac 100644 19index 7a969aba..583ae04f 100644
20--- a/Makefile 20--- a/Makefile
21+++ b/Makefile 21+++ b/Makefile
22@@ -69,6 +69,13 @@ endif 22@@ -93,6 +93,13 @@ endif
23 #CFLAGS += -Weverything 23 #CFLAGS += -Weverything
24 #endif 24 #endif
25 25
@@ -33,33 +33,3 @@ index f2fd4b6c..bff6b8ac 100644
33 GREP = grep 33 GREP = grep
34 # 34 #
35 # SunOS requires special grep for -e support 35 # SunOS requires special grep for -e support
36diff --git a/Makefile.config b/Makefile.config
37index 394ed20d..48c94fa1 100644
38--- a/Makefile.config
39+++ b/Makefile.config
40@@ -241,7 +241,7 @@ define check_ld
41 $(call check_ld_tmp,$1,$2,$3)
42 endef
43
44-all: linkers libraries headers cpufeatures types functions
45+all: libraries headers cpufeatures types functions
46 @for I in $$(ls $(CONFIGS)); do \
47 if [ -s $(CONFIGS)/$$I ]; then \
48 echo "#define $$I"; \
49@@ -262,13 +262,6 @@ configdir:
50 clean:
51 @rm -rf $(CONFIGS) config config.h
52
53-linkers: \
54- configdir \
55- LD_GOLD
56-
57-LD_GOLD:
58- $(call check_ld,test-ld,HAVE_LD_GOLD,gold)
59-
60 libraries: \
61 configdir \
62 LIB_AIO LIB_APPARMOR LIB_BSD LIB_CRYPT LIB_DL \
63--
642.39.0
65
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-test-float-Make-variables-global.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-test-float-Make-variables-global.patch
deleted file mode 100644
index 2e598ca4f4..0000000000
--- a/meta/recipes-extended/stress-ng/stress-ng/0001-test-float-Make-variables-global.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From 958a86069c8d0149969b5c32212a28009c4a9ded Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 21 Jan 2023 23:18:18 -0800
4Subject: [PATCH] test-float: Make variables global
5
6Latest clang ( clang 16+ ) is able to optimize everything out when -O2 is used and as
7a result build succeeds and test output comes out to be wrong. Therefore
8make the variables global, so clang does not optimize away the functions
9
10Upstream-Status: Backport [https://github.com/ColinIanKing/stress-ng/commit/e299eb60a3a029e975304cc43045aea6ab1fad70]
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 test/test-float.c | 3 +--
14 1 file changed, 1 insertion(+), 2 deletions(-)
15
16diff --git a/test/test-float.c b/test/test-float.c
17index d2800cd3..ad5503c3 100644
18--- a/test/test-float.c
19+++ b/test/test-float.c
20@@ -61,10 +61,9 @@
21 /* Avoid implicit int in the definition of test even if FLOAT is not known. */
22 typedef FLOAT float_type;
23
24+FLOAT a = 0.0, b = 0.0, c = 0.0, d = 0.0;
25 static float_type HOT OPTIMIZE3 test(void)
26 {
27- FLOAT a = 0.0, b = 0.0, c = 0.0, d = 0.0;
28-
29 float_ops(FLOAT, a, b, c, d, sin, cos);
30 float_ops(FLOAT, a, b, c, d, sinl, cosl);
31
32--
332.39.1
34
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb b/meta/recipes-extended/stress-ng/stress-ng_0.15.04.bb
index cd7f41a016..e891bb738b 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.15.03.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.15.04.bb
@@ -6,10 +6,9 @@ LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \ 8SRC_URI = "git://github.com/ColinIanKing/stress-ng.git;protocol=https;branch=master \
9 file://0001-test-float-Make-variables-global.patch \ 9 file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch \
10 file://0001-Include-sys-futex.h-for-clock_adjtime.patch \ 10 "
11 file://0001-Pass-LD_GOLD-1-via-makefile-to-enable-gold-linker.patch" 11SRCREV = "b9a437ec790ad4bcc71d31b2df39d4a601c55fa8"
12SRCREV = "f3be0447c10fd5652b4c3753d56bcaac13fd8917"
13S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
14 13
15DEPENDS = "coreutils-native libbsd" 14DEPENDS = "coreutils-native libbsd"