diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/libgcc_4.7.bb')
-rw-r--r-- | meta/recipes-devtools/gcc/libgcc_4.7.bb | 66 |
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 @@ | |||
1 | require gcc-${PV}.inc | ||
2 | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" | ||
5 | |||
6 | PACKAGES = "\ | ||
7 | ${PN} \ | ||
8 | ${PN}-dev \ | ||
9 | ${PN}-dbg \ | ||
10 | libgcov-dev \ | ||
11 | " | ||
12 | |||
13 | FILES_${PN} = "${base_libdir}/libgcc*.so.*" | ||
14 | FILES_${PN}-dev = " \ | ||
15 | ${base_libdir}/libgcc*.so \ | ||
16 | ${libdir}/${TARGET_SYS}/${BINV}/*crt* \ | ||
17 | ${libdir}/${TARGET_SYS}/${BINV}/libgcc*" | ||
18 | FILES_libgcov-dev = " \ | ||
19 | ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a \ | ||
20 | " | ||
21 | FILES_${PN}-dbg += "${base_libdir}/.debug/" | ||
22 | |||
23 | do_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 | |||
33 | do_compile () { | ||
34 | target=`echo ${TARGET_SYS} | sed -e s#-nativesdk##` | ||
35 | cd ${B}/${BPN} | ||
36 | oe_runmake MULTIBUILDTOP=${B}/$target/${BPN}/ | ||
37 | } | ||
38 | |||
39 | do_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 | |||
59 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
60 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
61 | do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package" | ||
62 | |||
63 | BBCLASSEXTEND = "nativesdk" | ||
64 | |||
65 | INSANE_SKIP_libgcc-dev = "staticdev" | ||
66 | INSANE_SKIP_libgcov-dev = "staticdev" | ||