summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/libgcc-common.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/libgcc-common.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/libgcc-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/libgcc-common.inc9
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc
index c0efc29437..848a476207 100644
--- a/meta/recipes-devtools/gcc/libgcc-common.inc
+++ b/meta/recipes-devtools/gcc/libgcc-common.inc
@@ -5,10 +5,9 @@ require gcc-configure-common.inc
5INHIBIT_DEFAULT_DEPS = "1" 5INHIBIT_DEFAULT_DEPS = "1"
6 6
7do_configure () { 7do_configure () {
8 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
9 install -d ${D}${base_libdir} ${D}${libdir} 8 install -d ${D}${base_libdir} ${D}${libdir}
10 mkdir -p ${B}/${BPN} 9 mkdir -p ${B}/${BPN}
11 mkdir -p ${B}/$target/${BPN}/ 10 mkdir -p ${B}/${TARGET_SYS}/${BPN}/
12 cd ${B}/${BPN} 11 cd ${B}/${BPN}
13 chmod a+x ${S}/${BPN}/configure 12 chmod a+x ${S}/${BPN}/configure
14 relpath=${@os.path.relpath("${S}/${BPN}", "${B}/${BPN}")} 13 relpath=${@os.path.relpath("${S}/${BPN}", "${B}/${BPN}")}
@@ -18,15 +17,13 @@ EXTRACONFFUNCS += "extract_stashed_builddir"
18do_configure[depends] += "${COMPILERDEP}" 17do_configure[depends] += "${COMPILERDEP}"
19 18
20do_compile () { 19do_compile () {
21 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
22 cd ${B}/${BPN} 20 cd ${B}/${BPN}
23 oe_runmake MULTIBUILDTOP=${B}/$target/${BPN}/ 21 oe_runmake MULTIBUILDTOP=${B}/${TARGET_SYS}/${BPN}/
24} 22}
25 23
26do_install () { 24do_install () {
27 target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##`
28 cd ${B}/${BPN} 25 cd ${B}/${BPN}
29 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/${BPN}/ install 26 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/${TARGET_SYS}/${BPN}/ install
30 27
31 # Move libgcc_s into /lib 28 # Move libgcc_s into /lib
32 mkdir -p ${D}${base_libdir} 29 mkdir -p ${D}${base_libdir}