mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

Since we want to be able to stop unpacking to WORKDIR, correct the WORKDIR references in recipe do_compile/do_install tasks to use UNPACKDIR in the appropraite places instead. (From OE-Core rev: d73595df69667fe9d12ecd407b77a0b8dae2109c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
552 B
BlitzBasic
25 lines
552 B
BlitzBasic
SUMMARY = "Fortran Hello World"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
DEPENDS = "libgfortran"
|
|
|
|
SRC_URI = "file://hello.f95"
|
|
|
|
# These set flags that Fortran doesn't support
|
|
SECURITY_CFLAGS = ""
|
|
SECURITY_LDFLAGS = ""
|
|
|
|
do_compile() {
|
|
${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello
|
|
}
|
|
|
|
do_install() {
|
|
install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
|
|
}
|
|
|
|
python () {
|
|
if not d.getVar("FORTRAN"):
|
|
raise bb.parse.SkipRecipe("Fortran isn't enabled")
|
|
}
|