From 5f7018320fda8bfd7bd6bb0e9bceab3b0cd9faae Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 9 Apr 2004 18:02:42 +0000 Subject: - 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 --- simpad-utilities/genboot/simpad-make-flashimg | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'simpad-utilities/genboot') 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] " && exit -1 +if [ $# -lt 2 ] + then echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] " && exit -1 fi case "$1" in kernel) doKernel;; complete) doComplete;; inplace) doKernelInPlace;; -*) echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] "; exit;; +*) echo "Usage: ./simpad-make-flashimg [kernel|complete|inplace] "; exit;; esac -- cgit v1.2.3