summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorproski <proski>2006-07-26 07:20:08 +0000
committerproski <proski>2006-07-26 07:20:08 +0000
commitfb5b6148055a4a7abfb8f3fd300d4c8371a56afc (patch)
tree9e230dd55b7f1a46db8d604ac78e903d4103ec2e
parent27933fe997d9e03c35e07fc8e3b6a2a0a305fdfa (diff)
Use COPYRIGHT file, not the obsolete restrictive license
Drop "comment" argument, it's hardly useful. Maybe it could be extracted from the firmware itself.
-rwxr-xr-xfwutils/fwbin2pkg.sh44
1 files changed, 10 insertions, 34 deletions
diff --git a/fwutils/fwbin2pkg.sh b/fwutils/fwbin2pkg.sh
index 9115ab9..95f5a05 100755
--- a/fwutils/fwbin2pkg.sh
+++ b/fwutils/fwbin2pkg.sh
@@ -1,45 +1,21 @@
#!/bin/bash
+
# script to convert a binary fw package (output from gen_fw)
# into a .h file for static inclusion
-# call fwbin2h.sh "comment" input_file output_file
+# call fwbin2h.sh input_file output_file
-if [ $# -ne 3 ]; then
- echo "#ERR to convert a binary fw file into a .h file"
- echo "#ERR call $0 "comment" input_file output_file"
+if [ $# -ne 2 ]; then
+ echo "Convert a binary firmware file into a .h file"
+ echo "Usage: $0 input_file output_file"
exit 1
fi
-DEBUG=1
-
-COMMENT=$1
-INF=$2
-OUTF=$3
-
-[ $DEBUG -eq 1 ] && echo "#DBG comment $COMMENT, converting $INF into $OUTF"
+INF=$1
+OUTF=$2
-echo "/* $COMMENT */" > $OUTF
-echo '/**************************************************************************/' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/* Copyright (c) 1999-2000 by Atmel Corporation */' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/* This software is copyrighted by and is the sole property of Atmel */' >> $OUTF
-echo '/* Corporation. All rights, title, ownership, or other interests */' >> $OUTF
-echo '/* in the software remain the property of Atmel Corporation. This */' >> $OUTF
-echo '/* software may only be used in accordance with the corresponding */' >> $OUTF
-echo '/* license agreement. Any un-authorized use, duplication, transmission, */' >> $OUTF
-echo '/* distribution, or disclosure of this software is expressly forbidden. */' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/* This Copyright notice may not be removed or modified without prior */' >> $OUTF
-echo '/* written consent of Atmel Corporation. */' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/* Atmel Corporation, Inc. reserves the right to modify this software */' >> $OUTF
-echo '/* without notice. */' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/* Atmel Corporation. */' >> $OUTF
-echo '/* 2325 Orchard Parkway literature@atmel.com */' >> $OUTF
-echo '/* San Jose, CA 95131 http://www.atmel.com */' >> $OUTF
-echo '/* */' >> $OUTF
-echo '/**************************************************************************/' >> $OUTF
+echo '/*' > $OUTF
+sed 's/^/ * /' COPYRIGHT >> $OUTF
+echo ' */' >> $OUTF
echo '' >> $OUTF
echo 'static u8 fw_bin[] = {' >> $OUTF