diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-02-23 19:14:58 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-30 11:37:24 +0100 |
commit | aafa59064b9409e3ce06bf334ca250fc2c483acb (patch) | |
tree | 1bd0f82a6812d154785f849c511771852ab1bf3a /meta/recipes-devtools/gcc/libgcc_4.7.bb | |
parent | 173f424808b935f5db99905bf5af307990d87107 (diff) | |
download | poky-aafa59064b9409e3ce06bf334ca250fc2c483acb.tar.gz |
gcc-4.7: Add recipes
Add new recipes for gcc-4_7-branch right now gcc 4.7.0
is latest release from this branch
(From OE-Core rev: 3f8fee75e598ad0994acc5da0a612e6eca4f35f6)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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" | ||