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 \
|
2011-09-21 18:40:02 +00:00
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
|
2012-04-13 04:35:48 +00:00
|
|
|
${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.* \
|
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
|
|
|
"
|
2011-09-26 20:13:21 +00:00
|
|
|
INSANE_SKIP_${PN} += "dev-so"
|
|
|
|
|
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
|
2011-09-26 20:13:21 +00:00
|
|
|
# Not sure where the strange paths come from
|
|
|
|
rm -f ${D}${libdir}/../lib/libiberty.a
|
2008-01-31 21:02:59 +00:00
|
|
|
rm -f ${D}${libdir}/libiberty.a
|
|
|
|
|
2012-03-26 07:10:03 +00:00
|
|
|
# Cleanup empty directories which are not shipped
|
2012-03-27 04:38:29 +00:00
|
|
|
# we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
|
|
|
|
# ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686
|
|
|
|
local empty_dirs="${D}${libdir}/../lib ${D}${prefix}/${TARGET_SYS}/lib ${D}${prefix}/${TARGET_SYS} ${D}${includedir}"
|
|
|
|
for i in $empty_dirs; do
|
|
|
|
[ -d $i ] && rmdir --ignore-fail-on-non-empty $i
|
|
|
|
done
|
2012-03-26 07:10:03 +00:00
|
|
|
|
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
|
2011-06-24 18:26:11 +00:00
|
|
|
|
|
|
|
chown -R root:root ${D}
|
2007-06-18 21:06:43 +00:00
|
|
|
}
|
2007-04-20 15:08:02 +00:00
|
|
|
|