summaryrefslogtreecommitdiffstats
path: root/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb
diff options
context:
space:
mode:
authorTomas Frydrych <tf@openedhand.com>2006-09-18 15:23:13 +0000
committerTomas Frydrych <tf@openedhand.com>2006-09-18 15:23:13 +0000
commit02059b7a72b03de846f78ab9a2c24d660b29d59e (patch)
tree5b059c6d2a705c596e72604c572d866aa4afee2b /meta/packages/binutils/binutils_csl-arm-2005q3-2.bb
parentde35d836b450951eddb505acb4b60de18d368df1 (diff)
downloadpoky-02059b7a72b03de846f78ab9a2c24d660b29d59e.tar.gz
files for using csl2005q3-2 toolchain
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@723 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/binutils/binutils_csl-arm-2005q3-2.bb')
-rw-r--r--meta/packages/binutils/binutils_csl-arm-2005q3-2.bb137
1 files changed, 137 insertions, 0 deletions
diff --git a/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb b/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb
new file mode 100644
index 0000000000..c5e71af196
--- /dev/null
+++ b/meta/packages/binutils/binutils_csl-arm-2005q3-2.bb
@@ -0,0 +1,137 @@
1DESCRIPTION = "A GNU collection of binary utilities"
2HOMEPAGE = "http://www.gnu.org/software/binutils/"
3SECTION = "devel"
4LICENSE = "GPL"
5DEFAULT_PREFERENCE = "-1"
6
7BINV = "2.16"
8PV = "2.16+csl-arm-2005q3-2"
9
10FILESDIR = "${FILE_DIRNAME}/binutils-${PV}"
11
12S = "${WORKDIR}/binutils-2.17pre"
13
14inherit autotools gettext
15
16PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks"
17
18FILES_${PN} = " \
19 ${bindir}/${TARGET_PREFIX}* \
20 ${libdir}/lib*-*.so \
21 ${prefix}/${TARGET_SYS}/bin/*"
22
23FILES_${PN}-dev = " \
24 ${includedir} \
25 ${libdir}/*.a \
26 ${libdir}/*.la \
27 ${libdir}/libbfd.so \
28 ${libdir}/libopcodes.so"
29
30FILES_${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
46SRC_URI = \
47 "http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi/arm-2005q3-2-arm-none-linux-gnueabi.src.tar.bz2 \
48# file://binutils-2.16.91.0.6-objcopy-rename-errorcode.patch;patch=1;pnum=1\
49# file://binutils-uclibc-100-uclibc-conf.patch;patch=1;pnum=1 \
50# file://binutils-uclibc-300-001_ld_makefile_patch.patch;patch=1;pnum=1 \
51# file://binutils-uclibc-300-006_better_file_error.patch;patch=1;pnum=1 \
52# file://binutils-uclibc-300-012_check_ldrunpath_length.patch;patch=1;pnum=1 \
53# file://binutils-uclibc-400-mips-ELF_MAXPAGESIZE-4K.patch;patch=1;pnum=1 \
54# file://binutils-uclibc-702-binutils-skip-comments.patch;patch=1;pnum=1 \
55 "
56do_unpack2() {
57 cd ${WORKDIR}
58 pwd
59 tar -xvjf ./arm-2005q3-2-arm-none-linux-gnueabi/binutils-2005q3-2.tar.bz2
60}
61
62addtask unpack2 after do_unpack before do_patch
63
64B = "${S}/build.${HOST_SYS}.${TARGET_SYS}"
65
66EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \
67 --enable-shared"
68
69# This is necessary due to a bug in the binutils Makefiles
70EXTRA_OEMAKE = "configure-build-libiberty all"
71
72export AR = "${HOST_PREFIX}ar"
73export AS = "${HOST_PREFIX}as"
74export LD = "${HOST_PREFIX}ld"
75export NM = "${HOST_PREFIX}nm"
76export RANLIB = "${HOST_PREFIX}ranlib"
77export OBJCOPY = "${HOST_PREFIX}objcopy"
78export OBJDUMP = "${HOST_PREFIX}objdump"
79
80export AR_FOR_TARGET = "${TARGET_PREFIX}ar"
81export AS_FOR_TARGET = "${TARGET_PREFIX}as"
82export LD_FOR_TARGET = "${TARGET_PREFIX}ld"
83export NM_FOR_TARGET = "${TARGET_PREFIX}nm"
84export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib"
85
86export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
87export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
88
89export CC_FOR_BUILD = "${BUILD_CC}"
90export CPP_FOR_BUILD = "${BUILD_CPP}"
91export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}"
92
93export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}"
94
95do_configure () {
96 (cd ${S}; gnu-configize) || die "Failed to run gnu-configize"
97 oe_runconf
98}
99
100do_stage () {
101 oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/
102 oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/
103 oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/
104 install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/
105 install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/
106 install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/
107 install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/
108 install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/
109 install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/
110}
111
112do_install () {
113 autotools_do_install
114
115 # We don't really need these, so we'll remove them...
116 rm -rf ${D}${libdir}/ldscripts
117
118 # Fix the /usr/${TARGET_SYS}/bin/* links
119 for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do
120 rm -f $l
121 ln -sf `echo ${prefix}/${TARGET_SYS}/bin \
122 | tr -s / \
123 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l
124 done
125
126 # Install the libiberty header
127 install -d ${D}${includedir}
128 install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
129 install -m 644 ${S}/include/libiberty.h ${D}${includedir}
130
131 cd ${D}${bindir}
132
133 # Symlinks for ease of running these on the native target
134 for p in ${TARGET_SYS}-* ; do
135 ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,`
136 done
137}