summaryrefslogtreecommitdiff
path: root/simpad-utilities/genboot/simpad-make-flashimg
diff options
context:
space:
mode:
Diffstat (limited to 'simpad-utilities/genboot/simpad-make-flashimg')
-rw-r--r--simpad-utilities/genboot/simpad-make-flashimg19
1 files changed, 9 insertions, 10 deletions
diff --git a/simpad-utilities/genboot/simpad-make-flashimg b/simpad-utilities/genboot/simpad-make-flashimg
index 70818180db..95877f115f 100644
--- a/simpad-utilities/genboot/simpad-make-flashimg
+++ b/simpad-utilities/genboot/simpad-make-flashimg
@@ -9,7 +9,6 @@
GENBOOT=genboot
PAD=pad
KERNEL=$2
-OUTPUT_DIR=$3
doComplete()
{
@@ -29,8 +28,8 @@ doComplete()
loader_entry="0xc0208000"
echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >$OUTPUT_DIR/bheader
- cat $OUTPUT_DIR/bheader $outfile >$flashfile
+ $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >/tmp/bheader
+ cat /tmp/bheader $outfile >$flashfile
rm $outfile
rm $padfile
exit 0
@@ -50,8 +49,8 @@ doKernel()
loader_entry="0xc0208000"
echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >$OUTPUT_DIR/bheader
- cat $OUTPUT_DIR/bheader $outfile >$flashfile
+ $GENBOOT -d3 $loader_entry 1 $loader_start $filelen >/tmp/bheader
+ cat /tmp/bheader $outfile >$flashfile
rm $outfile
exit 0
}
@@ -70,20 +69,20 @@ doKernelInPlace()
loader_entry="0xc0080000"
echo "File: $flashfile Exec: $loader_entry $filelen "
- $GENBOOT $loader_entry 1 $loader_start $filelen >$OUTPUT_DIR/bheader
- cat $OUTPUT_DIR/bheader $outfile >$flashfile.inplace
+ $GENBOOT $loader_entry 1 $loader_start $filelen >/tmp/bheader
+ cat /tmp/bheader $outfile >$flashfile.inplace
rm $outfile
exit 0
}
-if [ $# -lt 3 ]
- then echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel> <output-dir>" && exit -1
+if [ $# -lt 2 ]
+ then echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel>" && exit -1
fi
case "$1" in
kernel) doKernel;;
complete) doComplete;;
inplace) doKernelInPlace;;
-*) echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel> <output-dir>"; exit;;
+*) echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] <kernel>"; exit;;
esac