Mercurial > hg > Members > kono > nitros9-code
annotate level1/coco1/bootroms/makefile @ 2956:34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
The kernel is sitting in ROM but includes the boot_1773_6ms
module for loading the bootfile from a floppy.
For bootstrapping NitrOS-9 using the normal floppy disks (images),
without any disk BASIC installed. Can be useful for emulator
bundling and NitrOS-9 purists.
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Sat, 08 Feb 2014 02:12:11 +0100 |
parents | 5d8613134a64 |
children | b547712d6209 |
rev | line source |
---|---|
2826
e76cc015cc03
incorporated new port.mak file in every port directory
Boisy Pitre <boisy.pitre@nuance.com>
parents:
2691
diff
changeset
|
1 include ../port.mak |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
3 # Module directory |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
4 MD = ../modules |
2928
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
5 CMDS = ../cmds |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
6 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
7 DEPENDS = ./makefile |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
8 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
9 KERNEL_ROM = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
10 |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
11 KERNEL_ROM_1773 = $(MD)/rel $(MD)/krn $(MD)/krnp2 $(MD)/init $(MD)/boot_1773_6ms |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
12 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
13 BOOTFILE_ROM = $(MD)/rominfo $(MD)/ioman \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
14 $(MD)/scf.mn $(MD)/vtio.dr \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
15 $(MD)/covdg.io \ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
16 $(MD)/term_vdg.dt \ |
2928
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
17 $(MD)/sysgo_dd \ |
4ec45bc24278
coco1/bootroms: Add sysgo and shell_21 to bootfile
Tormod Volden <debian.tormod@gmail.com>
parents:
2847
diff
changeset
|
18 $(CMDS)/shell_21 \ |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
19 $(MD)/clock_60hz $(MD)/clock2_soft |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
20 |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
21 BOOTFILE_ROM_1773 = $(MD)/rominfo |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
22 |
2931
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
23 BOOTFILE_ROMPAK = $(MD)/rominfo_pak $(MD)/ioman \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
24 $(MD)/scf.mn $(MD)/vtio.dr \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
25 $(MD)/covdg.io \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
26 $(MD)/term_vdg.dt \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
27 $(MD)/sysgo_dd \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
28 $(CMDS)/shell_21 \ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
29 $(MD)/clock_60hz $(MD)/clock2_soft |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
30 |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
31 BOOTROMS = nos96809l1.rom nos96809l1.rompak nos96809l1_1773.rom |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
32 KERNELS = kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
33 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
34 ALLROMS = $(BOOTROMS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
35 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
36 all: $(ALLROMS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
37 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
38 # Bootfiles |
2956
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
39 # Kernel file in ROM (no BASIC needed), but boot file on floppy |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
40 nos96809l1_1773.rom: $(BOOTFILE_ROM_1773) $(KERNEL_ROM_1773) $(DEPENDS) |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
41 $(MERGE) $(BOOTFILE_ROM_1773)>$@.tmp |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
42 $(PADROM) 11776 $@.tmp |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
43 $(MERGE) $(KERNEL_ROM_1773)>kernel_rom |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
44 $(PADROM) 4592 kernel_rom |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
45 $(MERGE) $@.tmp kernel_rom>$@.tmp2 |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
46 $(MERGE) $@.tmp2 $(MD)/vectors>$@ |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
47 $(RM) $@.tmp $@.tmp2 |
34edacfd1142
bootroms: Add ROM kernel image for booting from floppy
Tormod Volden <debian.tormod@gmail.com>
parents:
2931
diff
changeset
|
48 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
49 nos96809l1.rom: $(BOOTFILE_ROM) $(KERNEL_ROM) $(DEPENDS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
50 $(MERGE) $(BOOTFILE_ROM)>$@.tmp |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
51 $(PADROM) 11776 $@.tmp |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
52 $(MERGE) $(KERNEL_ROM)>kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
53 $(PADROM) 4592 kernel_rom |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
54 $(MERGE) $@.tmp kernel_rom>$@.tmp2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
55 $(MERGE) $@.tmp2 $(MD)/vectors>$@ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
56 $(RM) $@.tmp $@.tmp2 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
57 |
2931
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
58 nos96809l1.rompak: $(BOOTFILE_ROMPAK) $(KERNEL_ROM) $(DEPENDS) |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
59 $(MERGE) $(BOOTFILE_ROMPAK)>$@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
60 $(PADROM) 11776 $@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
61 $(MERGE) $(KERNEL_ROM)>kernel_rom |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
62 $(PADROM) 4352 kernel_rom |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
63 $(MERGE) $@.tmp kernel_rom>$@ |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
64 $(RM) $@.tmp |
5d8613134a64
bootroms: Build both ROM and ROMPak images
Tormod Volden <debian.tormod@gmail.com>
parents:
2928
diff
changeset
|
65 |
2690
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
66 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
67 # Kernels |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
68 kernel_rom: $(KERNEL_ROM) $(DEPENDS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
69 $(MERGE) $(KERNEL_ROM)>$@ |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
70 |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
71 clean: |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
72 $(RM) $(ALLROMS) $(KERNELS) |
6e40b043d3e0
Removed coco port, added coco1 and coco2 ports.
Boisy Pitre <boisy.pitre@nuance.com>
parents:
diff
changeset
|
73 |