summaryrefslogtreecommitdiff
path: root/content/oz-ppc-toolchain-binutils-2.13.2.oe
blob: cb6525db1656f0b0f9809f5d4c8c22b2f3c8a786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
DESCRIPTION="binutils 2.13 from FSF"
SRC_URI="ftp://ftp.gnu.org/pub/gnu/binutils/binutils-2.13.2.tar.gz"
HOMEPAGE="http://gnu.org"
MAINTAINER="Tom Gall <tom_gall@mac.com>"

LICENSE="GPL"
RDEPEND=""
DEPEND=""
PROVIDES="virtual/ppc-linux-binutils"

inherit base

do_unpack() {
	base_do_unpack $@ || die
}

do_compile() {
        cd ${WORKDIR}/binutils-${PV}
	unset CC CFLAGS CPPFLAGS LDFLAGS;
	CC=""  ./configure --prefix=/usr/local/ppc --target=ppc-linux || die " ${P} failed during configure"
	oe_runmake -j 8 || die "failed building ${P}"

}

do_install() {
	mkdir -p /usr/local/ppc

	cd ${WORKDIR}/binutils-${PV}
        make install

	oeset COMPILERPATH /usr/local/ppc/bin
}