diff options
Diffstat (limited to 'meta/packages/binutils/binutils_csl-arm-2005q3-2.bb')
-rw-r--r-- | meta/packages/binutils/binutils_csl-arm-2005q3-2.bb | 130 |
1 files changed, 0 insertions, 130 deletions
diff --git a/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb b/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb deleted file mode 100644 index 96026d449e..0000000000 --- a/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb +++ /dev/null | |||
@@ -1,130 +0,0 @@ | |||
1 | DESCRIPTION = "A GNU collection of binary utilities" | ||
2 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
3 | SECTION = "devel" | ||
4 | LICENSE = "GPL" | ||
5 | DEFAULT_PREFERENCE = "-1" | ||
6 | |||
7 | BINV = "2.16" | ||
8 | PV = "2.16+csl-arm-2005q3-2" | ||
9 | |||
10 | FILESDIR = "${FILE_DIRNAME}/binutils-${PV}" | ||
11 | |||
12 | S = "${WORKDIR}/binutils-2.17pre" | ||
13 | |||
14 | inherit autotools gettext | ||
15 | |||
16 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | ||
17 | |||
18 | FILES_${PN} = " \ | ||
19 | ${bindir}/${TARGET_PREFIX}* \ | ||
20 | ${libdir}/lib*-*.so \ | ||
21 | ${prefix}/${TARGET_SYS}/bin/*" | ||
22 | |||
23 | FILES_${PN}-dev = " \ | ||
24 | ${includedir} \ | ||
25 | ${libdir}/*.a \ | ||
26 | ${libdir}/*.la \ | ||
27 | ${libdir}/libbfd.so \ | ||
28 | ${libdir}/libopcodes.so" | ||
29 | |||
30 | FILES_${PN}-symlinks = " \ | ||
31 | ${bindir}/addr2line \ | ||
32 | ${bindir}/ar \ | ||
33 | ${bindir}/as \ | ||
34 | ${bindir}/c++filt \ | ||
35 | ${bindir}/gprof \ | ||
36 | ${bindir}/ld \ | ||
37 | ${bindir}/nm \ | ||
38 | ${bindir}/objcopy \ | ||
39 | ${bindir}/objdump \ | ||
40 | ${bindir}/ranlib \ | ||
41 | ${bindir}/readelf \ | ||
42 | ${bindir}/size \ | ||
43 | ${bindir}/strings \ | ||
44 | ${bindir}/strip" | ||
45 | |||
46 | SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-2005q3-2-arm-none-linux-gnueabi.src.tar.bz2 \ | ||
47 | file://binutils-configure-texinfo-version.patch;patch=1" | ||
48 | |||
49 | do_unpack2() { | ||
50 | cd ${WORKDIR} | ||
51 | pwd | ||
52 | tar -xvjf ./arm-2005q3-2-arm-none-linux-gnueabi/binutils-2005q3-2.tar.bz2 | ||
53 | } | ||
54 | |||
55 | addtask unpack2 after do_unpack before do_patch | ||
56 | |||
57 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
58 | |||
59 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
60 | --enable-shared" | ||
61 | |||
62 | # This is necessary due to a bug in the binutils Makefiles | ||
63 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
64 | |||
65 | export AR = "${HOST_PREFIX}ar" | ||
66 | export AS = "${HOST_PREFIX}as" | ||
67 | export LD = "${HOST_PREFIX}ld" | ||
68 | export NM = "${HOST_PREFIX}nm" | ||
69 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
70 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
71 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
72 | |||
73 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
74 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
75 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
76 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
77 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
78 | |||
79 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
80 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
81 | |||
82 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
83 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
84 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
85 | |||
86 | export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
87 | |||
88 | do_configure () { | ||
89 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
90 | oe_runconf | ||
91 | } | ||
92 | |||
93 | do_stage () { | ||
94 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
95 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
96 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
97 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
98 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
99 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
100 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
101 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
102 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
103 | } | ||
104 | |||
105 | do_install () { | ||
106 | autotools_do_install | ||
107 | |||
108 | # We don't really need these, so we'll remove them... | ||
109 | rm -rf ${D}${libdir}/ldscripts | ||
110 | |||
111 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
112 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
113 | rm -f $l | ||
114 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
115 | | tr -s / \ | ||
116 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
117 | done | ||
118 | |||
119 | # Install the libiberty header | ||
120 | install -d ${D}${includedir} | ||
121 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
122 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
123 | |||
124 | cd ${D}${bindir} | ||
125 | |||
126 | # Symlinks for ease of running these on the native target | ||
127 | for p in ${TARGET_SYS}-* ; do | ||
128 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
129 | done | ||
130 | } | ||