Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 16:00:12 +0100
From:      Bruce M Simpson <bms@incunabulum.net>
To:        freebsd-mips@freebsd.org
Subject:   [PATCH] build trx firmware tool on FreeBSD
Message-ID:  <465EE2FC.7030900@incunabulum.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------060305010900050006080406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

As requested, here is a patch to build the TRX firmware wrapping tool 
(for Broadcom 47xx based devices such as the Linksys WRT) on FreeBSD.


--------------060305010900050006080406
Content-Type: text/x-patch;
 name="trx-bsd.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="trx-bsd.diff"

--- trx.c.orig	Sat Feb 11 06:04:31 2006
+++ trx.c	Sat Feb 11 06:06:12 2006
@@ -44,6 +44,11 @@
 #include <string.h>
 #include <errno.h>
 #include <unistd.h>
+
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#define STORE32_LE(X)	htole32(X)
+#else
 #include <endian.h>
 #include <byteswap.h>
 
@@ -53,6 +58,7 @@
 #define STORE32_LE(X)		(X)
 #else
 #error unkown endianness!
+#endif
 #endif
 
 uint32_t crc32buf(char *buf, size_t len);

--------------060305010900050006080406--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465EE2FC.7030900>