summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils_2.27.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils_2.27.bb')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.27.bb45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.27.bb b/meta/recipes-devtools/binutils/binutils_2.27.bb
new file mode 100644
index 0000000000..b51437bbc3
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils_2.27.bb
@@ -0,0 +1,45 @@
1require 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_OEMAKE_append_libc-musl = "\
14 gt_cv_func_gnugettext1_libc=yes \
15 gt_cv_func_gnugettext2_libc=yes \
16 "
17EXTRA_OECONF_class-native = "--enable-targets=all \
18 --enable-64-bit-bfd \
19 --enable-install-libiberty \
20 --enable-install-libbfd \
21 --disable-werror"
22
23do_install_class-native () {
24 autotools_do_install
25
26 # Install the libiberty header
27 install -d ${D}${includedir}
28 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
29 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
30
31 # We only want libiberty, libbfd and libopcodes
32 rm -rf ${D}${bindir}
33 rm -rf ${D}${prefix}/${TARGET_SYS}
34 rm -rf ${D}${prefix}/lib/ldscripts
35 rm -rf ${D}${prefix}/share/info
36 rm -rf ${D}${prefix}/share/locale
37 rm -rf ${D}${prefix}/share/man
38 rmdir ${D}${prefix}/share || :
39 rmdir ${D}/${libdir}/gcc-lib || :
40 rmdir ${D}/${libdir}64/gcc-lib || :
41 rmdir ${D}/${libdir} || :
42 rmdir ${D}/${libdir}64 || :
43}
44
45BBCLASSEXTEND = "native nativesdk"