]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
gnutls: clean up ptest compilation
authorRoss Burton <ross.burton@arm.com>
Mon, 15 May 2023 13:29:51 +0000 (14:29 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 May 2023 09:53:44 +0000 (10:53 +0100)
Don't always build the tests in do_compile, use do_compile_ptest so they
are only built when needed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
meta/recipes-support/gnutls/gnutls_3.8.0.bb

index 0758eb15a93bab8a3ccc5c79099b50d299ec8fad..eef004efa5b5bd7060b7bcdcb4361f6adfbed089 100644 (file)
@@ -66,6 +66,10 @@ do_configure:prepend() {
        done
 }
 
+do_compile_ptest() {
+    oe_runmake -C tests buildtest-TESTS
+}
+
 do_install:append:class-target() {
         if ${@bb.utils.contains('PACKAGECONFIG', 'fips', 'true', 'false', d)}; then
           install -d ${D}${bindir}/bin
@@ -73,10 +77,6 @@ do_install:append:class-target() {
         fi
 }
 
-do_compile:append() {
-        oe_runmake ${PARALLEL_MAKE} -C tests buildtest-TESTS
-}
-
 PACKAGES =+ "${PN}-dane ${PN}-openssl ${PN}-xx ${PN}-fips"
 
 FILES:${PN}-dev += "${bindir}/gnutls-cli-debug"