diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-04-30 20:51:02 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-05-02 11:43:47 +0200 |
commit | a61c18324df231029419ab59196b23a6fb2b4743 (patch) | |
tree | 477d49a2e94ab9a1316e4fe435aceef4dc80dd5f /toolchain-layer/recipes-devtools | |
parent | 477fc2e392357cd49b6e92629e2369ea287b7e6e (diff) | |
download | meta-openembedded-a61c18324df231029419ab59196b23a6fb2b4743.tar.gz |
gcc-4.5: Match with OE-Core on building procedure for libgcc and gcc-runtime
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Tested-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'toolchain-layer/recipes-devtools')
-rw-r--r-- | toolchain-layer/recipes-devtools/gcc/libgcc_4.5.bb | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/toolchain-layer/recipes-devtools/gcc/libgcc_4.5.bb b/toolchain-layer/recipes-devtools/gcc/libgcc_4.5.bb index 1579c8b96..ecef5e704 100644 --- a/toolchain-layer/recipes-devtools/gcc/libgcc_4.5.bb +++ b/toolchain-layer/recipes-devtools/gcc/libgcc_4.5.bb | |||
@@ -1,33 +1,46 @@ | |||
1 | require recipes-devtools/gcc/gcc-${PV}.inc | 1 | require recipes-devtools/gcc/gcc-${PV}.inc |
2 | 2 | ||
3 | |||
4 | INHIBIT_DEFAULT_DEPS = "1" | 3 | INHIBIT_DEFAULT_DEPS = "1" |
4 | |||
5 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" | 5 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" |
6 | 6 | ||
7 | PACKAGES = "\ | 7 | PACKAGES = "\ |
8 | ${PN} \ | 8 | ${PN} \ |
9 | ${PN}-dev \ | 9 | ${PN}-dev \ |
10 | ${PN}-dbg \ | ||
11 | libgcov-dev \ | ||
10 | " | 12 | " |
11 | 13 | ||
12 | FILES_${PN} = "${base_libdir}/libgcc*.so.*" | 14 | FILES_${PN} = "${base_libdir}/libgcc*.so.*" |
13 | FILES_${PN}-dev = " \ | 15 | FILES_${PN}-dev = " \ |
14 | ${base_libdir}/libgcc*.so \ | 16 | ${base_libdir}/libgcc*.so \ |
15 | ${libdir}/${TARGET_SYS}/${BINV}/crt* \ | 17 | ${libdir}/${TARGET_SYS}/${BINV}/crt* \ |
16 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ | ||
17 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" | 18 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" |
19 | FILES_libgcov-dev = " \ | ||
20 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a" | ||
18 | 21 | ||
19 | do_fetch[noexec] = "1" | 22 | FILES_${PN}-dbg += "${base_libdir}/.debug/" |
20 | do_unpack[noexec] = "1" | ||
21 | do_patch[noexec] = "1" | ||
22 | do_configure[noexec] = "1" | ||
23 | do_compile[noexec] = "1" | ||
24 | 23 | ||
25 | do_install () { | 24 | do_configure () { |
26 | target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` | 25 | target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##` |
27 | |||
28 | # Install libgcc from our gcc-cross saved data | ||
29 | install -d ${D}${base_libdir} ${D}${libdir} | 26 | install -d ${D}${base_libdir} ${D}${libdir} |
30 | cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D} | 27 | cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${B} |
28 | mkdir -p ${B}/${PN} | ||
29 | cd ${B}/${PN} | ||
30 | chmod a+x ${S}/${PN}/configure | ||
31 | ${S}/${PN}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF} | ||
32 | } | ||
33 | |||
34 | do_compile () { | ||
35 | target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##` | ||
36 | cd ${B}/${PN} | ||
37 | oe_runmake MULTIBUILDTOP=${B}/$target/${PN}/ | ||
38 | } | ||
39 | |||
40 | do_install () { | ||
41 | target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##` | ||
42 | cd ${B}/${PN} | ||
43 | oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/${PN}/ install | ||
31 | 44 | ||
32 | # Move libgcc_s into /lib | 45 | # Move libgcc_s into /lib |
33 | mkdir -p ${D}${base_libdir} | 46 | mkdir -p ${D}${base_libdir} |
@@ -36,7 +49,19 @@ do_install () { | |||
36 | else | 49 | else |
37 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true | 50 | mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true |
38 | fi | 51 | fi |
52 | |||
53 | # install the runtime in /usr/lib/ not in /usr/lib/gcc on target | ||
54 | # so that cross-gcc can find it in the sysroot | ||
55 | |||
56 | mv ${D}${libdir}/gcc/* ${D}${libdir} | ||
57 | rm -rf ${D}${libdir}/gcc/ | ||
39 | } | 58 | } |
40 | 59 | ||
60 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
61 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
62 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
63 | |||
41 | BBCLASSEXTEND = "nativesdk" | 64 | BBCLASSEXTEND = "nativesdk" |
42 | 65 | ||
66 | INSANE_SKIP_libgcc-dev = "staticdev" | ||
67 | INSANE_SKIP_libgcov-dev = "staticdev" | ||