summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/libgcc_4.7.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/libgcc_4.7.bb')
-rw-r--r--meta/recipes-devtools/gcc/libgcc_4.7.bb66
1 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/libgcc_4.7.bb b/meta/recipes-devtools/gcc/libgcc_4.7.bb
new file mode 100644
index 0000000000..0370a5a56f
--- /dev/null
+++ b/meta/recipes-devtools/gcc/libgcc_4.7.bb
@@ -0,0 +1,66 @@
1require gcc-${PV}.inc
2
3INHIBIT_DEFAULT_DEPS = "1"
4DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
5
6PACKAGES = "\
7 ${PN} \
8 ${PN}-dev \
9 ${PN}-dbg \
10 libgcov-dev \
11 "
12
13FILES_${PN} = "${base_libdir}/libgcc*.so.*"
14FILES_${PN}-dev = " \
15 ${base_libdir}/libgcc*.so \
16 ${libdir}/${TARGET_SYS}/${BINV}/*crt* \
17 ${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
18FILES_libgcov-dev = " \
19 ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \
20 "
21FILES_${PN}-dbg += "${base_libdir}/.debug/"
22
23do_configure () {
24 target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##`
25 install -d ${D}${base_libdir} ${D}${libdir}
26 cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${B}
27 mkdir -p ${B}/${BPN}
28 cd ${B}/${BPN}
29 chmod a+x ${S}/${BPN}/configure
30 ${S}/${BPN}/configure ${CONFIGUREOPTS} ${EXTRA_OECONF}
31}
32
33do_compile () {
34 target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##`
35 cd ${B}/${BPN}
36 oe_runmake MULTIBUILDTOP=${B}/$target/${BPN}/
37}
38
39do_install () {
40 target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##`
41 cd ${B}/${BPN}
42 oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/${BPN}/ install
43
44 # Move libgcc_s into /lib
45 mkdir -p ${D}${base_libdir}
46 if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then
47 mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir}
48 else
49 mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true
50 fi
51
52 # install the runtime in /usr/lib/ not in /usr/lib/gcc on target
53 # so that cross-gcc can find it in the sysroot
54
55 mv ${D}${libdir}/gcc/* ${D}${libdir}
56 rm -rf ${D}${libdir}/gcc/
57}
58
59do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package"
60do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package"
61do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
62
63BBCLASSEXTEND = "nativesdk"
64
65INSANE_SKIP_libgcc-dev = "staticdev"
66INSANE_SKIP_libgcov-dev = "staticdev"