2013-09-21 00:10:23 +02:00
|
|
|
# Created by: Andrew Thompson <thompsa@FreeBSD.org>
|
2009-05-09 23:41:50 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= bwi-firmware
|
|
|
|
PORTVERSION= ${FWVERSION}
|
2013-11-09 20:13:27 +01:00
|
|
|
CATEGORIES= net
|
2009-05-09 23:41:50 +02:00
|
|
|
MASTER_SITES= http://downloads.openwrt.org/sources/ \
|
2009-05-16 02:04:10 +02:00
|
|
|
http://mirror2.openwrt.org/sources/
|
2009-05-09 23:41:50 +02:00
|
|
|
PKGNAMESUFFIX= -kmod
|
2009-05-16 02:04:10 +02:00
|
|
|
DISTFILES= ${FWFILE}
|
2015-10-08 17:12:22 +02:00
|
|
|
EXTRACT_ONLY=
|
2009-05-09 23:41:50 +02:00
|
|
|
|
2009-05-13 21:26:59 +02:00
|
|
|
MAINTAINER= swhetzel@gmail.com
|
2009-05-09 23:41:50 +02:00
|
|
|
COMMENT= Broadcom AirForce IEEE 802.11 Firmware Kernel Module
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
BUILD_DEPENDS= b43-fwcutter:sysutils/b43-fwcutter
|
2009-05-16 02:04:10 +02:00
|
|
|
|
2009-05-09 23:41:50 +02:00
|
|
|
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
|
2013-11-09 20:13:27 +01:00
|
|
|
PLIST_SUB= KMODNAME="${KMODNAME}"
|
2009-05-09 23:41:50 +02:00
|
|
|
|
|
|
|
NO_PACKAGE= this is a modified version of a restricted firmware
|
|
|
|
|
2014-01-26 23:00:23 +01:00
|
|
|
USES= kmod uidfix
|
2009-05-09 23:41:50 +02:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && \
|
2009-05-16 02:04:10 +02:00
|
|
|
b43-fwcutter -w ${WRKSRC} ${DISTDIR}/${FWFILE}
|
2009-05-09 23:41:50 +02:00
|
|
|
${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 <bsd.kmod.mk>" >> ${WRKSRC}/v3/Makefile
|
2014-01-26 22:27:11 +01:00
|
|
|
@cd ${WRKSRC}/v3; make all
|
2009-05-09 23:41:50 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-01-26 23:00:23 +01:00
|
|
|
@cd ${WRKSRC}/v3; ${SETENV} ${MAKE_ENV} KMODDIR="${STAGEDIR}${KMODDIR}" make install
|
2009-05-09 23:41:50 +02:00
|
|
|
|
2014-01-26 22:27:11 +01:00
|
|
|
.include <bsd.port.mk>
|