mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# Created by: Andrew Thompson <thompsa@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bwi-firmware
|
|
PORTVERSION= ${FWVERSION}
|
|
CATEGORIES= net kld
|
|
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
|
|
KMODDIR= /boot/modules
|
|
KMODNAME= ${FWNAME}_ucode
|
|
PLIST_SUB= KMODNAME="${KMODNAME}" \
|
|
KMODDIR="${KMODDIR}"
|
|
|
|
NO_PACKAGE= this is a modified version of a restricted firmware
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
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 <bsd.kmod.mk>" >> ${WRKSRC}/v3/Makefile
|
|
@cd ${WRKSRC}/v3; ${SETENV} KMODDIR="${KMODDIR}" make all
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/v3; ${SETENV} KMODDIR="${KMODDIR}" make install
|
|
|
|
.include <bsd.port.post.mk>
|