aboutsummaryrefslogtreecommitdiff
path: root/fwutils
diff options
context:
space:
mode:
authorproski <proski>2006-07-26 07:10:33 +0000
committerproski <proski>2006-07-26 07:10:33 +0000
commit27933fe997d9e03c35e07fc8e3b6a2a0a305fdfa (patch)
treedfa3ed7d3543b0620321167b68321e3202358dda /fwutils
parenta525603ae5f32b759e89e0051c377613eb4e6584 (diff)
This script is useless now, remove it
Diffstat (limited to 'fwutils')
-rwxr-xr-xfwutils/fwconvert51
1 files changed, 0 insertions, 51 deletions
diff --git a/fwutils/fwconvert b/fwutils/fwconvert
deleted file mode 100755
index fb24e54..0000000
--- a/fwutils/fwconvert
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-#
-# fwconvert <fwid> <internal.h> <external.h>
-#
-# Convert firmware from the form used in the Atmel driver source to the form
-# used for our driver.
-#
-# <fwid> - The unique ID string used in the appropriate #defines (i.e.
-# "RFMD" or "I3861")
-# <internal.h> - The atmelwlandriver-style header file containing the
-# internal firmware
-# <external.h> - The atmelwlandriver-style header file containing the
-# external firmware
-#
-# The initial comments (copyright messages, etc) from the beginning of the
-# internal .h file are preserved at the beginning of the converted output.
-#
-# The resulting converted .h file is sent to standard output.
-
-fwid="$1"
-intfile="$2"
-extfile="$3"
-
-cat <<EOF
-/****************************************************************************
- * The following firmware has been taken (and reformatted slightly) from *
- * the Atmel (atmelwlandriver) driver source. *
- * *
- * Target: *
- * Version: *
- ****************************************************************************/
-
-EOF
-
-awk '/{/ { nextfile } ! /^$/ { print }' < "$intfile"
-
-echo ""
-echo "#define FW_${fwid}_INTERNAL { \\"
-
-awk '/{/ { p=1; sub(".*{",""); } p { gsub("[[:blank:]};]*",""); printf "%s", $0; }' < "$intfile" | \
- sed -e 's/\([^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,\)/\1 \\|/g' | \
- tr '|' '\n'
-echo "}"
-
-echo ""
-echo "#define FW_${fwid}_EXTERNAL { \\"
-awk '/{/ { p=1; sub(".*{",""); } p { gsub("[[:blank:]};]*",""); printf "%s", $0; }' < "$extfile" | \
- sed -e 's/\([^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,[^,]*,\)/\1 \\|/g' | \
- tr '|' '\n'
-echo "}"
-