Changeset 4421
- Timestamp:
- 05/09/08 17:00:39 (5 years ago)
- File:
-
- 1 edited
-
trunk/src/host/devirginator/mknor (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/host/devirginator/mknor
r4231 r4421 45 45 usage() 46 46 { 47 echo "usage: $0 [-o outfile ] u-boot" 1>&2 47 cat <<EOF 1<&2 48 usage: $0 [-o outfile] [-s splash_image] [-D define ...] u-boot 49 50 -o outfile write NOR image to specified file. Default: nor.bin 51 -s splash_image use the specified splash image. Default: tmp/System_boot.png 52 -D define pass definition to envedit 53 EOF 48 54 exit 1 49 55 } … … 51 57 52 58 out=nor.bin 53 if [ "$1" = -o ]; then 54 [ ! -z "$2" ] || usage 55 out="$2" 56 shift 2 57 fi 59 splash=tmp/System_boot.png 60 defines= 61 62 while [ ! -z "$*" ]; do 63 case "$1" in 64 -o) shift 65 [ ! -z "$1" ] || usage 66 out="$1";; 67 -s) shift 68 [ ! -z "$1" ] || usage 69 splash="$1";; 70 -D) shift 71 [ ! -z "$1" ] || usage 72 defines="$defines -D $1";; 73 -*) usage;; 74 *) break;; 75 esac 76 shift 77 done 78 58 79 [ ! -z "$1" -a -z "$2" ] || usage 59 80 uboot="$1" … … 67 88 EOF 68 89 69 pngtopnm tmp/System_boot.png|90 pngtopnm "$splash" | 70 91 pamcut 0 145 480 240 | 71 92 ../splash/splashimg.pl -pnm - | 72 93 gzip -9 >_splash 73 94 74 ./envedit.pl -D GTA02 -D NOR_ENV -f environment.in -o _env95 ./envedit.pl -D GTA02 -D NOR_ENV $defines -f environment.in -o _env 75 96 76 97 ./blink.pl \
Note: See TracChangeset
for help on using the changeset viewer.
