diff options
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils_2.42.bb')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.42.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.42.bb b/meta/recipes-devtools/binutils/binutils_2.42.bb new file mode 100644 index 0000000000..2cce40f1ef --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils_2.42.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | require binutils.inc | ||
2 | require binutils-${PV}.inc | ||
3 | |||
4 | # perl-native for pod2man for man page generation | ||
5 | DEPENDS += "zlib perl-native" | ||
6 | |||
7 | EXTRA_OECONF += "--with-sysroot=/ \ | ||
8 | --enable-install-libbfd \ | ||
9 | --enable-install-libiberty \ | ||
10 | --enable-shared \ | ||
11 | --with-system-zlib \ | ||
12 | " | ||
13 | |||
14 | EXTRA_OEMAKE:append:libc-musl = "\ | ||
15 | gt_cv_func_gnugettext1_libc=yes \ | ||
16 | gt_cv_func_gnugettext2_libc=yes \ | ||
17 | " | ||
18 | # libcollector/collector.c:547:15: error: no member named '__fprintf_chk' in 'struct CollectorUtilFuncs' | ||
19 | EXTRA_OECONF:append:toolchain-clang = " --disable-gprofng" | ||
20 | # | ../../../gprofng/libcollector/../src/collector_module.h:78:13: error: duplicate member 'pwrite' | ||
21 | # | ../../../gprofng/libcollector/dispatcher.c:578:8: error: 'struct sigevent' has no member named '_sigev_un' | ||
22 | EXTRA_OECONF:append:libc-musl = " --disable-gprofng" | ||
23 | |||
24 | EXTRA_OECONF:class-native = "--enable-targets=all \ | ||
25 | --enable-64-bit-bfd \ | ||
26 | --enable-install-libiberty \ | ||
27 | --enable-install-libbfd \ | ||
28 | --disable-gdb \ | ||
29 | --disable-gdbserver \ | ||
30 | --disable-libdecnumber \ | ||
31 | --disable-readline \ | ||
32 | --disable-sim \ | ||
33 | --disable-werror" | ||
34 | |||
35 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'debuginfod', d)}" | ||
36 | PACKAGECONFIG[debuginfod] = "--with-debuginfod, --without-debuginfod, elfutils" | ||
37 | |||
38 | do_install:class-native () { | ||
39 | autotools_do_install | ||
40 | |||
41 | # Install the libiberty header | ||
42 | install -d ${D}${includedir} | ||
43 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
44 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
45 | |||
46 | # We only want libiberty, libbfd and libopcodes | ||
47 | rm -rf ${D}${bindir} | ||
48 | rm -rf ${D}${prefix}/${TARGET_SYS} | ||
49 | rm -rf ${D}${prefix}/lib/ldscripts | ||
50 | rm -rf ${D}${prefix}/share/info | ||
51 | rm -rf ${D}${prefix}/share/locale | ||
52 | rm -rf ${D}${prefix}/share/man | ||
53 | rmdir ${D}${prefix}/share || : | ||
54 | rmdir ${D}/${libdir}/gcc-lib || : | ||
55 | rmdir ${D}/${libdir}64/gcc-lib || : | ||
56 | rmdir ${D}/${libdir} || : | ||
57 | rmdir ${D}/${libdir}64 || : | ||
58 | } | ||
59 | |||
60 | # libctf races with libbfd | ||
61 | PARALLEL_MAKEINST:class-target = "" | ||
62 | PARALLEL_MAKEINST:class-nativesdk = "" | ||
63 | |||
64 | # Split out libbfd-*.so and libopcodes-*.so so including perf doesn't include | ||
65 | # extra stuff | ||
66 | PACKAGE_BEFORE_PN += "libbfd libopcodes gprofng" | ||
67 | FILES:libbfd = "${libdir}/libbfd-*.so.* ${libdir}/libbfd-*.so" | ||
68 | FILES:libopcodes = "${libdir}/libopcodes-*.so.* ${libdir}/libopcodes-*.so" | ||
69 | FILES:gprofng = "${sysconfdir}/gprofng.rc ${libdir}/gprofng/libgp-*.so ${libdir}/gprofng/libgprofng.so.* ${bindir}/gp-* ${bindir}/gprofng" | ||
70 | FILES:${PN}-dev += "${libdir}/libgprofng.so ${libdir}/libsframe.so" | ||
71 | SRC_URI:append:class-nativesdk = " file://0003-binutils-nativesdk-Search-for-alternative-ld.so.conf.patch " | ||
72 | |||
73 | USE_ALTERNATIVES_FOR:class-nativesdk = "" | ||
74 | FILES:${PN}:append:class-nativesdk = " ${bindir}" | ||
75 | |||
76 | BBCLASSEXTEND = "native nativesdk" | ||