changeset 2931:5d8613134a64

bootroms: Build both ROM and ROMPak images Test of ROM image for replacing BASIC ROM: xroar -machine coco1 -extbas nos96809l1.rom Test of ROM image for external cartridge: xroar -machine coco1 -cart nos -cart-rom nos96809l1.rompak
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 18 Jan 2014 21:56:36 +0100
parents e93ace49362e
children 69c2fc49b5fb
files level1/coco1/bootroms/makefile level1/coco1/modules/makefile
diffstat 2 files changed, 22 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/level1/coco1/bootroms/makefile	Sat Jan 18 21:56:00 2014 +0100
+++ b/level1/coco1/bootroms/makefile	Sat Jan 18 21:56:36 2014 +0100
@@ -16,7 +16,15 @@
 		$(CMDS)/shell_21 \
 		$(MD)/clock_60hz $(MD)/clock2_soft
 
-BOOTROMS	= nos96809l1.rom
+BOOTFILE_ROMPAK	= $(MD)/rominfo_pak $(MD)/ioman \
+		$(MD)/scf.mn $(MD)/vtio.dr \
+		$(MD)/covdg.io \
+		$(MD)/term_vdg.dt \
+		$(MD)/sysgo_dd \
+		$(CMDS)/shell_21 \
+		$(MD)/clock_60hz $(MD)/clock2_soft
+
+BOOTROMS	= nos96809l1.rom nos96809l1.rompak
 KERNELS		= kernel_rom
 
 ALLROMS		= $(BOOTROMS)
@@ -33,6 +41,14 @@
 	$(MERGE) $@.tmp2 $(MD)/vectors>$@
 	$(RM) $@.tmp $@.tmp2
 	
+nos96809l1.rompak: $(BOOTFILE_ROMPAK) $(KERNEL_ROM) $(DEPENDS)
+	$(MERGE) $(BOOTFILE_ROMPAK)>$@.tmp
+	$(PADROM) 11776 $@.tmp
+	$(MERGE) $(KERNEL_ROM)>kernel_rom
+	$(PADROM) 4352 kernel_rom
+	$(MERGE) $@.tmp kernel_rom>$@
+	$(RM) $@.tmp
+	
 
 # Kernels
 kernel_rom: $(KERNEL_ROM) $(DEPENDS)
--- a/level1/coco1/modules/makefile	Sat Jan 18 21:56:00 2014 +0100
+++ b/level1/coco1/modules/makefile	Sat Jan 18 21:56:36 2014 +0100
@@ -26,7 +26,7 @@
 		boot_dw_arduino boot_dw_coco1
 BOOTTRACK	= rel $(BOOTERS)
 KERNEL		= krn krnp2 wbug
-SYSMODS		= ioman init sysgo_dd sysgo_h0 rominfo vectors
+SYSMODS		= ioman init sysgo_dd sysgo_h0 rominfo rominfo_pak vectors
 CLOCKS          = clock_60hz clock_50hz \
 		clock2_elim clock2_disto2 clock2_disto4 clock2_bnb \
                 clock2_smart clock2_harris clock2_cloud9 clock2_soft \
@@ -73,6 +73,10 @@
 	$(OS9COPY) kernel/$@ .
 
 # Special cases
+
+rominfo_pak: rominfo.asm
+	$(AS) $(ASOUT)$@ $< -DROMPak=1
+
 # TC^3 SCSI Booter
 boot_tc3: boot_scsi.asm
 	$(AS) $(ASOUT)$@ $< $(TC3FLAGS)