summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-08-30 20:20:52 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-08-30 20:20:52 +0000
commite4e4219302bf5ea6f068c85ae5a8ff51b975d9f1 (patch)
treeeb3aa3f774bf59c4fbe297f7eb2c904286ec3f65
parent4063e47f0342c048800f8055b7ed73a7c12f5e34 (diff)
downloadrockbox-e4e4219302bf5ea6f068c85ae5a8ff51b975d9f1.tar.gz
rockbox-e4e4219302bf5ea6f068c85ae5a8ff51b975d9f1.zip
Even when we don't encrypt a mi4 we still need to run the encrypt step so that the crc gets updated.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10812 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/mkmi4.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/mkmi4.sh b/tools/mkmi4.sh
index 75046654e3..068d7e0628 100755
--- a/tools/mkmi4.sh
+++ b/tools/mkmi4.sh
@@ -48,7 +48,7 @@ findtool(){
48} 48}
49 49
50help () { 50help () {
51 echo "Usage: mi4fix.sh <e200/h10/h10_5gb> <input> <output>" 51 echo "Usage: mi4fix.sh <e200/h10/h10_5gb/elio> <input> <output>"
52 exit 52 exit
53} 53}
54 54
@@ -75,6 +75,9 @@ case $target in
75 h10_5gb) 75 h10_5gb)
76 buildopt="-2" 76 buildopt="-2"
77 ;; 77 ;;
78 elio)
79 buildopt="-2"
80 ;;
78 *) 81 *)
79 echo "unsupported target" 82 echo "unsupported target"
80 help 83 help
@@ -108,7 +111,8 @@ if test -n "$encrypt"; then
108 #echo "$tool encrypt $output.raw $output.encrypt $tea" 111 #echo "$tool encrypt $output.raw $output.encrypt $tea"
109 $tool encrypt $output.raw $output.encrypt $tea 112 $tool encrypt $output.raw $output.encrypt $tea
110else 113else
111 mv $output.raw $output.encrypt 114 # Even if we don't encrypt we need to do this to ensure the crc gets fixed
115 $tool encrypt -pall $output.raw $output.encrypt default
112fi 116fi
113# sign 117# sign
114if test -n "$sign"; then 118if test -n "$sign"; then