diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 20:05:37 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-23 04:26:31 +0300 |
commit | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch) | |
tree | de291a73dc37168da6370e2cf16c347d1eba9df8 /import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc | |
parent | 9c3cf826d853102535ead04cebc2d6023eff3032 (diff) | |
download | openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.xz |
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers
content to the top level.
Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc b/import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc deleted file mode 100644 index 05237647d..000000000 --- a/import-layers/yocto-poky/meta/recipes-devtools/gcc/libgfortran.inc +++ /dev/null @@ -1,77 +0,0 @@ -require gcc-configure-common.inc - -EXTRA_OECONF_PATHS = "\ - --with-sysroot=/not/exist \ - --with-build-sysroot=${STAGING_DIR_TARGET} \ -" - -do_configure () { - for target in libbacktrace libgfortran - do - rm -rf ${B}/${TARGET_SYS}/$target/ - mkdir -p ${B}/${TARGET_SYS}/$target/ - cd ${B}/${TARGET_SYS}/$target/ - chmod a+x ${S}/$target/configure - relpath=${@os.path.relpath("${S}", "${B}/${TARGET_SYS}")} - ../$relpath/$target/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} - # Easiest way to stop bad RPATHs getting into the library since we have a - # broken libtool here - sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/${TARGET_SYS}/$target/libtool - done -} -EXTRACONFFUNCS += "extract_stashed_builddir" -do_configure[depends] += "${COMPILERDEP}" - -do_compile () { - for target in libbacktrace libgfortran - do - cd ${B}/${TARGET_SYS}/$target/ - oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/$target/ - done -} - -do_install () { - cd ${B}/${TARGET_SYS}/libgfortran/ - oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/ install - if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then - rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude - fi - if [ -d ${D}${infodir} ]; then - rmdir --ignore-fail-on-non-empty -p ${D}${infodir} - fi - chown -R root:root ${D} -} - -INHIBIT_DEFAULT_DEPS = "1" -DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}" - -BBCLASSEXTEND = "nativesdk" - -PACKAGES = "\ - ${PN}-dbg \ - libgfortran \ - libgfortran-dev \ - libgfortran-staticdev \ -" -FILES_${PN} = "${libdir}/libgfortran.so.*" -FILES_${PN}-dev = "\ - ${libdir}/libgfortran*.so \ - ${libdir}/libgfortran.spec \ - ${libdir}/libgfortran.la \ - ${libdir}/gcc/${TARGET_SYS}/${BINV}/libgfortranbegin.* \ - ${libdir}/gcc/${TARGET_SYS}/${BINV}/libcaf_single* \ - ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ -" -FILES_${PN}-staticdev = "${libdir}/libgfortran.a" - -INSANE_SKIP_${MLPREFIX}libgfortran-dev = "staticdev" - -do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" -do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" -do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_packagedata" - -python __anonymous () { - f = d.getVar("FORTRAN") - if "fortran" not in f: - raise bb.parse.SkipRecipe("libgfortran needs fortran support to be enabled in the compiler") -} |