summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils/binutils_2.15.94.0.1.bb
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-31 18:53:02 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-31 23:00:06 +0000
commit93df528092154fd256915c28db0fad81c777d5f0 (patch)
treee0baa5ac0f3a3c701a85bb62c81fbd07c7fb864b /meta/packages/binutils/binutils_2.15.94.0.1.bb
parent3fc046901f3f4234b6147f5d2b8efdc4a4b64a4f (diff)
downloadpoky-93df528092154fd256915c28db0fad81c777d5f0.tar.gz
binutils: Drop versions 2.17 and earlier
Diffstat (limited to 'meta/packages/binutils/binutils_2.15.94.0.1.bb')
-rw-r--r--meta/packages/binutils/binutils_2.15.94.0.1.bb123
1 files changed, 0 insertions, 123 deletions
diff --git a/meta/packages/binutils/binutils_2.15.94.0.1.bb b/meta/packages/binutils/binutils_2.15.94.0.1.bb
deleted file mode 100644
index ef9731ccd6..0000000000
--- a/meta/packages/binutils/binutils_2.15.94.0.1.bb
+++ /dev/null
@@ -1,123 +0,0 @@
1DESCRIPTION = "A GNU collection of binary utilities"
2HOMEPAGE = "http://www.gnu.org/software/binutils/"
3SECTION = "devel"
4LICENSE = "GPL"
5PR = "r3"
6
7inherit autotools gettext
8
9PACKAGES += "${PN}-symlinks"
10
11FILES_${PN} = " \
12 ${bindir}/${TARGET_PREFIX}* \
13 ${libdir}/lib*-*.so \
14 ${prefix}/${TARGET_SYS}/bin/*"
15
16FILES_${PN}-dev = " \
17 ${includedir} \
18 ${libdir}/*.a \
19 ${libdir}/*.la \
20 ${libdir}/libbfd.so \
21 ${libdir}/libopcodes.so"
22
23FILES_${PN}-symlinks = " \
24 ${bindir}/addr2line \
25 ${bindir}/ar \
26 ${bindir}/as \
27 ${bindir}/c++filt \
28 ${bindir}/gprof \
29 ${bindir}/ld \
30 ${bindir}/nm \
31 ${bindir}/objcopy \
32 ${bindir}/objdump \
33 ${bindir}/ranlib \
34 ${bindir}/readelf \
35 ${bindir}/size \
36 ${bindir}/strings \
37 ${bindir}/strip"
38
39SRC_URI = \
40 "http://ftp.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \
41 file://ld_makefile.patch;patch=1 \
42 file://better_file_error.patch;patch=1 \
43 file://signed_char_fix.patch;patch=1 \
44 file://objdump_fix.patch;patch=1 \
45 file://binutils-100_cflags_for_build.patch;patch=1 \
46 file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \
47 file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1 \
48 file://binutils-2.15-allow-gcc-4.0.patch;patch=1"
49S = "${WORKDIR}/binutils-${PV}"
50B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
51
52EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
53 --enable-shared"
54
55# This is necessary due to a bug in the binutils Makefiles
56EXTRA_OEMAKE = "configure-build-libiberty all"
57
58export AR = "${HOST_PREFIX}ar"
59export AS = "${HOST_PREFIX}as"
60export LD = "${HOST_PREFIX}ld"
61export NM = "${HOST_PREFIX}nm"
62export RANLIB = "${HOST_PREFIX}ranlib"
63export OBJCOPY = "${HOST_PREFIX}objcopy"
64export OBJDUMP = "${HOST_PREFIX}objdump"
65
66export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
67export AS_FOR_TARGET = "${TARGET_PREFIX}as"
68export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
69export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
70export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
71
72export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
73export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
74
75export CC_FOR_BUILD = "${BUILD_CC}"
76export CPP_FOR_BUILD = "${BUILD_CPP}"
77export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
78
79export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
80
81do_configure () {
82 (cd ${S}; gnu-configize) || die "Failed to run gnu-configize"
83 oe_runconf
84}
85
86do_stage () {
87 oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/
88 oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/
89 oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/
90 install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/
91 install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/
92 install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/
93 install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/
94 install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/
95 install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/
96}
97
98do_install () {
99 autotools_do_install
100
101 # We don't really need these, so we'll remove them...
102 rm -rf ${D}${libdir}/ldscripts
103
104 # Fix the /usr/${TARGET_SYS}/bin/* links
105 for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
106 rm -f $l
107 ln -sf `echo ${prefix}/${TARGET_SYS}/bin \
108 | tr -s / \
109 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
110 done
111
112 # Install the libiberty header
113 install -d ${D}${includedir}
114 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
115 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
116
117 cd ${D}${bindir}
118
119 # Symlinks for ease of running these on the native target
120 for p in ${TARGET_SYS}-* ; do
121 ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
122 done
123}