2012-08-08 14:57:09 +00:00
|
|
|
require binutils.inc
|
|
|
|
require binutils-${PV}.inc
|
|
|
|
|
|
|
|
DEPENDS += "flex bison zlib"
|
|
|
|
|
|
|
|
EXTRA_OECONF += "--with-sysroot=/ \
|
|
|
|
--enable-install-libbfd \
|
2014-02-01 09:00:15 +00:00
|
|
|
--enable-install-libiberty \
|
2012-08-08 14:57:09 +00:00
|
|
|
--enable-shared \
|
|
|
|
"
|
|
|
|
|
2014-02-01 09:00:15 +00:00
|
|
|
EXTRA_OECONF_class-native = "--enable-targets=all \
|
|
|
|
--enable-64-bit-bfd \
|
|
|
|
--enable-install-libiberty \
|
|
|
|
--enable-install-libbfd"
|
2012-08-08 14:57:09 +00:00
|
|
|
|
2012-11-28 17:38:11 +00:00
|
|
|
do_install_class-native () {
|
2012-08-08 14:57:09 +00:00
|
|
|
autotools_do_install
|
|
|
|
|
|
|
|
# Install the libiberty header
|
|
|
|
install -d ${D}${includedir}
|
|
|
|
install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
|
|
|
|
install -m 644 ${S}/include/libiberty.h ${D}${includedir}
|
|
|
|
|
|
|
|
# We only want libiberty, libbfd and libopcodes
|
|
|
|
rm -rf ${D}${bindir}
|
|
|
|
rm -rf ${D}${prefix}/${TARGET_SYS}
|
|
|
|
rm -rf ${D}${prefix}/lib/ldscripts
|
|
|
|
rm -rf ${D}${prefix}/share/info
|
|
|
|
rm -rf ${D}${prefix}/share/locale
|
|
|
|
rm -rf ${D}${prefix}/share/man
|
|
|
|
rmdir ${D}${prefix}/share || :
|
|
|
|
rmdir ${D}/${libdir}/gcc-lib || :
|
|
|
|
rmdir ${D}/${libdir}64/gcc-lib || :
|
|
|
|
rmdir ${D}/${libdir} || :
|
|
|
|
rmdir ${D}/${libdir}64 || :
|
|
|
|
}
|
|
|
|
|
|
|
|
BBCLASSEXTEND = "native"
|