diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/libgcc-common.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc-common.inc | 9 |
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 | |||
5 | INHIBIT_DEFAULT_DEPS = "1" | 5 | INHIBIT_DEFAULT_DEPS = "1" |
6 | 6 | ||
7 | do_configure () { | 7 | do_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" | |||
18 | do_configure[depends] += "${COMPILERDEP}" | 17 | do_configure[depends] += "${COMPILERDEP}" |
19 | 18 | ||
20 | do_compile () { | 19 | do_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 | ||
26 | do_install () { | 24 | do_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} |