Skip to content

Commit

Permalink
net/malo-firmware-kmod: NEW PORT - Marvell Libertas 88W8335 firmware
Browse files Browse the repository at this point in the history
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
bartekrutkowski committed Nov 27, 2014
1 parent 13888e3 commit 5b91a88
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions LEGAL
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ l_fc_p*_*.*.*.tar.gz lang/ifc Intel forbids any redistribution
macopix-*.tar.gz games/macopix Contains commercial character data
madfufw-* audio/madfufw No redistribution of firmware files
majesty_demo* games/linux-majesty-demo Redistribution is limited, see license
malo-fw-*.tar.gz net/malo-firmware-kmod Marvell refuses to grant distribution rights
mb339pan_* games/flightgear-mb339-pan Redistribution prohibited
mikachan-ttfonts/ver*.* japanese/mikachan-ttfonts Do not sell distfile
mindfocus-* games/mindfocus Contains commercial character data
Expand Down
1 change: 1 addition & 0 deletions net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@
SUBDIR += mDNSResponder
SUBDIR += macchanger
SUBDIR += mad_fcl
SUBDIR += malo-firmware-kmod
SUBDIR += mcast-tools
SUBDIR += mediastreamer
SUBDIR += mediatomb
Expand Down
55 changes: 55 additions & 0 deletions net/malo-firmware-kmod/Makefile
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>
2 changes: 2 additions & 0 deletions net/malo-firmware-kmod/distinfo
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
7 changes: 7 additions & 0 deletions net/malo-firmware-kmod/pkg-descr
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/
2 changes: 2 additions & 0 deletions net/malo-firmware-kmod/pkg-plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%%KMODDIR%%/linker.hints
%%KMODDIR%%/%%DRIVERNAME%%.ko

0 comments on commit 5b91a88

Please sign in to comment.