]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
stress-ng: improve makefile use
authorRoss Burton <ross.burton@arm.com>
Mon, 7 Nov 2022 22:09:10 +0000 (22:09 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Nov 2022 15:42:46 +0000 (15:42 +0000)
Set VERBOSE=1 so the compile logs are useful, perform the configure in
do_configure, and set bindir correctly.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-extended/stress-ng/stress-ng_0.14.06.bb

index 359560b9e24d4f021d615dc642428aee9c520762..b4068b0598be83af5767c03e519ad18510dd433e 100644 (file)
@@ -18,12 +18,15 @@ RCONFLICTS:${PN} = "stress"
 
 inherit bash-completion
 
-do_compile:prepend() {
+EXTRA_OEMAKE = "VERBOSE=1"
+
+do_configure() {
     mkdir -p configs
     touch configs/HAVE_APPARMOR
+    oe_runmake makeconfig
 }
 
 do_install() {
-    oe_runmake DESTDIR=${D} install
+    oe_runmake DESTDIR=${D} BINDIR=${bindir} install
     ln -s stress-ng ${D}${bindir}/stress
 }