Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2011 16:34:30 -0500
From:      grarpamp <grarpamp@gmail.com>
To:        swhetzel@gmail.com
Cc:        freebsd-net@freebsd.org, freebsd-ports@freebsd.org
Subject:   b43-fwcutter port update to v13 [patch]
Message-ID:  <AANLkTinyvrE9vyLZzqZzjnDZjn12KXCox%2BtDrzd3Mh%2B9@mail.gmail.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
I diffed the source of b43-fwcutter, v12 to v13.
And also between v12 + fbsd port patches and v13 native.
It all looks clean, both compile, and v13 produces digest identical
output files to v12 + fbsd port when used as in the bwi and bwn
kmod ports.

The current fwcutter port can thus be bumped to v13.
Update Makefile, distinfo, pkg-descr, distfiles, etc.
Replace the entire patch set with these new native patches.
Update the requires for the bw{i,n}-firmware-kmod ports.

Can someone check and commit all this?

I bcc'd the fwcutter author for inclusion of the patch in the next
release.

[-- Attachment #2 --]
--- Makefile.orig	2010-04-19 11:51:05.000000000 -0400
+++ Makefile
@@ -12,7 +12,7 @@
 ifeq ($(C),1)
 QUIET_SPARSE	= $(Q:@=@echo '     SPARSE   '$@;)$(SPARSE)
 else
-QUIET_SPARSE	= @/bin/true
+QUIET_SPARSE	= @true
 endif
 
 PREFIX ?= /usr/local
--- fwcutter.c.orig	2010-04-19 11:51:05.000000000 -0400
+++ fwcutter.c
@@ -38,7 +38,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
 #include <sys/endian.h>
 #else
 #include <byteswap.h>
@@ -48,7 +48,7 @@
 #include "fwcutter.h"
 #include "fwcutter_list.h"
 
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
 #define V3_FW_DIRNAME	"v3"
 #define V4_FW_DIRNAME	"v4"
 #else
--- fwcutter.h.orig	2010-04-19 11:51:05.000000000 -0400
+++ fwcutter.h
@@ -15,7 +15,7 @@
 typedef uint16_t be16_t; /* Big-endian 16bit */
 typedef uint32_t be32_t; /* Big-endian 32bit */
 
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__FreeBSD__)
 #define bswap_16	bswap16
 #define bswap_32	bswap32
 #endif

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinyvrE9vyLZzqZzjnDZjn12KXCox%2BtDrzd3Mh%2B9>