Mercurial > hg > Members > kono > nitros9-code
comparison scripts/bundi @ 1771:7f2e75d5b62d
build improvements
author | boisy |
---|---|
date | Fri, 01 Apr 2005 21:19:32 +0000 |
parents | fd154c8337f3 |
children | c37b7bb2b116 |
comparison
equal
deleted
inserted
replaced
1770:fd154c8337f3 | 1771:7f2e75d5b62d |
---|---|
1 #!/bin/tcsh -x | 1 #!/bin/tcsh -x |
2 # | 2 # |
3 # BUNDI - Build the Ultimate NitrOS-9 Disk Image | 3 # BUNDI - Build the Ultimate NitrOS-9 Disk Image |
4 # | 4 # |
5 alias calc 'awk "BEGIN{print \!* }" ' | |
6 # | 5 # |
7 # This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image | 6 # This script builds the ULTIMATE NitrOS-9/6309 Level 2 disk image |
8 # complete with HDB-DOS drives! | 7 # complete with HDB-DOS drives! |
9 # | 8 # |
10 # The resulting image has a NitrOS-9 partition and an HDB-DOS partition. | 9 # The resulting image has a NitrOS-9 partition and an HDB-DOS partition. |
19 # ATTENTION! Set the number of HDB-DOS virtual disks (must be in decimal) | 18 # ATTENTION! Set the number of HDB-DOS virtual disks (must be in decimal) |
20 set num_hdbdos_disks=128 | 19 set num_hdbdos_disks=128 |
21 | 20 |
22 | 21 |
23 set diskname=ultimate.dsk | 22 set diskname=ultimate.dsk |
24 set os9_sectors=`calc $hdbdos_offset*2` | 23 set multiplier=2 |
24 @ os9_sectors = $hdbdos_offset * $multiplier | |
25 echo $os9_sectors | 25 echo $os9_sectors |
26 @ hdb_drives = $num_hdbdos_disks - 2 | |
26 | 27 |
27 ########## PART I ########## | 28 ########## PART I ########## |
28 # # | 29 # # |
29 # Assemble EVERYTHING! # | 30 # Assemble EVERYTHING! # |
30 # # | 31 # # |
34 | 35 |
35 # Step 2 - Make the HDB-DOS product | 36 # Step 2 - Make the HDB-DOS product |
36 pushd $CLOUD9DIR/Products/HDB-DOS/Software | 37 pushd $CLOUD9DIR/Products/HDB-DOS/Software |
37 make dsk | 38 make dsk |
38 popd | 39 popd |
39 cp $NITROS9DIR/6309l2/bootfiles/bootfile_cust . | |
40 cp $NITROS9DIR/6309l2/bootfiles/kernel_ide . | |
41 | 40 |
42 ########## PART II ########## | 41 ########## PART II ########## |
43 # # | 42 # # |
44 # Prepare the Disk Image # | 43 # Prepare the Disk Image # |
45 # # | 44 # # |
46 ############################# | 45 ############################# |
47 # Step 1 - Prepare the disk image | 46 # Step 1 - Prepare the disk image |
48 os9 format -qe -l$os9_sectors uucp.dsk | 47 os9 format -qe -l$os9_sectors tmp.dsk |
49 ./makeboot | 48 ./makeboot |
50 os9 gen -b=bootfile -t=boottrack uucp.dsk | 49 os9 dsave -e $NITROS9DIR/6309l2/latest_80d.dsk, tmp.dsk, |
50 os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, tmp.dsk, | |
51 os9 format -qe -ss -dd boot.dsk | |
52 os9 gen -b=bootfile -t=boottrack boot.dsk | |
51 rm bootfile boottrack | 53 rm bootfile boottrack |
52 os9 dsave -e $NITROS9DIR/6309l2/nos96309l2_80d.dsk, uucp.dsk, | 54 decb dskini -h$hdb_drives hdbdrives.dsk |
53 os9 dsave -e $NITROS9DIR/3rdparty/packages/uucpbb/uucpbb21_6309.dsk, uucp.dsk, | |
54 os9 format -qe -ss -dd boot.dsk | |
55 os9 gen -b=bootfile_cust -t=kernel_ide boot.dsk | |
56 decb dskini -h`calc $num_hdbdos_disks-2` hdbdrives.dsk | |
57 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk | 55 cat $CLOUD9DIR/Products/HDB-DOS/Software/hdbdos.dsk hdbdrives.dsk boot.dsk>hdbdrives2.dsk |
58 rm hdbdrives.dsk boot.dsk | 56 rm hdbdrives.dsk boot.dsk |
59 decb hdbconv hdbdrives2.dsk hdbdrives.dsk | 57 decb hdbconv hdbdrives2.dsk hdbdrives.dsk |
60 rm hdbdrives2.dsk | 58 rm hdbdrives2.dsk |
61 cat uucp.dsk hdbdrives.dsk>$diskname | 59 cat tmp.dsk hdbdrives.dsk>$diskname |
62 rm uucp.dsk hdbdrives.dsk | 60 rm tmp.dsk hdbdrives.dsk |