2007-04-20 15:08:02 +00:00
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
|
|
|
2008-01-31 21:02:59 +00:00
|
|
|
# Having anything auto depending on gcc-cross-sdk is a really bad idea...
|
|
|
|
EXCLUDE_FROM_SHLIBS = "1"
|
2007-04-20 15:08:02 +00:00
|
|
|
|
2008-01-31 21:02:59 +00:00
|
|
|
PACKAGES = "${PN} ${PN}-doc"
|
|
|
|
|
|
|
|
FILES_${PN} = "\
|
|
|
|
${bindir}/* \
|
2010-08-03 19:04:33 +00:00
|
|
|
${libexecdir}/gcc/${TARGET_SYS}/${BINV}/* \
|
2008-01-31 21:02:59 +00:00
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
|
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
|
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \
|
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/include \
|
2009-09-01 22:19:58 +00:00
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
|
2008-01-31 21:02:59 +00:00
|
|
|
${includedir}/c++/${BINV} \
|
|
|
|
${prefix}/${TARGET_SYS}/bin/* \
|
|
|
|
${prefix}/${TARGET_SYS}/lib/* \
|
2008-05-19 17:23:04 +00:00
|
|
|
${prefix}/${TARGET_SYS}/usr/include/* \
|
2008-01-31 21:02:59 +00:00
|
|
|
"
|
2008-03-18 10:41:39 +00:00
|
|
|
FILES_${PN}-doc = "\
|
|
|
|
${infodir} \
|
|
|
|
${mandir} \
|
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
|
|
|
|
"
|
|
|
|
|
2007-04-20 15:08:02 +00:00
|
|
|
do_install () {
|
2010-03-29 21:27:13 +00:00
|
|
|
oe_runmake 'DESTDIR=${D}' install-host
|
2007-04-20 15:08:02 +00:00
|
|
|
|
2008-01-31 21:02:59 +00:00
|
|
|
# Cleanup some of the ${libdir}{,exec}/gcc stuff ...
|
|
|
|
rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
|
|
|
|
rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
|
|
|
|
|
|
|
|
# We care about g++ not c++
|
|
|
|
rm -f ${D}${bindir}/*c++
|
|
|
|
|
|
|
|
# We don't care about the gcc-<version> copies
|
|
|
|
rm -f ${D}${bindir}/*gcc-?.?*
|
|
|
|
|
|
|
|
# We use libiberty from binutils
|
|
|
|
rm -f ${D}${prefix}/${TARGET_SYS}/lib/libiberty.a
|
|
|
|
rm -f ${D}${libdir}/libiberty.a
|
|
|
|
|
2010-08-03 19:04:33 +00:00
|
|
|
# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
|
|
|
|
# found.
|
|
|
|
dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
|
|
|
|
install -d $dest
|
|
|
|
for t in ar as ld nm objcopy objdump ranlib strip g77 gcc cpp gfortran; do
|
|
|
|
ln -sf ${bindir}/${TARGET_PREFIX}$t $dest$t
|
2008-01-31 21:02:59 +00:00
|
|
|
done
|
2007-06-18 21:06:43 +00:00
|
|
|
}
|
2007-04-20 15:08:02 +00:00
|
|
|
|