summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils_2.29.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-10 07:38:59 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-16 00:03:13 +0100
commit00ea0bf798e12ebf2323a85a63b7497892a2fba4 (patch)
treec511c3c3f9a4d225459204d87b2132cf3b188e84 /meta/recipes-devtools/binutils/binutils_2.29.bb
parent034bff2ca431b49b7ca9b1e7b7c214ef94b0eb34 (diff)
downloadpoky-00ea0bf798e12ebf2323a85a63b7497892a2fba4.tar.gz
binutils: Upgrade to 2.29
(From OE-Core rev: 3bf990eb275f63190a2cf7253527d6d49fd93f1a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils_2.29.bb')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.29.bb49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.29.bb b/meta/recipes-devtools/binutils/binutils_2.29.bb
new file mode 100644
index 0000000000..51a9748906
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils_2.29.bb
@@ -0,0 +1,49 @@
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
45# Split out libbfd-*.so so including perf doesn't include extra stuff
46PACKAGE_BEFORE_PN += "libbfd"
47FILES_libbfd = "${libdir}/libbfd-*.so"
48
49BBCLASSEXTEND = "native nativesdk"