summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/binutils/binutils_cvs.bb
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/binutils/binutils_cvs.bb')
-rw-r--r--openembedded/packages/binutils/binutils_cvs.bb122
1 files changed, 0 insertions, 122 deletions
diff --git a/openembedded/packages/binutils/binutils_cvs.bb b/openembedded/packages/binutils/binutils_cvs.bb
deleted file mode 100644
index e870c8f0b5..0000000000
--- a/openembedded/packages/binutils/binutils_cvs.bb
+++ /dev/null
@@ -1,122 +0,0 @@
1SECTION = "devel"
2inherit autotools gettext
3
4DESCRIPTION = "A GNU collection of binary utilities"
5HOMEPAGE = "http://www.gnu.org/software/binutils/"
6LICENSE = "GPL"
7MAINTAINER = "Gerald Britton <gbritton@doomcom.org>"
8FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs"
9PV = "0.0+cvs${SRCDATE}"
10PR = "r2"
11
12PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"
13
14FILES_${PN} = " \
15 ${bindir}/${TARGET_PREFIX}* \
16 ${libdir}/lib*-*.so \
17 ${prefix}/${TARGET_SYS}/bin/*"
18
19FILES_${PN}-dev = " \
20 ${includedir} \
21 ${libdir}/*.a \
22 ${libdir}/*.la \
23 ${libdir}/libbfd.so \
24 ${libdir}/libopcodes.so"
25
26FILES_${PN}-symlinks = " \
27 ${bindir}/addr2line \
28 ${bindir}/ar \
29 ${bindir}/as \
30 ${bindir}/c++filt \
31 ${bindir}/gprof \
32 ${bindir}/ld \
33 ${bindir}/nm \
34 ${bindir}/objcopy \
35 ${bindir}/objdump \
36 ${bindir}/ranlib \
37 ${bindir}/readelf \
38 ${bindir}/size \
39 ${bindir}/strings \
40 ${bindir}/strip"
41
42SRC_URI = "cvs://anoncvs:anoncvs@sources.redhat.com/cvs/src;module=binutils;method=pserver;localdir=src \
43 file://ld_makefile.patch;patch=1 \
44 file://better_file_error.patch;patch=1 \
45 file://signed_char_fix.patch;patch=1 \
46 file://binutils-100_cflags_for_build.patch;patch=1 \
47 file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \
48 file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1"
49
50S = "${WORKDIR}/src"
51B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
52
53EXTRA_OECONF = "--with-sysroot=${prefix} \
54 --program-prefix=${TARGET_PREFIX} \
55 --enable-shared"
56
57# This is necessary due to a bug in the binutils Makefiles
58EXTRA_OEMAKE = "configure-build-libiberty all"
59
60export AR = "${HOST_PREFIX}ar"
61export AS = "${HOST_PREFIX}as"
62export LD = "${HOST_PREFIX}ld"
63export NM = "${HOST_PREFIX}nm"
64export RANLIB = "${HOST_PREFIX}ranlib"
65export OBJCOPY = "${HOST_PREFIX}objcopy"
66export OBJDUMP = "${HOST_PREFIX}objdump"
67
68export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
69export AS_FOR_TARGET = "${TARGET_PREFIX}as"
70export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
71export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
72export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
73
74export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc"
75export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc"
76
77export CC_FOR_BUILD = "${BUILD_CC}"
78
79export CC = "${CCACHE} ${HOST_PREFIX}gcc"
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 -m 644 ${S}/include/ansidecl.h ${D}${includedir}
114 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
115
116 cd ${D}${bindir}
117
118 # Symlinks for ease of running these on the native target
119 for p in ${TARGET_SYS}-* ; do
120 ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
121 done
122}