Willem Cazander
7734175826
All checks were successful
Run test asserts / Test-Asserts (push) Successful in -10s
74 lines
3.8 KiB
Makefile
74 lines
3.8 KiB
Makefile
|
|
MB_OPENMSX_BOOT_TIMEOUT ?= 25
|
|
MB_OPENMSX_BOOT_OS ?= nextor
|
|
MB_OPENMSX_MACHINE ?= Philips_NMS_8250
|
|
MB_OPENMSX_SPEED ?= $(if $(findstring turboR,$(MB_OPENMSX_MACHINE)),100,333)
|
|
MB_OPENMSX_EXTS ?=
|
|
MB_OPENMSX_HDD_SIZE ?= 4m
|
|
MB_OPENMSX_SCALE_FACTOR ?= 3
|
|
MB_OPENMSX_THROTTLE ?= off
|
|
MB_OPENMSX_HEADLESS ?= on
|
|
MB_OPENMSX_RENDERER ?= SDLGL-PP
|
|
MB_OPENMSX_VDP_FG ?= 151
|
|
MB_OPENMSX_VDP_BG ?= 000
|
|
|
|
define mb_openmsx_setup
|
|
$(if $(wildcard $(1)-omsx),,$(call mb_mkdir,$(1)-omsx))
|
|
$(if $(wildcard $(1)-omsx/stdio.xml),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/stdio.xml,$(1)-omsx))
|
|
$(if $(wildcard $(1)-omsx/share),,$(call mb_mkdir,$(1)-omsx/share))
|
|
$(if $(wildcard $(1)-omsx/share/settings.xml),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/settings.xml,$(1)-omsx/share))
|
|
$(if $(wildcard $(1)-omsx/share/scripts),,$(call mb_mkdir,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/boot_exec.tcl),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/scripts/boot_exec.tcl,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/fail_after.tcl),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/scripts/fail_after.tcl,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/fire_hdd.tcl),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/scripts/fire_hdd.tcl,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/headless.tcl),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/scripts/headless.tcl,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/night_flight.tcl),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/scripts/night_flight.tcl,$(1)-omsx/share/scripts))
|
|
$(if $(wildcard $(1)-omsx/share/scripts/omsxctl.tcl),,$(call mb_msxhub_file,$(1)-omsx/share/scripts,OMSXCTL/1.0-1/get/OMSXCTL/omsxctl.tcl))
|
|
$(if $(wildcard $(1)-omsx/share/extensions),,$(call mb_mkdir,$(1)-omsx/share/extensions))
|
|
$(if $(wildcard $(1)-omsx/share/extensions/fire-hdd.xml),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/openmsx/share/extensions/fire-hdd.xml,$(1)-omsx/share/extensions))
|
|
$(call mb_msxrom_setup,$(1))
|
|
$(call mb_msxrom_extension_ide_nextor,$(1))
|
|
$(call mb_msxrom_machine_$(2),$(1))
|
|
endef
|
|
|
|
define _mb_openmsx_run
|
|
@echo === openMSX Start for $@
|
|
BOOT_WATCHDOG=$(MB_OPENMSX_BOOT_TIMEOUT) \
|
|
FIRE_HDD_PATH="$(1)" \
|
|
FIRE_HDD_SIZE=$(MB_OPENMSX_HDD_SIZE) \
|
|
FIRE_HDD_IMAGE="$(1)-omsx/persistent/fire-hdd/untitled1/image-hda.dsk" \
|
|
SCALE_FACTOR=$(MB_OPENMSX_SCALE_FACTOR) \
|
|
SPEED=$(MB_OPENMSX_SPEED) \
|
|
HEADLESS=$(MB_OPENMSX_HEADLESS) \
|
|
RENDERER=$(MB_OPENMSX_RENDERER) \
|
|
THROTTLE=$(MB_OPENMSX_THROTTLE) \
|
|
NF_PREFIX=$(MB_FLIGHT_PREFIX) \
|
|
NF_SEPERATOR=$(MB_FLIGHT_SEPERATOR) \
|
|
NF_RECORD_FLAG=$(MB_FLIGHT_RECORD_FLAG) \
|
|
VDP_FG=$(MB_OPENMSX_VDP_FG) \
|
|
VDP_BG=$(MB_OPENMSX_VDP_BG) \
|
|
OPENMSX_HOME="$(1)-omsx" \
|
|
$(PATH_OPENMSX)/openmsx \
|
|
-machine $(2) \
|
|
-ext slotexpander \
|
|
-ext fire-hdd \
|
|
$(if $(3),$(3),-ext ram4mb) \
|
|
$(MB_OPENMSX_EXTS) \
|
|
-control stdio < $(1)-omsx/stdio.xml
|
|
@echo === openMSX Done for $@
|
|
endef
|
|
|
|
define _mb_openmsx_dosctl_bat
|
|
$(if $(wildcard $(1)/z80.bat),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/emuctl/z80.bat,$(1)))
|
|
$(if $(wildcard $(1)/reboot.bat),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/emuctl/reboot.bat,$(1)))
|
|
$(if $(wildcard $(1)/shutdown.bat),,$(call mb_copy,$(PATH_MSXBUILD_REAL)/lib/emuctl/shutdown.bat,$(1)))
|
|
endef
|
|
|
|
define mb_openmsx_dosctl
|
|
$(call mb_openmsx_setup,$(1),$(if $(2),$(2),$(MB_OPENMSX_MACHINE)))
|
|
$(if $(wildcard $(1)/utils),$(call _mb_openmsx_dosctl_bat,$(1)/utils),$(call _mb_openmsx_dosctl_bat,$(1)))
|
|
$(if $(wildcard $(1)/omsxctl.com),,$(call mb_msxhub_file,$(1),OMSXCTL/1.0-1/get/OMSXCTL/omsxctl.com))
|
|
$(if $(wildcard $(1)/command.com),,$(if $(wildcard $(1)/command2.com),,$(call mb_msxhub_get_$(MB_OPENMSX_BOOT_OS)_boot,$(1))))
|
|
$(call _mb_openmsx_run,$(1),$(if $(2),$(2),$(MB_OPENMSX_MACHINE)),$(3))
|
|
endef
|