summaryrefslogtreecommitdiffstats
path: root/toolchain-layer/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-04-30 20:51:02 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-05-02 11:43:47 +0200
commita61c18324df231029419ab59196b23a6fb2b4743 (patch)
tree477d49a2e94ab9a1316e4fe435aceef4dc80dd5f /toolchain-layer/recipes-devtools
parent477fc2e392357cd49b6e92629e2369ea287b7e6e (diff)
downloadmeta-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.bb47
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 @@
1require recipes-devtools/gcc/gcc-${PV}.inc 1require recipes-devtools/gcc/gcc-${PV}.inc
2 2
3
4INHIBIT_DEFAULT_DEPS = "1" 3INHIBIT_DEFAULT_DEPS = "1"
4
5DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" 5DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
6 6
7PACKAGES = "\ 7PACKAGES = "\
8 ${PN} \ 8 ${PN} \
9 ${PN}-dev \ 9 ${PN}-dev \
10 ${PN}-dbg \
11 libgcov-dev \
10 " 12 "
11 13
12FILES_${PN} = "${base_libdir}/libgcc*.so.*" 14FILES_${PN} = "${base_libdir}/libgcc*.so.*"
13FILES_${PN}-dev = " \ 15FILES_${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*"
19FILES_libgcov-dev = " \
20 ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a"
18 21
19do_fetch[noexec] = "1" 22FILES_${PN}-dbg += "${base_libdir}/.debug/"
20do_unpack[noexec] = "1"
21do_patch[noexec] = "1"
22do_configure[noexec] = "1"
23do_compile[noexec] = "1"
24 23
25do_install () { 24do_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
34do_compile () {
35 target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##`
36 cd ${B}/${PN}
37 oe_runmake MULTIBUILDTOP=${B}/$target/${PN}/
38}
39
40do_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
60do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package"
61do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package"
62do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
63
41BBCLASSEXTEND = "nativesdk" 64BBCLASSEXTEND = "nativesdk"
42 65
66INSANE_SKIP_libgcc-dev = "staticdev"
67INSANE_SKIP_libgcov-dev = "staticdev"