DESCRIPTION = "Linux driver for 802.11a/b/g universal NIC cards using Atheros chip sets. New HAL and patches from NBD not open to public, patches only for this SVN version" SECTION = "base" PRIORITY = "optional" MAINTAINER = "Bruno Randolf , Sven-Ola Tuecke , Felix " LICENSE = "GPL" CONFLICTS = "madwifi-modules madwifi-modules-kamikaze madwifi-modules-fon" RDEPENDS = "kernel (${KERNEL_VERSION}) wireless-tools (>= 27)" DEPENDS = "virtual/kernel" CVSDATE = "20060829" PR = "r4" DEFAULT_PREFERENCE = "-1" # Sven-Ola: Added files from http://www.mattb.net.nz/patches/madwifi/ SRC_URI = "svn://svn.madwifi.org/;module=trunk;proto=http \ file://100-kernel_cflags.patch;patch=1 \ file://102-multicall_binary.patch;patch=1 \ file://103-disable_rfkill.patch;patch=1 \ file://104-apmode_by_default.patch;patch=1 \ file://300-napi_polling.patch;patch=1 \ file://301-no_rate_debug.patch;patch=1 \ file://303-xr_fixes.patch;patch=1 \ file://304-soc_support.patch;patch=1 \ file://305-pureg_fix.patch;patch=1 \ file://400-new_hal.patch;patch=1 \ file://401-new_hal-fixkernel26compile.patch;patch=1" S = "${WORKDIR}/trunk" inherit module-base EXTRA_OEMAKE_mtx-1 = " TARGET=mipsisa32-le-elf KERNELPATH=${STAGING_KERNEL_DIR} KERNELRELEASE=${KERNEL_VERSION} TOOLPREFIX=${TARGET_PREFIX} \ COPTS='-G 0 -mno-abicalls -fno-pic -Wa,--trap -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls -DATH_PCI -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1'" do_compile() { oe_runmake # ATH_RATE=ath_rate/amrr cd tools; oe_runmake } do_install() { oe_runmake DESTDIR=${D} BINDIR=${sbindir} install # ATH_RATE=ath_rate/amrr install -d ${D}${sbindir} } do_stage() { # hostapd and wpa_supplicant need these files install -d ${STAGING_INCDIR}/madwifi/net80211/ ${STAGING_INCDIR}/madwifi/include install -m 0644 net80211/*.h ${STAGING_INCDIR}/madwifi/net80211/ install -m 0644 include/compat.h ${STAGING_INCDIR}/madwifi/include/ } pkg_postinst() { #!/bin/sh if test "x$D" != "x"; then exit 1 else depmod -ae fi } PACKAGES = "${PN}" FILES_${PN} = "/lib/modules/"