# Created by: Andrew Thompson # $FreeBSD$ PORTNAME= bwi-firmware PORTVERSION= ${FWVERSION} CATEGORIES= net MASTER_SITES= http://downloads.openwrt.org/sources/ \ http://mirror2.openwrt.org/sources/ PKGNAMESUFFIX= -kmod DISTFILES= ${FWFILE} EXTRACT_ONLY= MAINTAINER= swhetzel@gmail.com COMMENT= Broadcom AirForce IEEE 802.11 Firmware Kernel Module BUILD_DEPENDS= b43-fwcutter:${PORTSDIR}/sysutils/b43-fwcutter FIRMWARES= ucode ucode11 ucode2 ucode4 ucode5 \ a0g0bsinitvals2 a0g0bsinitvals5 a0g0initvals2 \ a0g0initvals5 a0g1bsinitvals5 a0g1initvals5 \ b0g0bsinitvals2 b0g0bsinitvals5 b0g0initvals2 b0g0initvals5 \ pcm4 pcm5 WRKSRC= ${WRKDIR} FWNAME= bwi_v3 FWFILE= wl_apsta-${FWVERSION}.0.o FWVERSION= 3.130.20 KMODNAME= ${FWNAME}_ucode PLIST_SUB= KMODNAME="${KMODNAME}" NO_PACKAGE= this is a modified version of a restricted firmware NO_STAGE= yes USES= kmod .include do-build: cd ${WRKSRC} && \ b43-fwcutter -w ${WRKSRC} ${DISTDIR}/${FWFILE} ${TOUCH} ${WRKSRC}/v3/ucode.fw @${ECHO_CMD} "KMOD= ${KMODNAME}" > ${WRKSRC}/v3/Makefile @${ECHO_CMD} "FIRMWS= ${FIRMWARES:C/.*/&.fw:${FWNAME}_&/}" >> \ ${WRKSRC}/v3/Makefile @${ECHO_CMD} ".include " >> ${WRKSRC}/v3/Makefile @cd ${WRKSRC}/v3; ${SETENV} KMODDIR="${KMODDIR}" make all do-install: @cd ${WRKSRC}/v3; ${SETENV} KMODDIR="${KMODDIR}" make install .include