summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2024-03-17 13:01:38 +0100
committerSteve Sakoman <steve@sakoman.com>2024-03-25 04:11:26 -1000
commit1ca3aed8af148b8cce57d4939ba0fccfe1266d01 (patch)
tree6f791ec39cdca4d38e5771e530f0f8ae1267a24c /meta
parent529c7c30e6a1b7e1e8a5ba5ba70b8f2f2af770ec (diff)
downloadpoky-1ca3aed8af148b8cce57d4939ba0fccfe1266d01.tar.gz
stress-ng: avoid calling sync during do_compile
calling 'sync' from do_compile in the middle of big OE world build harms the build time. (From OE-Core rev: b2de7d75692fd4c9e0a6f46a099b89089edb10d4) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-Makefile-avoid-calling-sync.patch35
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb1
2 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-Makefile-avoid-calling-sync.patch b/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-Makefile-avoid-calling-sync.patch
new file mode 100644
index 0000000000..fec8c524eb
--- /dev/null
+++ b/meta/recipes-extended/stress-ng/stress-ng-0.13.12/0001-Makefile-avoid-calling-sync.patch
@@ -0,0 +1,35 @@
1From 1d1801902a4944c6f5fa521c19b32fbac7342a0c Mon Sep 17 00:00:00 2001
2From: Colin Ian King <colin.i.king@gmail.com>
3Date: Sat, 6 Aug 2022 13:05:59 +0000
4Subject: [PATCH] Makefile: avoid calling sync
5
6Original commit message:
7Makefile: use ld-gold if it is available
8
9Speed up linking by using ld-gold if is available. Add build
10time detection to see if compiler allows it
11
12MJ: backported only the "sync" removal from Makefile as calling
13 it from do_compile in the middle of big OE world build harms
14 the build time.
15
16Upstream-Status: Backport [V0.14.04 c10e5c3f9f5560a085279f4c4b399c2f34cb897d]
17
18Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
19Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
20---
21 Makefile | 1 -
22 1 file changed, 1 deletion(-)
23
24diff --git a/Makefile b/Makefile
25index f8f71c54b..23db4c612 100644
26--- a/Makefile
27+++ b/Makefile
28@@ -425,7 +425,6 @@ OBJS += $(CONFIG_OBJS)
29 stress-ng: $(OBJS)
30 $(Q)echo "LD $@"
31 $(V)$(CC) $(CPPFLAGS) $(CFLAGS) $(OBJS) -lm $(LDFLAGS) -o $@
32- $(V)sync
33
34 config.h:
35 +$(MAKE) -f Makefile.config STATIC=$(STATIC) -j
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
index 807ecd3466..72dafddaf8 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
@@ -7,6 +7,7 @@ LIC_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-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch \ 9 file://0001-stress-cpu-disable-float128-math-on-powerpc64-to-avo.patch \
10 file://0001-Makefile-avoid-calling-sync.patch \
10 " 11 "
11SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305" 12SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305"
12S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"