blob: 6f42671ed0fb03c571604ea72bb6639cedc52cb6 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require binutils.inc
2require binutils-${PV}.inc
3
4DEPENDS += "flex bison zlib"
5
6EXTRA_OECONF += "--with-sysroot=/ \
7 --enable-install-libbfd \
8 --enable-install-libiberty \
9 --enable-shared \
10 "
11
12EXTRA_OECONF_class-native = "--enable-targets=all \
13 --enable-64-bit-bfd \
14 --enable-install-libiberty \
15 --enable-install-libbfd"
16
17do_install_class-native () {
18 autotools_do_install
19
20 # Install the libiberty header
21 install -d ${D}${includedir}
22 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
23 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
24
25 # We only want libiberty, libbfd and libopcodes
26 rm -rf ${D}${bindir}
27 rm -rf ${D}${prefix}/${TARGET_SYS}
28 rm -rf ${D}${prefix}/lib/ldscripts
29 rm -rf ${D}${prefix}/share/info
30 rm -rf ${D}${prefix}/share/locale
31 rm -rf ${D}${prefix}/share/man
32 rmdir ${D}${prefix}/share || :
33 rmdir ${D}/${libdir}/gcc-lib || :
34 rmdir ${D}/${libdir}64/gcc-lib || :
35 rmdir ${D}/${libdir} || :
36 rmdir ${D}/${libdir}64 || :
37}
38
39BBCLASSEXTEND = "native nativesdk"