summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils_2.36.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-01-29 23:19:50 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-03 21:45:49 +0000
commitb7daba67380d5b2d2bae0154372db770ae05b195 (patch)
treedf62a9323521b3c028b4158ebd0dd7bc6480d2e7 /meta/recipes-devtools/binutils/binutils_2.36.bb
parent39c454a1df4c66b0dc5f724db259f21f9b338ddd (diff)
downloadpoky-b7daba67380d5b2d2bae0154372db770ae05b195.tar.gz
binutils: Upgrade to 2.36 release
Drop backported patches which are already present in 2.36 release (From OE-Core rev: 897afa95ba340f1124decac5753e1d1e1283b515) 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.36.bb')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.36.bb67
1 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.36.bb b/meta/recipes-devtools/binutils/binutils_2.36.bb
new file mode 100644
index 0000000000..976e49765a
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils_2.36.bb
@@ -0,0 +1,67 @@
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-gdb \
22 --disable-gdbserver \
23 --disable-libdecnumber \
24 --disable-readline \
25 --disable-sim \
26 --disable-werror"
27
28# gcc9.0 end up mis-compiling libbfd.so with O2 which then crashes on target
29# So remove -O2 and use -Os as workaround
30SELECTED_OPTIMIZATION_remove_mipsarch = "-O2"
31SELECTED_OPTIMIZATION_append_mipsarch = " -Os"
32
33do_install_class-native () {
34 autotools_do_install
35
36 # Install the libiberty header
37 install -d ${D}${includedir}
38 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
39 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
40
41 # We only want libiberty, libbfd and libopcodes
42 rm -rf ${D}${bindir}
43 rm -rf ${D}${prefix}/${TARGET_SYS}
44 rm -rf ${D}${prefix}/lib/ldscripts
45 rm -rf ${D}${prefix}/share/info
46 rm -rf ${D}${prefix}/share/locale
47 rm -rf ${D}${prefix}/share/man
48 rmdir ${D}${prefix}/share || :
49 rmdir ${D}/${libdir}/gcc-lib || :
50 rmdir ${D}/${libdir}64/gcc-lib || :
51 rmdir ${D}/${libdir} || :
52 rmdir ${D}/${libdir}64 || :
53}
54
55# Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include
56# extra stuff
57PACKAGE_BEFORE_PN += "libbfd libopcodes"
58FILES_libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so"
59FILES_libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so"
60
61SRC_URI_append_class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch "
62
63USE_ALTERNATIVES_FOR_class-nativesdk = ""
64FILES_${PN}_append_class-nativesdk = " ${bindir}"
65
66BBCLASSEXTEND = "native nativesdk"
67