summaryrefslogtreecommitdiffstats
path: root/meta-selftest
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-15 13:10:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-15 13:12:51 +0100
commit480dc1c0dfeb053b880ea733e72b4c639e9a9d8a (patch)
tree74158ad02a5685ac740b56d9d0cb187262669e0a /meta-selftest
parente665be2ad94b736d5a07395303fd71937c021ee8 (diff)
downloadpoky-480dc1c0dfeb053b880ea733e72b4c639e9a9d8a.tar.gz
selftest/fortran-helloworld: Fix buildpaths error
There is a buildpaths QA error in the test recipe that somehow didn't show up in earlier testing. Use a source directory and tweak the build command to avoid embedding build paths in the generated binary. (From OE-Core rev: 8f1cfaf2be834217cd1cf5be98f44270c36cc31a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
-rw-r--r--meta-selftest/recipes-test/fortran/fortran-helloworld.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb
index a897966608..11928dc95a 100644
--- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb
+++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb
@@ -6,12 +6,15 @@ DEPENDS = "libgfortran"
6 6
7SRC_URI = "file://hello.f95" 7SRC_URI = "file://hello.f95"
8 8
9S = "${WORKDIR}/sources"
10UNPACKDIR = "${S}"
11
9# These set flags that Fortran doesn't support 12# These set flags that Fortran doesn't support
10SECURITY_CFLAGS = "" 13SECURITY_CFLAGS = ""
11SECURITY_LDFLAGS = "" 14SECURITY_LDFLAGS = ""
12 15
13do_compile() { 16do_compile() {
14 ${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello 17 ${FC} ${LDFLAGS} hello.f95 -o ${B}/fortran-hello
15} 18}
16 19
17do_install() { 20do_install() {