blob: b70ffbf28af05adf0761605997e04c9f5d4589cd [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -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 --with-system-zlib \
11 "
12
13EXTRA_OECONF_class-native = "--enable-targets=all \
14 --enable-64-bit-bfd \
15 --enable-install-libiberty \
16 --enable-install-libbfd"
17
18do_install_class-native () {
19 autotools_do_install
20
21 # Install the libiberty header
22 install -d ${D}${includedir}
23 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
24 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
25
26 # We only want libiberty, libbfd and libopcodes
27 rm -rf ${D}${bindir}
28 rm -rf ${D}${prefix}/${TARGET_SYS}
29 rm -rf ${D}${prefix}/lib/ldscripts
30 rm -rf ${D}${prefix}/share/info
31 rm -rf ${D}${prefix}/share/locale
32 rm -rf ${D}${prefix}/share/man
33 rmdir ${D}${prefix}/share || :
34 rmdir ${D}/${libdir}/gcc-lib || :
35 rmdir ${D}/${libdir}64/gcc-lib || :
36 rmdir ${D}/${libdir} || :
37 rmdir ${D}/${libdir}64 || :
38}
39
40BBCLASSEXTEND = "native nativesdk"