summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-02-20 09:13:40 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-22 23:57:27 +0000
commitfd0e3e1708393cf4b59802843c2c6c917798145c (patch)
tree6cdcbf2d50b78b0e1cc24571bc4eea4a5735e833 /meta/recipes-devtools/binutils/binutils.inc
parent746f277acc908c75a1578c018b5dd03fb88bcb1a (diff)
downloadpoky-fd0e3e1708393cf4b59802843c2c6c917798145c.tar.gz
binutils: Upgrade to 2.34 release
Details of changelog [1] Removing bfd/ld patch to enable PE targets, instead use specific emulations via --enable-targets for x86_64 Re-arrange/forward-port patches and upgrade libctf configure to libtool 2.4 patch rpaths are no longer emitted into elfedit/readelf therefore no need of chrpath anymore Instead of pre-generating configure scripts and house them in libtool patch, generate them during configure. This also ensures that we do not patch configure directly but rather the sources which generate it Package newly added libctf library [1] https://lists.gnu.org/archive/html/info-gnu/2020-02/msg00000.html (From OE-Core rev: 82f7d5cfc2ab02f39b69c0f8697d660936422d4a) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Christopher Clark <christopher.clark6@baesystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc26
1 files changed, 14 insertions, 12 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index a4b9aa586d..5b4a339209 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -13,17 +13,12 @@ LICENSE = "GPLv3"
13 13
14DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native" 14DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native"
15 15
16#
17# we need chrpath > 0.14 and some distros like centos 7 still have older chrpath
18#
19DEPENDS_append_class-target = " chrpath-replacement-native"
20EXTRANATIVEPATH_append_class-target = " chrpath-native"
21
22inherit autotools gettext multilib_header texinfo 16inherit autotools gettext multilib_header texinfo
23 17
24FILES_${PN} = " \ 18FILES_${PN} = " \
25 ${bindir}/${TARGET_PREFIX}* \ 19 ${bindir}/${TARGET_PREFIX}* \
26 ${libdir}/lib*-*.so \ 20 ${libdir}/lib*.so.* \
21 ${libdir}/lib*-${PV}*.so \
27 ${prefix}/${TARGET_SYS}/bin/* \ 22 ${prefix}/${TARGET_SYS}/bin/* \
28 ${bindir}/embedspu" 23 ${bindir}/embedspu"
29 24
@@ -33,6 +28,8 @@ FILES_${PN}-dev = " \
33 ${includedir} \ 28 ${includedir} \
34 ${libdir}/*.la \ 29 ${libdir}/*.la \
35 ${libdir}/libbfd.so \ 30 ${libdir}/libbfd.so \
31 ${libdir}/libctf.so \
32 ${libdir}/libctf-nobfd.so \
36 ${libdir}/libopcodes.so" 33 ${libdir}/libopcodes.so"
37 34
38# Rather than duplicating multiple entries for these, make one 35# Rather than duplicating multiple entries for these, make one
@@ -80,6 +77,8 @@ EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
80 ${LDGOLD} \ 77 ${LDGOLD} \
81 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" 78 ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}"
82 79
80EXTRA_OECONF_append_x86-64 = " --enable-targets=x86_64-pe,x86_64-pep "
81
83LDGOLD_class-native = "" 82LDGOLD_class-native = ""
84LDGOLD_class-crosssdk = "" 83LDGOLD_class-crosssdk = ""
85LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}" 84LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default --enable-threads', d)}"
@@ -112,7 +111,14 @@ export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}"
112MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}" 111MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}"
113do_configure[vardeps] += "MULTIARCH" 112do_configure[vardeps] += "MULTIARCH"
114do_configure () { 113do_configure () {
115 (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" 114 (for d in . bfd binutils gas gold gprof ld libctf opcodes; do
115 cd ${S}/$d
116 autoconf
117 rm -rf autom4te.cache
118 done
119 cd ${S}
120 gnu-configize)
121
116 oe_runconf 122 oe_runconf
117# 123#
118# must prime config.cache to ensure the build of libiberty 124# must prime config.cache to ensure the build of libiberty
@@ -123,10 +129,6 @@ do_configure () {
123 done 129 done
124} 130}
125 131
126do_compile_append_class-target() {
127 chrpath -d ${B}/binutils/elfedit
128 chrpath -d ${B}/binutils/readelf
129}
130do_install () { 132do_install () {
131 autotools_do_install 133 autotools_do_install
132 134