summaryrefslogtreecommitdiff
blob: 82511045001fe1112beda8c9a0a6f80d666bdbf8 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/zd1211-firmware/zd1211-firmware-1.4.ebuild,v 1.2 2007/11/03 12:03:19 dsd Exp $

EAPI="2"

inherit eutils

MY_P="${PN}_${PV}"

DESCRIPTION="Texas Instruments WiLinkTM solution (WL1271) applications"
HOMEPAGE="https://gforge.ti.com/gf/project/wilink_drivers/"
BASE_URI="https://launchpad.net/~tiomap-dev/+archive/release/+files"
SRC_URI="${BASE_URI}/${MY_P}.orig.tar.gz"
SRC_URI="${SRC_URI} ${BASE_URI}/${MY_P}-0ubuntu6.diff.gz"



LICENSE="TI-TSPA-v1"
SLOT="0"
KEYWORDS="arm"

IUSE=""
RDEPEND="net-wireless/tiwlan-wl1271-firmware"
DEPEND="${RDEPEND}"


src_prepare() {
	cd ${WORKDIR}

	epatch ${MY_P}*.diff
	cd "${S}"
	epatch "${S}"/debian/patches/*.patch
}

src_compile() {
#	cd "${S}"
	make -j1
}

src_install() {
#	cd "${S}"
	insinto /etc/udev/rules.d/
	newins debian/tiwlan-wl1271-dkms.udev 40-tiwlan-wl1271.rules
	
	cd wlan/CUDK/output/
	newbin tiwlan_loader tiwlan_loader_wl1271
	newbin wlan_cu wlan_cu_wl1271
	cd ../../platforms/os/linux/
	insinto /lib/firmware/tiwlan-wl1271
	doins tiwlan.ini tiwlan_dual.ini

	
}