summaryrefslogtreecommitdiff
path: root/simpad-utilities/genboot
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-09 18:02:42 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-09 18:02:42 +0000
commit5f7018320fda8bfd7bd6bb0e9bceab3b0cd9faae (patch)
tree4795e47342338722121d61846dc1eb020a463f61 /simpad-utilities/genboot
parent363a641ab0cefeef57aba1cf3a19fad6bf83923d (diff)
- catch up with new attribute scoping in kernel .oe files
- add 2.4.21-rmk2-jpm0 to the pile of SIMpad kernels BKrev: 4076e542v2Lxv8uUTBvQahQfK_saNQ
Diffstat (limited to 'simpad-utilities/genboot')
-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