From: Ross Burton Date: Wed, 31 Jul 2019 11:53:02 +0000 (+0100) Subject: fortran-helloworld: neaten recipe X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~13728 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0d85e117fb636ffa12253b19f0ab2b5055e6380;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fortran-helloworld: neaten recipe Use ${FC} instead of constructing the fortran name/arguments explictly, and clean up installation. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index 97313d7e249..3a464044775 100644 --- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb +++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb @@ -11,15 +11,14 @@ SECURITY_CFLAGS = "" SECURITY_LDFLAGS = "" do_compile() { - ${HOST_PREFIX}gfortran ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello + ${FC} ${LDFLAGS} ${WORKDIR}/hello.f95 -o ${B}/fortran-hello } do_install() { - install -d ${D}${bindir} - install ${B}/fortran-hello ${D}${bindir} + install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello } python () { if not d.getVar("FORTRAN"): raise bb.parse.SkipRecipe("Fortran isn't enabled") -} \ No newline at end of file +}