summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/stress-ng
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/stress-ng')
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch41
-rw-r--r--meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb (renamed from meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb)11
2 files changed, 50 insertions, 2 deletions
diff --git a/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch
new file mode 100644
index 0000000000..498a024830
--- /dev/null
+++ b/meta/recipes-extended/stress-ng/stress-ng/0001-Makefile-quote-CC.patch
@@ -0,0 +1,41 @@
1From f6162ced588c17c1141a8f6154475a299a2ebc0d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Tue, 26 Apr 2022 22:35:35 +0200
4Subject: [PATCH] Makefile: quote CC
5
6It can contain command line options, and therefore spaces, and so
7needs to be quoted.
8
9Upstream-Status: Submitted [https://github.com/ColinIanKing/stress-ng/pull/188]
10Signed-off-by: Alexander Kanavin <alex@linutronix.de>
11---
12 Makefile | 2 +-
13 Makefile.config | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/Makefile b/Makefile
17index 501093f5..8a454edd 100644
18--- a/Makefile
19+++ b/Makefile
20@@ -432,7 +432,7 @@ stress-ng: $(OBJS)
21 $(V)sync
22
23 config.h:
24- $(MAKE) CC=$(CC) STATIC=$(STATIC) -f Makefile.config
25+ $(MAKE) CC="$(CC)" STATIC=$(STATIC) -f Makefile.config
26
27 .PHONY:
28 makeconfig: config.h
29diff --git a/Makefile.config b/Makefile.config
30index b76d0903..f03f7a85 100644
31--- a/Makefile.config
32+++ b/Makefile.config
33@@ -69,7 +69,7 @@ else
34 endif
35
36
37-MAKE_OPTS=CC=$(CC) -f Makefile.config --no-print-directory
38+MAKE_OPTS=CC="$(CC)" -f Makefile.config --no-print-directory
39
40 comma = ,
41
diff --git a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb b/meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb
index fe177a4de0..ada35dbc4c 100644
--- a/meta/recipes-extended/stress-ng/stress-ng_0.13.12.bb
+++ b/meta/recipes-extended/stress-ng/stress-ng_0.14.00.bb
@@ -5,8 +5,10 @@ HOMEPAGE = "https://github.com/ColinIanKing/stress-ng#readme"
5LICENSE = "GPL-2.0-only" 5LICENSE = "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 \
9SRCREV = "f59bcb2fe1e25042e77d5e4942f72bfa026fa305" 9 file://0001-Makefile-quote-CC.patch \
10 "
11SRCREV = "ec7f6c4731a54f0e515bef7f7e84ef9e9b8125a2"
10S = "${WORKDIR}/git" 12S = "${WORKDIR}/git"
11 13
12DEPENDS = "coreutils-native" 14DEPENDS = "coreutils-native"
@@ -18,6 +20,11 @@ RCONFLICTS:${PN} = "stress"
18 20
19inherit bash-completion 21inherit bash-completion
20 22
23do_configure:prepend() {
24 mkdir -p configs
25 touch configs/HAVE_APPARMOR
26}
27
21do_install() { 28do_install() {
22 oe_runmake DESTDIR=${D} install 29 oe_runmake DESTDIR=${D} install
23 ln -s stress-ng ${D}${bindir}/stress 30 ln -s stress-ng ${D}${bindir}/stress