forked from freebsd/freebsd-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/malo-firmware-kmod: NEW PORT - Marvell Libertas 88W8335 firmware
Marvell Libertas 88W8335 firmware files are not free because Marvell refuses to grant distribution rights. As a result, we need to build the firmware using ports. This firmware files are comed from OpenBSD malo driver. WWW: http://www.nazgul.ch/malo/ PR: 193588 Submitted by: Juan Ramon Molina Menor <[email protected]>
- Loading branch information
1 parent
13888e3
commit 5b91a88
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Created by: cpm <[email protected]> | ||
# $FreeBSD$ | ||
|
||
PORTNAME= malo-firmware | ||
PORTVERSION= ${FWVERSION} | ||
CATEGORIES= net | ||
MASTER_SITES= http://fbsd.es/~cpm/freebsd/project/malo/ | ||
PKGNAMESUFFIX= -kmod | ||
DISTNAME= ${FWNAME} | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= Marvell Libertas 88W8335 IEEE 802.11b/g Firmware Kernel Module | ||
|
||
LICENSE= BSD3CLAUSE | ||
|
||
FWNAME= malo-fw-${FWVERSION} | ||
FWVERSION= 3.0.0.39 | ||
|
||
USES= kmod | ||
DRIVERNAME= malofw | ||
FIRMS= malo8335-h:malo8335-m | ||
WRKSRC= ${WRKDIR} | ||
KMODVERSION= ${FWVERSION:C/^(...)$/\1.0/:S/.//g} | ||
PLIST_SUB= DRIVERNAME="${DRIVERNAME}" \ | ||
KMODDIR="${KMODDIR}" | ||
CFLAGS+= -D_KERNEL | ||
|
||
NO_PACKAGE= This is a modified version of a restricted firmware | ||
|
||
.include <bsd.port.pre.mk> | ||
|
||
post-patch: | ||
${MKDIR} ${WRKSRC}/${DRIVERNAME} | ||
${MV} ${WRKSRC}/${FIRMS:C/:.*//} \ | ||
${WRKSRC}/${DRIVERNAME}/${FIRMS:C/:.*//} | ||
${MV} ${WRKSRC}/${FIRMS:C/.*://} \ | ||
${WRKSRC}/${DRIVERNAME}/${FIRMS:C/.*://} | ||
${ECHO_CMD} "KMOD= ${DRIVERNAME}" > ${WRKSRC}/${DRIVERNAME}/Makefile | ||
${ECHO_CMD} "FIRMWS= ${FIRMS:C/:.*//}:${FIRMS:C/:.*//}:${KMODVERSION} \\" >> \ | ||
${WRKSRC}/${DRIVERNAME}/Makefile | ||
${ECHO_CMD} " ${FIRMS:C/.*://}:${FIRMS:C/.*://}:${KMODVERSION}" >> \ | ||
${WRKSRC}/${DRIVERNAME}/Makefile | ||
${ECHO_CMD} ".include <bsd.kmod.mk>" >> \ | ||
${WRKSRC}/${DRIVERNAME}/Makefile | ||
|
||
do-build: | ||
(cd ${WRKSRC}/${DRIVERNAME} && \ | ||
${SETENV} KMODDIR="${KMODDIR}" ${MAKE_CMD} all) | ||
|
||
do-install: | ||
${MKDIR} ${STAGEDIR}${KMODDIR} | ||
cd ${WRKSRC}/${DRIVERNAME}; ${SETENV} KMODDIR="${STAGEDIR}${KMODDIR}" make ${INSTALL} | ||
${STRIP_CMD} --strip-unneeded ${STAGEDIR}${KMODDIR}/${DRIVERNAME}.ko | ||
|
||
.include <bsd.port.post.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SHA256 (malo-fw-3.0.0.39.tar.gz) = fdb70aa628250922bb3f2a912b5dc7c54304a8120cb72191b49f497b4653954a | ||
SIZE (malo-fw-3.0.0.39.tar.gz) = 31796 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Marvell Libertas 88W8335 firmware files are not free because Marvell | ||
refuses to grant distribution rights. As a result, we need to build the | ||
firmware using ports. | ||
|
||
This firmware files are comed from OpenBSD malo driver. | ||
|
||
WWW: http://www.nazgul.ch/malo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
%%KMODDIR%%/linker.hints | ||
%%KMODDIR%%/%%DRIVERNAME%%.ko |