summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/libgfortran.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-25 00:04:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-26 10:44:27 +0000
commit7c55daec93754349b0c4bac1f788db80a88804f8 (patch)
tree22c59d16c16f0519cef70301aeab325d4cb85299 /meta/recipes-devtools/gcc/libgfortran.inc
parent1d75635ac53589beccdcb72138bfcd28d82d8d14 (diff)
downloadpoky-7c55daec93754349b0c4bac1f788db80a88804f8.tar.gz
gcc: Clean up unnecessary variable confusion
SDKPKGSUFFIX could only really be "nativesdk" and TARGET_SYS never contains that so the code manipulating TARGET_SYS is pointless. I suspect this once worked against MULTIMACH_TARGET_SYS which would be a different question but it no longer does. Its been cut and pasted everywhere. This patch cleans up the variable references to make things a little more readable. (From OE-Core rev: 5599cb72d17bce2ba6e2be16ef64d9a388bcfb25) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/libgfortran.inc')
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc23
1 files changed, 9 insertions, 14 deletions
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index d3e2b411c8..4846decbb8 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -6,32 +6,27 @@ EXTRA_OECONF_PATHS = "\
6" 6"
7 7
8do_configure () { 8do_configure () {
9 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 9 rm -rf ${B}/${TARGET_SYS}/libgfortran/
10 10 mkdir -p ${B}/${TARGET_SYS}/libgfortran/
11 echo "Configuring libgfortran" 11 cd ${B}/${TARGET_SYS}/libgfortran/
12 rm -rf ${B}/$target/libgfortran/
13 mkdir -p ${B}/$target/libgfortran/
14 cd ${B}/$target/libgfortran/
15 chmod a+x ${S}/libgfortran/configure 12 chmod a+x ${S}/libgfortran/configure
16 relpath=${@os.path.relpath("${S}/libgfortran", "${B}/$target/libgfortran")} 13 relpath=${@os.path.relpath("${S}/libgfortran", "${B}/${TARGET_SYS}/libgfortran")}
17 $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} 14 $relpath/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
18 # Easiest way to stop bad RPATHs getting into the library since we have a 15 # Easiest way to stop bad RPATHs getting into the library since we have a
19 # broken libtool here 16 # broken libtool here
20 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/$target/libgfortran/libtool 17 sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${B}/${TARGET_SYS}/libgfortran/libtool
21} 18}
22EXTRACONFFUNCS += "extract_stashed_builddir" 19EXTRACONFFUNCS += "extract_stashed_builddir"
23do_configure[depends] += "${COMPILERDEP}" 20do_configure[depends] += "${COMPILERDEP}"
24 21
25do_compile () { 22do_compile () {
26 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 23 cd ${B}/${TARGET_SYS}/libgfortran/
27 cd ${B}/$target/libgfortran/ 24 oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/
28 oe_runmake MULTIBUILDTOP=${B}/$target/libgfortran/
29} 25}
30 26
31do_install () { 27do_install () {
32 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` 28 cd ${B}/${TARGET_SYS}/libgfortran/
33 cd ${B}/$target/libgfortran/ 29 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/libgfortran/ install
34 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/libgfortran/ install
35 if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then 30 if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then
36 rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude 31 rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude
37 fi 32 fi