/[gentoo-x86]/net-misc/ixp4xx/ixp4xx-2.1.ebuild
Gentoo

Contents of /net-misc/ixp4xx/ixp4xx-2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Oct 28 12:32:57 2010 UTC (4 years, 1 month ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
header

(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ixp4xx/ixp4xx-2.1.ebuild,v 1.4 2007/01/07 10:52:09 vapier Exp $
4
5 inherit eutils toolchain-funcs linux-mod
6
7 DESCRIPTION="kernel drivers for intel ixp4xx systems (like the NSLU2)"
8 HOMEPAGE="http://www.intel.com/design/network/products/npfamily/ixp420.htm"
9 SRC_URI="ftp://aiedownload.intel.com/df-support/9515/eng/IPL_ixp400AccessLibrary-2_1.zip
10 ftp://aiedownload.intel.com/df-support/9517/eng/IPL_ixp400NpeLibrary-2_1.zip
11 ftp://aiedownload.intel.com/df-support/9519/eng/GPL_ixp400LinuxEthernetDriverPatch-1_5.zip"
12
13 LICENSE="ixp4xx"
14 SLOT="0"
15 KEYWORDS="-* arm"
16 IUSE=""
17 RESTRICT="mirror"
18
19 DEPEND="app-arch/unzip"
20 RDEPEND=""
21
22 S=${WORKDIR}/ixp400_xscale_sw
23
24 src_unpack() {
25 unpack ${A}
26 epatch "${FILESDIR}"/2.1/*.patch
27 }
28
29 src_compile() {
30 cd ixp400_xscale_sw
31 local ix_target
32 [[ $(printf "#include <endian.h>\n#if __BYTE_ORDER == __LITTLE_ENDIAN\nlittle\n#else\nbig\n#endif\n" | $(tc-getCPP) - | tail -n 1) == "little" ]] \
33 && ix_target=linuxle \
34 || ix_target=linuxbe
35 make \
36 LINUX_CROSS_COMPILE=${CHOST}- \
37 ${ix_target}_KERNEL_DIR=${KERNEL_DIR} \
38 IX_XSCALE_SW=${PWD} \
39 IX_TARGET=${ix_target} \
40 IX_DEVICE=ixp42X \
41 IX_PLATFORM=ixdp42x \
42 COMPONENTS="qmgr npeMh npeDl ethAcc ethDB ethMii featureCtrl osServices oslinux" \
43 IX_INCLUDE_MICROCODE=1 \
44 ixp400.${KV_OBJ} ixp400_eth.${KV_OBJ} \
45 || die "failed to build kernel modules"
46 cp lib/${ix_target}/ixp400.${KV_OBJ} lib/${ix_target}/ixp400_eth.${KV_OBJ} . || die
47 }
48
49 src_install() {
50 MODULE_NAMES="ixp400(kernel/drivers/ixp400:${S}) ixp400_eth(kernel/drivers/net:${S})"
51 linux-mod_src_install
52 }

  ViewVC Help
Powered by ViewVC 1.1.20