[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH] fortran-helloworld: neaten recipe
From: Ross Burton <ross.burton () intel ! com>
Date: 2019-07-31 11:53:02
Message-ID: 20190731115302.18138-1-ross.burton () intel ! com
[Download RAW message or body]
Use ${FC} instead of constructing the fortran name/arguments explictly, and
clean up installation.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta-selftest/recipes-test/fortran/fortran-helloworld.bb | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
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
+}
--
2.20.1
--
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic