diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2016-10-27 14:11:32 +0200 |
---|---|---|
committer | Martin Borg <martin.borg@enea.com> | 2016-10-27 16:13:37 +0200 |
commit | f9a0d0a5f9a982a64b5c6f235928f4845bd3ca69 (patch) | |
tree | e9910236618f1849f43c6d24f1bf6dc9bf9ee319 /recipes-devtools/binutils/binutils.inc | |
parent | 416b696974560cdc27d9b314639f57e79be33b9f (diff) | |
download | meta-enea-bsp-ppc-master.tar.gz |
This reverts commit 043564f3b4dc1d2801c2170e92ec4b84403a1d0d.
The boot issue that originally caused this commit has been fixed in the
4.1 kernel.
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Signed-off-by: Martin Borg <martin.borg@enea.com>
Conflicts:
conf/layer.conf
Diffstat (limited to 'recipes-devtools/binutils/binutils.inc')
-rw-r--r-- | recipes-devtools/binutils/binutils.inc | 151 |
1 files changed, 0 insertions, 151 deletions
diff --git a/recipes-devtools/binutils/binutils.inc b/recipes-devtools/binutils/binutils.inc deleted file mode 100644 index 79e2a12..0000000 --- a/recipes-devtools/binutils/binutils.inc +++ /dev/null | |||
@@ -1,151 +0,0 @@ | |||
1 | SUMMARY = "GNU binary utilities" | ||
2 | DESCRIPTION = "The GNU Binutils are a collection of binary tools. \ | ||
3 | The main ones are ld (GNU Linker), and as (GNU Assembler). This \ | ||
4 | package also includes addition tools such as addr2line (Converts \ | ||
5 | addresses into filenames and line numbers), ar (utility for creating, \ | ||
6 | modifying and extracting archives), nm (list symbols in object \ | ||
7 | files), objcopy (copy and translate object files), objdump (Display \ | ||
8 | object information), and other tools and related libraries." | ||
9 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
10 | BUGTRACKER = "http://sourceware.org/bugzilla/" | ||
11 | SECTION = "devel" | ||
12 | LICENSE = "GPLv3" | ||
13 | |||
14 | DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native" | ||
15 | |||
16 | inherit autotools gettext multilib_header texinfo | ||
17 | |||
18 | FILES_${PN} = " \ | ||
19 | ${bindir}/${TARGET_PREFIX}* \ | ||
20 | ${libdir}/lib*-*.so \ | ||
21 | ${prefix}/${TARGET_SYS}/bin/* \ | ||
22 | ${bindir}/embedspu" | ||
23 | |||
24 | RPROVIDES_${PN} += "${PN}-symlinks" | ||
25 | |||
26 | FILES_${PN}-dev = " \ | ||
27 | ${includedir} \ | ||
28 | ${libdir}/*.la \ | ||
29 | ${libdir}/libbfd.so \ | ||
30 | ${libdir}/libopcodes.so" | ||
31 | |||
32 | # Rather than duplicating multiple entries for these, make one | ||
33 | # list and reuse it. | ||
34 | |||
35 | USE_ALTERNATIVES_FOR = " \ | ||
36 | addr2line \ | ||
37 | ar \ | ||
38 | as \ | ||
39 | c++filt \ | ||
40 | elfedit \ | ||
41 | gprof \ | ||
42 | ld \ | ||
43 | ld.bfd \ | ||
44 | ld.gold dwp \ | ||
45 | nm \ | ||
46 | objcopy \ | ||
47 | objdump \ | ||
48 | ranlib \ | ||
49 | readelf \ | ||
50 | size \ | ||
51 | strings \ | ||
52 | strip \ | ||
53 | " | ||
54 | |||
55 | python do_package_prepend() { | ||
56 | make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or "" | ||
57 | prefix = d.getVar("TARGET_PREFIX", True) | ||
58 | bindir = d.getVar("bindir", True) | ||
59 | for alt in make_alts.split(): | ||
60 | d.setVarFlag('ALTERNATIVE_TARGET', alt, bindir + "/" + prefix + alt) | ||
61 | d.setVarFlag('ALTERNATIVE_LINK_NAME', alt, bindir + "/" + alt) | ||
62 | } | ||
63 | |||
64 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
65 | |||
66 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
67 | --disable-werror \ | ||
68 | --enable-plugins \ | ||
69 | ${LDGOLD} \ | ||
70 | ${@bb.utils.contains('DISTRO_FEATURES', 'multiarch', '--enable-64-bit-bfd', '', d)}" | ||
71 | |||
72 | LDGOLD_class-native = "" | ||
73 | LDGOLD_class-crosssdk = "" | ||
74 | LDGOLD ?= "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--enable-gold=default --enable-threads', '--enable-gold --enable-ld=default', d)}" | ||
75 | |||
76 | # This is necessary due to a bug in the binutils Makefiles | ||
77 | # EXTRA_OEMAKE = "configure-build-libiberty all" | ||
78 | |||
79 | export AR = "${HOST_PREFIX}ar" | ||
80 | export AS = "${HOST_PREFIX}as" | ||
81 | export LD = "${HOST_PREFIX}ld" | ||
82 | export NM = "${HOST_PREFIX}nm" | ||
83 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
84 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
85 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
86 | |||
87 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
88 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
89 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
90 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
91 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
92 | |||
93 | export CC_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
94 | export CXX_FOR_HOST = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
95 | |||
96 | # autotools.bbclass sets the _FOR_BUILD variables, but for some reason we need | ||
97 | # to unset LD_LIBRARY_PATH. | ||
98 | export CC_FOR_BUILD = "LD_LIBRARY_PATH= ${BUILD_CC}" | ||
99 | |||
100 | MULTIARCH := "${@bb.utils.contains("DISTRO_FEATURES", "multiarch", "yes", "no", d)}" | ||
101 | do_configure[vardeps] += "MULTIARCH" | ||
102 | do_configure () { | ||
103 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
104 | oe_runconf | ||
105 | # | ||
106 | # must prime config.cache to ensure the build of libiberty | ||
107 | # | ||
108 | mkdir -p ${B}/build-${BUILD_SYS} | ||
109 | for i in ${CONFIG_SITE}; do | ||
110 | cat $i >> ${B}/build-${BUILD_SYS}/config.cache || true | ||
111 | done | ||
112 | } | ||
113 | |||
114 | do_install () { | ||
115 | autotools_do_install | ||
116 | |||
117 | # We don't really need these, so we'll remove them... | ||
118 | rm -rf ${D}${libdir}/ldscripts | ||
119 | |||
120 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
121 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
122 | rm -f $l | ||
123 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
124 | | tr -s / \ | ||
125 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
126 | done | ||
127 | |||
128 | # Install the libiberty header | ||
129 | install -d ${D}${includedir} | ||
130 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
131 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
132 | |||
133 | cd ${D}${bindir} | ||
134 | |||
135 | # Symlinks for ease of running these on the native target | ||
136 | for p in ${TARGET_PREFIX}* ; do | ||
137 | ln -sf $p `echo $p | sed -e s,${TARGET_PREFIX},,` | ||
138 | done | ||
139 | |||
140 | for alt in ${USE_ALTERNATIVES_FOR}; do | ||
141 | rm -f ${D}${bindir}/$alt | ||
142 | done | ||
143 | |||
144 | oe_multilib_header bfd.h | ||
145 | } | ||
146 | |||
147 | inherit update-alternatives | ||
148 | |||
149 | ALTERNATIVE_PRIORITY = "100" | ||
150 | |||
151 | ALTERNATIVE_${PN}_class-target = "${USE_ALTERNATIVES_FOR}" | ||