Mercurial > hg > Members > kono > nitros9-code
diff level2/coco3fpga/makefile @ 3151:d5c884d63e53
coco3fpga: Build boot files and disk images with RAM disk and RTC support
Amend "coco3/bootfiles/makefile" to make bootfiles including
"ramd_coco3fpga.dr", "r0_ramd_coco3fpga.dd", & "clock2_coco3fpga"
Added two new disks to the "coco3fpga/makefile" disk definitions for
bootdisks supporting the Coco3FPGA ramdisk and RTC.
author | Bill Pierce <merlinious999@gmail.com> |
---|---|
date | Mon, 06 Feb 2017 22:25:15 +0100 |
parents | 1402bb974f85 |
children | d29a92fff7f2 |
line wrap: on
line diff
--- a/level2/coco3fpga/makefile Mon Feb 06 22:25:15 2017 +0100 +++ b/level2/coco3fpga/makefile Mon Feb 06 22:25:15 2017 +0100 @@ -10,8 +10,10 @@ DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) BOOTFILE_COCO3FPGA = bootfiles/bootfile_coco3fpga BOOTFILE_COCO3FPGA_SD = bootfiles/bootfile_coco3fpga_sd +BOOTFILE_COCO3FPGA_SD_RTC = bootfiles/bootfile_coco3fpga_sd_rtc BOOTFILE_COCO3FPGA_ROM = bootfiles/bootfile_coco3fpga_rom BOOTFILE_COCO3FPGA_ROM_DW = bootfiles/bootfile_coco3fpga_rom_dw +BOOTFILE_COCO3FPGA_ROM_RTC = bootfiles/bootfile_coco3fpga_rom_rtc KERNELFILE_BECKER = bootfiles/kernel_becker DIRS = cmds modules defs sys bootfiles wwwroot @@ -41,17 +43,21 @@ DSKCOCO3FPGADW = $(DISTROVER)_becker.dsk DSKCOCO3FPGADWSD = $(DISTROVER)_becker_sd.dsk +DSKCOCO3FPGADWSDRTC = $(DISTROVER)_becker_sd_rtc.dsk DSKCOCO3FPGAROM = $(DISTROVER)_bootrom.dsk DSKCOCO3FPGAROMDW = $(DISTROVER)_bootrom_becker.dsk +DSKCOCO3FPGAROMRTC = $(DISTROVER)_bootrom_rtc.dsk LDSKCOCO3FPGADW = $(DISTRONAME)_becker.dsk LDSKCOCO3FPGADWSD = $(DISTRONAME)_becker_sd.dsk +LDSKCOCO3FPGADWSDRTC = $(DISTRONAME)_becker_sd_rtc.dsk LDSKCOCO3FPGAROM = $(DISTRONAME)_bootrom.dsk LDSKCOCO3FPGAROMDW = $(DISTRONAME)_bootrom_becker.dsk +LDSKCOCO3FPGAROMRTC = $(DISTRONAME)_bootrom_rtc.dsk -DSKS = $(DSKCOCO3FPGADW) $(DSKCOCO3FPGADWSD) \ - $(DSKCOCO3FPGAROM) $(DSKCOCO3FPGAROMDW) -LDSKS = $(LDSKCOCO3FPGADW) $(LDSKCOCO3FPGADWSD) \ - $(LDSKCOCO3FPGAROM) $(LDSKCOCO3FPGAROMDW) +DSKS = $(DSKCOCO3FPGADW) $(DSKCOCO3FPGADWSD) $(DSKCOCO3FPGADWSDRTC) \ + $(DSKCOCO3FPGAROM) $(DSKCOCO3FPGAROMDW) $(DSKCOCO3FPGAROMRTC) +LDSKS = $(LDSKCOCO3FPGADW) $(LDSKCOCO3FPGADWSD) $(LDSKCOCO3FPGADWSDRTC) \ + $(LDSKCOCO3FPGAROM) $(LDSKCOCO3FPGAROMDW) $(LDSKCOCO3FPGAROMRTC) # Make all components all: @@ -183,6 +189,60 @@ $(RM) $(LDSKBECKER) $(SOFTLINK) $@ $(LDSKCOCO3FPGADWSD) +$(DSKCOCO3FPGADWSDRTC): + $(RM) $@ + $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" + $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_SD_RTC) -t=$(KERNELFILE_BECKER) + $(MAKDIR) $@,CMDS + $(MAKDIR) $@,SYS + $(MAKDIR) $@,DEFS + $(OS9COPY) modules/$(SYSGOBD) $@,sysgo + $(OS9ATTR_EXEC) $@,sysgo + $(CD) cmds; $(OS9COPY) $(CMDS_DW) ../$@,CMDS + $(OS9ATTR_EXEC) $(foreach file,$(CMDS_DW),$@,CMDS/$(file)) + $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) + $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSTEXT)),$@,SYS/$(file)) + $(CD) sys; $(CPL) $(SYSGOSYSTEXT) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSGOSYSTEXT)),$@,SYS/$(file)) + $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS + $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) + $(CPL) $(STARTUP_FPGADW) $@,startup + $(OS9ATTR_TEXT) $@,startup + $(MAKDIR) $@,NITROS9 + $(MAKDIR) $@,NITROS9/CMDS + $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/CMDS + $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/CMDS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES + $(MAKDIR) $@,NITROS9/MODULES/BOOTTRACK + $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/MODULES/BOOTTRACK + $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/MODULES/BOOTTRACK/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/KERNEL + $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/MODULES/KERNEL + $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/MODULES/KERNEL/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/SYSMODS + $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/MODULES/SYSMODS + $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/MODULES/SYSMODS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/CLOCKS + $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/MODULES/CLOCKS + $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/MODULES/CLOCKS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/RBF + $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/MODULES/RBF + $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/MODULES/RBF/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/SCF + $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/MODULES/SCF + $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/MODULES/SCF/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/PIPE + $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/MODULES/PIPE + $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/MODULES/PIPE/$(file)) + $(MAKDIR) $@,NITROS9/BOOTLISTS + $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS + $(MAKDIR) $@,NITROS9/SCRIPTS + $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS + $(RM) $(LDSKBECKER) + $(SOFTLINK) $@ $(LDSKCOCO3FPGADWSDRTC) + $(DSKCOCO3FPGAROM): $(RM) $@ $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" @@ -293,6 +353,61 @@ $(RM) $(LDSKBECKER) $(SOFTLINK) $@ $(LDSKCOCO3FPGAROMDW) +$(DSKCOCO3FPGAROMRTC): + $(RM) $@ + $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" + $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_ROM_RTC) -t=$(KERNELFILE_BECKER) + $(MAKDIR) $@,CMDS + $(MAKDIR) $@,SYS + $(MAKDIR) $@,DEFS + $(OS9COPY) modules/$(CCBKRN) $@,$(CCBKRN) + $(OS9COPY) modules/$(SYSGOBD) $@,sysgo + $(OS9ATTR_EXEC) $@,sysgo + $(CD) cmds; $(OS9COPY) $(CMDS_DW) ../$@,CMDS + $(OS9ATTR_EXEC) $(foreach file,$(CMDS_DW),$@,CMDS/$(file)) + $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) + $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSTEXT)),$@,SYS/$(file)) + $(CD) sys; $(CPL) $(SYSGOSYSTEXT) ../$@,SYS + $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSGOSYSTEXT)),$@,SYS/$(file)) + $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS + $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) + $(CPL) $(STARTUP_FPGADW) $@,startup + $(OS9ATTR_TEXT) $@,startup + $(MAKDIR) $@,NITROS9 + $(MAKDIR) $@,NITROS9/CMDS + $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/CMDS + $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/CMDS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES + $(MAKDIR) $@,NITROS9/MODULES/BOOTTRACK + $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/MODULES/BOOTTRACK + $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/MODULES/BOOTTRACK/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/KERNEL + $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/MODULES/KERNEL + $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/MODULES/KERNEL/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/SYSMODS + $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/MODULES/SYSMODS + $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/MODULES/SYSMODS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/CLOCKS + $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/MODULES/CLOCKS + $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/MODULES/CLOCKS/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/RBF + $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/MODULES/RBF + $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/MODULES/RBF/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/SCF + $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/MODULES/SCF + $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/MODULES/SCF/$(file)) + $(MAKDIR) $@,NITROS9/MODULES/PIPE + $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/MODULES/PIPE + $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/MODULES/PIPE/$(file)) + $(MAKDIR) $@,NITROS9/BOOTLISTS + $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS + $(MAKDIR) $@,NITROS9/SCRIPTS + $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS + $(RM) $(LDSKBECKER) + $(SOFTLINK) $@ $(LDSKCOCO3FPGAROMRTC) + info: @$(ECHO) "*** NitrOS-9/$(CPU) Level $(LEVEL) for the $(MACHINE) ***" @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);)