]>
Commit | Line | Data |
---|---|---|
fdcfcd44 L |
1 | #WARNING! Do not run a 'make install' unless you know what you're doing. |
2 | ||
db568140 | 3 | INSTALLDISK=/dev/sdb |
fdcfcd44 L |
4 | |
5 | diskimage: cpm.bin cpmdsk/* | |
6 | mkfs.cpm -f avrcpm -b cpm.bin -L test diskimage | |
7 | cd cpmdsk; for x in *; do cpmcp -f avrcpm ../diskimage $$x 0:$$x; done; cd .. | |
8 | ||
9 | cpm.bin: ipl.bin bios.bin CPM.SYS | |
10 | dd conv=sync bs=128 count=1 if=ipl.bin > cpm.bin | |
11 | dd conv=sync bs=128 count=44 if=CPM.SYS >> cpm.bin | |
12 | dd conv=sync bs=128 count=6 if=bios.bin >> cpm.bin | |
13 | ||
14 | ipl.bin: ipl.asm | |
15 | z80asm ipl.asm -o ipl.bin -lipl.lst | |
16 | ||
17 | bios.bin: bios.asm | |
18 | z80asm bios.asm -o bios.bin -lbios.lst | |
19 | ||
20 | clean: | |
21 | rm -f bios.lst bios.bin | |
22 | rm -f ipl.lst ipl.bin | |
23 | rm -f cpm.bin diskimage | |
24 | ||
db568140 L |
25 | installcpm: cpm.bin dummy |
26 | sudo dd if=cpm.bin of=${INSTALLDISK} bs=128 conv=sync oflag=direct,sync | |
27 | sync | |
28 | sleep 1 | |
29 | sync | |
30 | ||
fdcfcd44 L |
31 | install: diskimage dummy |
32 | sudo dd if=diskimage of=${INSTALLDISK} conv=sync oflag=direct,sync | |
33 | sync | |
34 | cpmls -f avrcpm ${INSTALLDISK} | |
35 | sync | |
36 | sleep 1 | |
37 | sync | |
38 | ||
39 | ||
40 | dummy: |