diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-02-10 10:37:19 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-16 09:46:28 +0000 |
| commit | 6957ff06a0ab978f73221766541c9541b9f7d1dd (patch) | |
| tree | 08194d403a20d2b0ae4d6a23f59e088b97eac65c /meta/recipes-devtools/binutils/binutils_2.38.bb | |
| parent | 1239b8e3e28516dd97df4f51d6c2f6d71eda1d46 (diff) | |
| download | poky-6957ff06a0ab978f73221766541c9541b9f7d1dd.tar.gz | |
binutils: Upgrade to 2.38 release
Release Notes are here [1]
[1] https://lists.gnu.org/archive/html/info-gnu/2022-02/msg00009.html
(From OE-Core rev: 77a1038828e638518dceda969da0817aa13eb5d3)
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.38.bb')
| -rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.38.bb | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.38.bb b/meta/recipes-devtools/binutils/binutils_2.38.bb new file mode 100644 index 0000000000..12a6fb5577 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils_2.38.bb | |||
| @@ -0,0 +1,69 @@ | |||
| 1 | require binutils.inc | ||
| 2 | require binutils-${PV}.inc | ||
| 3 | |||
| 4 | DEPENDS += "zlib" | ||
| 5 | |||
| 6 | EXTRA_OECONF += "--with-sysroot=/ \ | ||
| 7 | --enable-install-libbfd \ | ||
| 8 | --enable-install-libiberty \ | ||
| 9 | --enable-shared \ | ||
| 10 | --with-system-zlib \ | ||
| 11 | " | ||
| 12 | |||
| 13 | EXTRA_OEMAKE:append:libc-musl = "\ | ||
| 14 | gt_cv_func_gnugettext1_libc=yes \ | ||
| 15 | gt_cv_func_gnugettext2_libc=yes \ | ||
| 16 | " | ||
| 17 | EXTRA_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 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
| 29 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" | ||
| 30 | |||
| 31 | do_install:class-native () { | ||
| 32 | autotools_do_install | ||
| 33 | |||
| 34 | # Install the libiberty header | ||
| 35 | install -d ${D}${includedir} | ||
| 36 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
| 37 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
| 38 | |||
| 39 | # We only want libiberty, libbfd and libopcodes | ||
| 40 | rm -rf ${D}${bindir} | ||
| 41 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
| 42 | rm -rf ${D}${prefix}/lib/ldscripts | ||
| 43 | rm -rf ${D}${prefix}/share/info | ||
| 44 | rm -rf ${D}${prefix}/share/locale | ||
| 45 | rm -rf ${D}${prefix}/share/man | ||
| 46 | rmdir ${D}${prefix}/share || : | ||
| 47 | rmdir ${D}/${libdir}/gcc-lib || : | ||
| 48 | rmdir ${D}/${libdir}64/gcc-lib || : | ||
| 49 | rmdir ${D}/${libdir} || : | ||
| 50 | rmdir ${D}/${libdir}64 || : | ||
| 51 | } | ||
| 52 | |||
| 53 | # libctf races with libbfd | ||
| 54 | PARALLEL_MAKEINST:class-target = "" | ||
| 55 | PARALLEL_MAKEINST:class-nativesdk = "" | ||
| 56 | |||
| 57 | # Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include | ||
| 58 | # extra stuff | ||
| 59 | PACKAGE_BEFORE_PN += "libbfd libopcodes" | ||
| 60 | FILES:libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so" | ||
| 61 | FILES:libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so" | ||
| 62 | |||
| 63 | SRC_URI:append:class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch " | ||
| 64 | |||
| 65 | USE_ALTERNATIVES_FOR:class-nativesdk = "" | ||
| 66 | FILES:${PN}:append:class-nativesdk = " ${bindir}" | ||
| 67 | |||
| 68 | BBCLASSEXTEND = "native nativesdk" | ||
| 69 | |||
