aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Werner <ken.werner@linaro.org>2012-02-27 18:52:41 +0100
committerKen Werner <ken.werner@linaro.org>2012-03-07 14:23:06 +0100
commitf58483c3d029568e4b256669f1e04b2a076b5a91 (patch)
tree2237c8dc58c74fbc645111c8231bac8fad1118d2
parent0467c7c1cd34ed9d58630f988c281ab819e2401b (diff)
downloadmeta-linaro-f58483c3d029568e4b256669f1e04b2a076b5a91.tar.gz
libgcc recipe for the linaro-4.6 toolchain
Signed-off-by: Ken Werner <ken.werner@linaro.org>
-rw-r--r--recipes-devtools/gcc/libgcc_linaro-4.6.bb53
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-devtools/gcc/libgcc_linaro-4.6.bb b/recipes-devtools/gcc/libgcc_linaro-4.6.bb
new file mode 100644
index 00000000..04e28774
--- /dev/null
+++ b/recipes-devtools/gcc/libgcc_linaro-4.6.bb
@@ -0,0 +1,53 @@
+require gcc-${PV}.inc
+
+INHIBIT_DEFAULT_DEPS = "1"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
+
+PACKAGES = "\
+ ${PN} \
+ ${PN}-dev \
+ ${PN}-dbg \
+ libgcov-dev \
+ "
+
+FILES_${PN} = "${base_libdir}/libgcc*.so.*"
+FILES_${PN}-dev = " \
+ ${base_libdir}/libgcc*.so \
+ ${libdir}/${TARGET_SYS}/${BINV}/crt* \
+ ${libdir}/${TARGET_SYS}/${BINV}/libgcc*"
+FILES_libgcov-dev = " \
+ ${libdir}/${TARGET_SYS}/${BINV}/libgcov.a"
+
+FILES_${PN}-dbg += "${base_libdir}/.debug/"
+
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+
+do_install () {
+ target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-nativesdk##`
+
+ # Install libgcc from our gcc-cross saved data
+ install -d ${D}${base_libdir} ${D}${libdir}
+ cp -fpPR ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$target/* ${D}
+
+ # Move libgcc_s into /lib
+ mkdir -p ${D}${base_libdir}
+ if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then
+ mv ${D}${libdir}/nof/libgcc* ${D}${base_libdir}
+ else
+ mv ${D}${libdir}/libgcc* ${D}${base_libdir} || true
+ fi
+
+ chown -R root:root ${D}
+ chmod +x ${D}${base_libdir}/libgcc_s.so.*
+}
+
+do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_package"
+do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_package"
+do_package_write_rpm[depends] += "virtual/${MLPREFIX}libc:do_package"
+
+BBCLASSEXTEND = "nativesdk"
+
+INSANE_SKIP_libgcc-dev = "staticdev"
+INSANE_SKIP_libgcov-dev = "staticdev"
+