stress-ng: improve makefile use

Set VERBOSE=1 so the compile logs are useful, perform the configure in
do_configure, and set bindir correctly.

(From OE-Core rev: 51fd68954dde1af9cfd5c8b38f5e8f5e852deaaf)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2022-11-07 22:09:10 +00:00
committed by Richard Purdie
parent 246051f11b
commit 36bff1aa4b

View 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
}