From: Ross Burton Date: Mon, 15 May 2023 13:29:51 +0000 (+0100) Subject: gnutls: clean up ptest compilation X-Git-Tag: uninative-3.10~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f4b10a3361e273d22bc880b4127eb53291be47d;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git gnutls: clean up ptest compilation 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 Signed-off-by: Alexandre Belloni --- diff --git a/meta/recipes-support/gnutls/gnutls_3.8.0.bb b/meta/recipes-support/gnutls/gnutls_3.8.0.bb index 0758eb15a93..eef004efa5b 100644 --- a/meta/recipes-support/gnutls/gnutls_3.8.0.bb +++ b/meta/recipes-support/gnutls/gnutls_3.8.0.bb @@ -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"