Mercurial > hg > Members > kono > nitros9-code
comparison 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 |
comparison
equal
deleted
inserted
replaced
3150:37737e5ec640 | 3151:d5c884d63e53 |
---|---|
8 DISTRO = $(CPU)L$(LEVEL) | 8 DISTRO = $(CPU)L$(LEVEL) |
9 DISTRONAME = nos9$(CPU)l$(LEVEL) | 9 DISTRONAME = nos9$(CPU)l$(LEVEL) |
10 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) | 10 DISTROVER = $(DISTRONAME)$(NITROS9VER)$(PORT) |
11 BOOTFILE_COCO3FPGA = bootfiles/bootfile_coco3fpga | 11 BOOTFILE_COCO3FPGA = bootfiles/bootfile_coco3fpga |
12 BOOTFILE_COCO3FPGA_SD = bootfiles/bootfile_coco3fpga_sd | 12 BOOTFILE_COCO3FPGA_SD = bootfiles/bootfile_coco3fpga_sd |
13 BOOTFILE_COCO3FPGA_SD_RTC = bootfiles/bootfile_coco3fpga_sd_rtc | |
13 BOOTFILE_COCO3FPGA_ROM = bootfiles/bootfile_coco3fpga_rom | 14 BOOTFILE_COCO3FPGA_ROM = bootfiles/bootfile_coco3fpga_rom |
14 BOOTFILE_COCO3FPGA_ROM_DW = bootfiles/bootfile_coco3fpga_rom_dw | 15 BOOTFILE_COCO3FPGA_ROM_DW = bootfiles/bootfile_coco3fpga_rom_dw |
16 BOOTFILE_COCO3FPGA_ROM_RTC = bootfiles/bootfile_coco3fpga_rom_rtc | |
15 KERNELFILE_BECKER = bootfiles/kernel_becker | 17 KERNELFILE_BECKER = bootfiles/kernel_becker |
16 DIRS = cmds modules defs sys bootfiles wwwroot | 18 DIRS = cmds modules defs sys bootfiles wwwroot |
17 | 19 |
18 CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs) | 20 CMDS = $(shell $(CD) cmds; make --no-print-directory showobjs) |
19 CMDS_D2 = $(shell $(CD) cmds; make --no-print-directory showobjs_d2) | 21 CMDS_D2 = $(shell $(CD) cmds; make --no-print-directory showobjs_d2) |
39 SYSGOBD = sysgo_bd | 41 SYSGOBD = sysgo_bd |
40 CCBKRN = ccbkrn | 42 CCBKRN = ccbkrn |
41 | 43 |
42 DSKCOCO3FPGADW = $(DISTROVER)_becker.dsk | 44 DSKCOCO3FPGADW = $(DISTROVER)_becker.dsk |
43 DSKCOCO3FPGADWSD = $(DISTROVER)_becker_sd.dsk | 45 DSKCOCO3FPGADWSD = $(DISTROVER)_becker_sd.dsk |
46 DSKCOCO3FPGADWSDRTC = $(DISTROVER)_becker_sd_rtc.dsk | |
44 DSKCOCO3FPGAROM = $(DISTROVER)_bootrom.dsk | 47 DSKCOCO3FPGAROM = $(DISTROVER)_bootrom.dsk |
45 DSKCOCO3FPGAROMDW = $(DISTROVER)_bootrom_becker.dsk | 48 DSKCOCO3FPGAROMDW = $(DISTROVER)_bootrom_becker.dsk |
49 DSKCOCO3FPGAROMRTC = $(DISTROVER)_bootrom_rtc.dsk | |
46 LDSKCOCO3FPGADW = $(DISTRONAME)_becker.dsk | 50 LDSKCOCO3FPGADW = $(DISTRONAME)_becker.dsk |
47 LDSKCOCO3FPGADWSD = $(DISTRONAME)_becker_sd.dsk | 51 LDSKCOCO3FPGADWSD = $(DISTRONAME)_becker_sd.dsk |
52 LDSKCOCO3FPGADWSDRTC = $(DISTRONAME)_becker_sd_rtc.dsk | |
48 LDSKCOCO3FPGAROM = $(DISTRONAME)_bootrom.dsk | 53 LDSKCOCO3FPGAROM = $(DISTRONAME)_bootrom.dsk |
49 LDSKCOCO3FPGAROMDW = $(DISTRONAME)_bootrom_becker.dsk | 54 LDSKCOCO3FPGAROMDW = $(DISTRONAME)_bootrom_becker.dsk |
50 | 55 LDSKCOCO3FPGAROMRTC = $(DISTRONAME)_bootrom_rtc.dsk |
51 DSKS = $(DSKCOCO3FPGADW) $(DSKCOCO3FPGADWSD) \ | 56 |
52 $(DSKCOCO3FPGAROM) $(DSKCOCO3FPGAROMDW) | 57 DSKS = $(DSKCOCO3FPGADW) $(DSKCOCO3FPGADWSD) $(DSKCOCO3FPGADWSDRTC) \ |
53 LDSKS = $(LDSKCOCO3FPGADW) $(LDSKCOCO3FPGADWSD) \ | 58 $(DSKCOCO3FPGAROM) $(DSKCOCO3FPGAROMDW) $(DSKCOCO3FPGAROMRTC) |
54 $(LDSKCOCO3FPGAROM) $(LDSKCOCO3FPGAROMDW) | 59 LDSKS = $(LDSKCOCO3FPGADW) $(LDSKCOCO3FPGADWSD) $(LDSKCOCO3FPGADWSDRTC) \ |
60 $(LDSKCOCO3FPGAROM) $(LDSKCOCO3FPGAROMDW) $(LDSKCOCO3FPGAROMRTC) | |
55 | 61 |
56 # Make all components | 62 # Make all components |
57 all: | 63 all: |
58 @$(ECHO) "************************************************************" | 64 @$(ECHO) "************************************************************" |
59 @$(ECHO) "*" | 65 @$(ECHO) "*" |
181 $(MAKDIR) $@,NITROS9/SCRIPTS | 187 $(MAKDIR) $@,NITROS9/SCRIPTS |
182 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS | 188 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS |
183 $(RM) $(LDSKBECKER) | 189 $(RM) $(LDSKBECKER) |
184 $(SOFTLINK) $@ $(LDSKCOCO3FPGADWSD) | 190 $(SOFTLINK) $@ $(LDSKCOCO3FPGADWSD) |
185 | 191 |
192 $(DSKCOCO3FPGADWSDRTC): | |
193 $(RM) $@ | |
194 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" | |
195 $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_SD_RTC) -t=$(KERNELFILE_BECKER) | |
196 $(MAKDIR) $@,CMDS | |
197 $(MAKDIR) $@,SYS | |
198 $(MAKDIR) $@,DEFS | |
199 $(OS9COPY) modules/$(SYSGOBD) $@,sysgo | |
200 $(OS9ATTR_EXEC) $@,sysgo | |
201 $(CD) cmds; $(OS9COPY) $(CMDS_DW) ../$@,CMDS | |
202 $(OS9ATTR_EXEC) $(foreach file,$(CMDS_DW),$@,CMDS/$(file)) | |
203 $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS | |
204 $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) | |
205 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
206 $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSTEXT)),$@,SYS/$(file)) | |
207 $(CD) sys; $(CPL) $(SYSGOSYSTEXT) ../$@,SYS | |
208 $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSGOSYSTEXT)),$@,SYS/$(file)) | |
209 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
210 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) | |
211 $(CPL) $(STARTUP_FPGADW) $@,startup | |
212 $(OS9ATTR_TEXT) $@,startup | |
213 $(MAKDIR) $@,NITROS9 | |
214 $(MAKDIR) $@,NITROS9/CMDS | |
215 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/CMDS | |
216 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/CMDS/$(file)) | |
217 $(MAKDIR) $@,NITROS9/MODULES | |
218 $(MAKDIR) $@,NITROS9/MODULES/BOOTTRACK | |
219 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/MODULES/BOOTTRACK | |
220 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/MODULES/BOOTTRACK/$(file)) | |
221 $(MAKDIR) $@,NITROS9/MODULES/KERNEL | |
222 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/MODULES/KERNEL | |
223 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/MODULES/KERNEL/$(file)) | |
224 $(MAKDIR) $@,NITROS9/MODULES/SYSMODS | |
225 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/MODULES/SYSMODS | |
226 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/MODULES/SYSMODS/$(file)) | |
227 $(MAKDIR) $@,NITROS9/MODULES/CLOCKS | |
228 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/MODULES/CLOCKS | |
229 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/MODULES/CLOCKS/$(file)) | |
230 $(MAKDIR) $@,NITROS9/MODULES/RBF | |
231 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/MODULES/RBF | |
232 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/MODULES/RBF/$(file)) | |
233 $(MAKDIR) $@,NITROS9/MODULES/SCF | |
234 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/MODULES/SCF | |
235 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/MODULES/SCF/$(file)) | |
236 $(MAKDIR) $@,NITROS9/MODULES/PIPE | |
237 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/MODULES/PIPE | |
238 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/MODULES/PIPE/$(file)) | |
239 $(MAKDIR) $@,NITROS9/BOOTLISTS | |
240 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS | |
241 $(MAKDIR) $@,NITROS9/SCRIPTS | |
242 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS | |
243 $(RM) $(LDSKBECKER) | |
244 $(SOFTLINK) $@ $(LDSKCOCO3FPGADWSDRTC) | |
245 | |
186 $(DSKCOCO3FPGAROM): | 246 $(DSKCOCO3FPGAROM): |
187 $(RM) $@ | 247 $(RM) $@ |
188 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" | 248 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" |
189 $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_ROM) -t=$(KERNELFILE_BECKER) | 249 $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_ROM) -t=$(KERNELFILE_BECKER) |
190 $(MAKDIR) $@,CMDS | 250 $(MAKDIR) $@,CMDS |
290 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS | 350 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS |
291 $(MAKDIR) $@,NITROS9/SCRIPTS | 351 $(MAKDIR) $@,NITROS9/SCRIPTS |
292 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS | 352 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS |
293 $(RM) $(LDSKBECKER) | 353 $(RM) $(LDSKBECKER) |
294 $(SOFTLINK) $@ $(LDSKCOCO3FPGAROMDW) | 354 $(SOFTLINK) $@ $(LDSKCOCO3FPGAROMDW) |
355 | |
356 $(DSKCOCO3FPGAROMRTC): | |
357 $(RM) $@ | |
358 $(OS9FORMAT_DW) -q $@ -n"NitrOS-9/$(CPU) Level $(LEVEL)" | |
359 $(OS9GEN) $@ -b=$(BOOTFILE_COCO3FPGA_ROM_RTC) -t=$(KERNELFILE_BECKER) | |
360 $(MAKDIR) $@,CMDS | |
361 $(MAKDIR) $@,SYS | |
362 $(MAKDIR) $@,DEFS | |
363 $(OS9COPY) modules/$(CCBKRN) $@,$(CCBKRN) | |
364 $(OS9COPY) modules/$(SYSGOBD) $@,sysgo | |
365 $(OS9ATTR_EXEC) $@,sysgo | |
366 $(CD) cmds; $(OS9COPY) $(CMDS_DW) ../$@,CMDS | |
367 $(OS9ATTR_EXEC) $(foreach file,$(CMDS_DW),$@,CMDS/$(file)) | |
368 $(CD) sys; $(OS9COPY) $(SYSBIN) ../$@,SYS | |
369 $(OS9ATTR_TEXT) $(foreach file,$(SYSBIN),$@,SYS/$(file)) | |
370 $(CD) sys; $(CPL) $(SYSTEXT) ../$@,SYS | |
371 $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSTEXT)),$@,SYS/$(file)) | |
372 $(CD) sys; $(CPL) $(SYSGOSYSTEXT) ../$@,SYS | |
373 $(OS9ATTR_TEXT) $(foreach file,$(notdir $(SYSGOSYSTEXT)),$@,SYS/$(file)) | |
374 $(CD) defs; $(CPL) $(DEFS) ../$@,DEFS | |
375 $(OS9ATTR_TEXT) $(foreach file,$(DEFS),$@,DEFS/$(file)) | |
376 $(CPL) $(STARTUP_FPGADW) $@,startup | |
377 $(OS9ATTR_TEXT) $@,startup | |
378 $(MAKDIR) $@,NITROS9 | |
379 $(MAKDIR) $@,NITROS9/CMDS | |
380 $(CD) cmds; $(OS9COPY) $(MODULECMDS) ../$@,NITROS9/CMDS | |
381 $(OS9ATTR_EXEC) $(foreach file,$(MODULECMDS),$@,NITROS9/CMDS/$(file)) | |
382 $(MAKDIR) $@,NITROS9/MODULES | |
383 $(MAKDIR) $@,NITROS9/MODULES/BOOTTRACK | |
384 $(CD) modules; $(OS9COPY) $(BOOTTRACK) ../$@,NITROS9/MODULES/BOOTTRACK | |
385 $(OS9ATTR_EXEC) $(foreach file,$(BOOTTRACK),$@,NITROS9/MODULES/BOOTTRACK/$(file)) | |
386 $(MAKDIR) $@,NITROS9/MODULES/KERNEL | |
387 $(CD) modules; $(OS9COPY) $(KERNEL) ../$@,NITROS9/MODULES/KERNEL | |
388 $(OS9ATTR_EXEC) $(foreach file,$(KERNEL),$@,NITROS9/MODULES/KERNEL/$(file)) | |
389 $(MAKDIR) $@,NITROS9/MODULES/SYSMODS | |
390 $(CD) modules; $(OS9COPY) $(SYSMODS) ../$@,NITROS9/MODULES/SYSMODS | |
391 $(OS9ATTR_EXEC) $(foreach file,$(SYSMODS),$@,NITROS9/MODULES/SYSMODS/$(file)) | |
392 $(MAKDIR) $@,NITROS9/MODULES/CLOCKS | |
393 $(CD) modules; $(OS9COPY) $(CLOCKS) ../$@,NITROS9/MODULES/CLOCKS | |
394 $(OS9ATTR_EXEC) $(foreach file,$(CLOCKS),$@,NITROS9/MODULES/CLOCKS/$(file)) | |
395 $(MAKDIR) $@,NITROS9/MODULES/RBF | |
396 $(CD) modules; $(OS9COPY) $(RBF) ../$@,NITROS9/MODULES/RBF | |
397 $(OS9ATTR_EXEC) $(foreach file,$(RBF),$@,NITROS9/MODULES/RBF/$(file)) | |
398 $(MAKDIR) $@,NITROS9/MODULES/SCF | |
399 $(CD) modules; $(OS9COPY) $(SCF) ../$@,NITROS9/MODULES/SCF | |
400 $(OS9ATTR_EXEC) $(foreach file,$(SCF),$@,NITROS9/MODULES/SCF/$(file)) | |
401 $(MAKDIR) $@,NITROS9/MODULES/PIPE | |
402 $(CD) modules; $(OS9COPY) $(PIPE) ../$@,NITROS9/MODULES/PIPE | |
403 $(OS9ATTR_EXEC) $(foreach file,$(PIPE),$@,NITROS9/MODULES/PIPE/$(file)) | |
404 $(MAKDIR) $@,NITROS9/BOOTLISTS | |
405 $(CD) bootlists; $(CPL) *.bl ../$@,NITROS9/BOOTLISTS | |
406 $(MAKDIR) $@,NITROS9/SCRIPTS | |
407 $(CD) scripts; $(CPL) mb* ../$@,NITROS9/SCRIPTS | |
408 $(RM) $(LDSKBECKER) | |
409 $(SOFTLINK) $@ $(LDSKCOCO3FPGAROMRTC) | |
295 | 410 |
296 info: | 411 info: |
297 @$(ECHO) "*** NitrOS-9/$(CPU) Level $(LEVEL) for the $(MACHINE) ***" | 412 @$(ECHO) "*** NitrOS-9/$(CPU) Level $(LEVEL) for the $(MACHINE) ***" |
298 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) | 413 @$(foreach dsk, $(DSKS), $(ECHO) $(dsk);) |
299 | 414 |