From 0b3677b1cb0e03ee9a5d394b8b860d819126f4e8 Mon Sep 17 00:00:00 2001 From: Raúl Porcel Date: Fri, 24 Dec 2010 20:31:23 +0100 Subject: Reworked wireless driver ebuild, new kernel source --- .../tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild | 26 +++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'net-wireless/tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild') diff --git a/net-wireless/tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild b/net-wireless/tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild index 8251104..2e90a53 100644 --- a/net-wireless/tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild +++ b/net-wireless/tiwlan-wl1271/tiwlan-wl1271-0.24.9.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2010 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 +inherit eutils linux-mod MY_P="${PN}_${PV}" @@ -25,17 +25,30 @@ RDEPEND="net-wireless/tiwlan-wl1271-firmware" DEPEND="${RDEPEND}" +pkg_setup() { + linux-mod_pkg_setup + +} + src_prepare() { cd ${WORKDIR} epatch ${MY_P}*.diff cd "${S}" epatch "${S}"/debian/patches/*.patch + + cd wlan + cp wlan/Makefile . } src_compile() { -# cd "${S}" - make -j1 + cd wlan + # compile modules + emake -j1 KERNEL_HEADERS=${KV_DIR} || die + + # compile utils + cd CUDK + emake -j1 || die } src_install() { @@ -50,5 +63,8 @@ src_install() { insinto /lib/firmware/tiwlan-wl1271 doins tiwlan.ini tiwlan_dual.ini - + cd "${S}"/wlan + insinto /lib/modules/${KV_FULL}/kernel/drivers/net/wireless/tiwlan-wl1271 + doins sdio.ko tiwlan_drv.ko + } -- cgit v1.2.3-18-g5258