diff options
author | imp <imp@FreeBSD.org> | 2009-05-10 05:41:50 +0800 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-05-10 05:41:50 +0800 |
commit | a32d2c6e5fa0034a742f123985f0fcb2b9914c00 (patch) | |
tree | 36e9b998aa83072cbebf54663df669a0dc9db67e /net/bwi-firmware-kmod | |
parent | 0c3899f60a67c51b800507a7cbebbd94760148d6 (diff) | |
download | freebsd-ports-gnome-a32d2c6e5fa0034a742f123985f0fcb2b9914c00.tar.gz freebsd-ports-gnome-a32d2c6e5fa0034a742f123985f0fcb2b9914c00.tar.zst freebsd-ports-gnome-a32d2c6e5fa0034a742f123985f0fcb2b9914c00.zip |
Firmware port for bwi driver.
Diffstat (limited to 'net/bwi-firmware-kmod')
-rw-r--r-- | net/bwi-firmware-kmod/Makefile | 56 | ||||
-rw-r--r-- | net/bwi-firmware-kmod/distinfo | 6 | ||||
-rw-r--r-- | net/bwi-firmware-kmod/pkg-descr | 1 | ||||
-rw-r--r-- | net/bwi-firmware-kmod/pkg-plist | 2 |
4 files changed, 65 insertions, 0 deletions
diff --git a/net/bwi-firmware-kmod/Makefile b/net/bwi-firmware-kmod/Makefile new file mode 100644 index 000000000000..36cebfa46bf1 --- /dev/null +++ b/net/bwi-firmware-kmod/Makefile @@ -0,0 +1,56 @@ +# New ports collection makefile for: bwi-firmware-kmod +# Date created: May 01 2009 +# Whom: Andrew Thompson <thompsa@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= bwi-firmware +PORTVERSION= ${FWVERSION} +CATEGORIES= net kld +MASTER_SITES= http://downloads.openwrt.org/sources/ \ + http://people.freebsd.org/~thompsa/:fwcutter +PKGNAMESUFFIX= -kmod +DISTFILES= ${FWFILE} b43-fwcutter-freebsd.tar.bz2:fwcutter +EXTRACT_ONLY= b43-fwcutter-freebsd.tar.bz2 + +MAINTAINER= ports@FreeBSD.org +COMMENT= Broadcom AirForce IEEE 802.11 Firmware Kernel Module + +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 + +.include <bsd.port.pre.mk> + +do-build: + cd ${WRKSRC} && \ + ${CC} ${CFLAGS} -DFWCUTTER_VERSION_=008 -c fwcutter.c && \ + ${CC} ${CFLAGS} -DFWCUTTER_VERSION_=008 -c md5.c && \ + ${CC} ${CFLAGS} -o b43-fwcutter fwcutter.o md5.o + ${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> diff --git a/net/bwi-firmware-kmod/distinfo b/net/bwi-firmware-kmod/distinfo new file mode 100644 index 000000000000..0f51cb7c6724 --- /dev/null +++ b/net/bwi-firmware-kmod/distinfo @@ -0,0 +1,6 @@ +MD5 (wl_apsta-3.130.20.0.o) = e08665c5c5b66beb9c3b2dd54aa80cb3 +SHA256 (wl_apsta-3.130.20.0.o) = 7dba610b1d96dd14e901bcbce14cd6ecd1b1ac6f5c0035b0d6b6dc46a7c3ef90 +SIZE (wl_apsta-3.130.20.0.o) = 652866 +MD5 (b43-fwcutter-freebsd.tar.bz2) = 598212acb56c68bdfe48b88f6268de63 +SHA256 (b43-fwcutter-freebsd.tar.bz2) = 1757a98c2d94528c30bc94b9fb97c040f4b294dd6c669a04e7e53771cef9858d +SIZE (b43-fwcutter-freebsd.tar.bz2) = 16536 diff --git a/net/bwi-firmware-kmod/pkg-descr b/net/bwi-firmware-kmod/pkg-descr new file mode 100644 index 000000000000..812c7ad5607b --- /dev/null +++ b/net/bwi-firmware-kmod/pkg-descr @@ -0,0 +1 @@ +Firmware kernel module for bwi(4) diff --git a/net/bwi-firmware-kmod/pkg-plist b/net/bwi-firmware-kmod/pkg-plist new file mode 100644 index 000000000000..9a46a1f98369 --- /dev/null +++ b/net/bwi-firmware-kmod/pkg-plist @@ -0,0 +1,2 @@ +@cwd %%KMODDIR%% +%%KMODNAME%%.ko |