Merge branch 'master' into test_ci_fail_match
Some checks failed
Run test asserts / Test-Asserts (pull_request) Failing after 3s
Some checks failed
Run test asserts / Test-Asserts (pull_request) Failing after 3s
This commit is contained in:
commit
ededd8e51e
|
@ -1,5 +1,4 @@
|
||||||
name: Run test asserts
|
name: Run test asserts
|
||||||
run-name: Test assert-all by ${{github.actor}}
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -12,4 +11,4 @@ jobs:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Run asserts
|
- name: Run asserts
|
||||||
run: cd ${{github.workspace}};PATH_HEX2BIN=/opt/Hex2bin-2.5 make assert-all;
|
run: make assert-all
|
||||||
|
|
|
@ -4,6 +4,5 @@
|
||||||
# Change to local installations if needed;
|
# Change to local installations if needed;
|
||||||
|
|
||||||
#PATH_SDCC ?= /usr/bin
|
#PATH_SDCC ?= /usr/bin
|
||||||
#PATH_HEX2BIN ?= /usr/bin
|
|
||||||
#PATH_UNIX2DOS ?= /usr/bin
|
#PATH_UNIX2DOS ?= /usr/bin
|
||||||
#PATH_OPENMSX ?= /opt/openMSX/bin/
|
#PATH_OPENMSX ?= /opt/openMSX/bin/
|
||||||
|
|
|
@ -32,7 +32,6 @@ The files in this repro try to handle these steps for you.
|
||||||
* make
|
* make
|
||||||
* openmsx
|
* openmsx
|
||||||
* sdcc
|
* sdcc
|
||||||
* hex2bin-2.5 (see [https://hex2bin.sourceforge.net/](https://hex2bin.sourceforge.net/))
|
|
||||||
* wget
|
* wget
|
||||||
* unix2dos
|
* unix2dos
|
||||||
|
|
||||||
|
@ -45,12 +44,11 @@ For debian use;
|
||||||
Include the `lib/make/msxbuild.mk` file from your Makefile.
|
Include the `lib/make/msxbuild.mk` file from your Makefile.
|
||||||
And override the required paths;
|
And override the required paths;
|
||||||
* PATH_SDCC ?= /usr/bin
|
* PATH_SDCC ?= /usr/bin
|
||||||
* PATH_HEX2BIN ?= /usr/bin
|
|
||||||
* PATH_UNIX2DOS ?= /usr/bin
|
* PATH_UNIX2DOS ?= /usr/bin
|
||||||
* PATH_OPENMSX ?= /opt/openMSX/bin/
|
* PATH_OPENMSX ?= /opt/openMSX/bin/
|
||||||
* PATH_MSXBUILD ?= /opt/msxbuild
|
* PATH_MSXBUILD ?= /opt/msxbuild
|
||||||
|
|
||||||
Then build result based compile rules see an example in; `test/ahello/0module.mk`
|
Then build result based compile rules see an example in; `test/ahello-m80/0module.mk`
|
||||||
|
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
|
@ -67,8 +65,7 @@ Current set is WIP.
|
||||||
* mb_link_asm_8000
|
* mb_link_asm_8000
|
||||||
* mb_link_asm_C000
|
* mb_link_asm_C000
|
||||||
* mb_link_asm_dos = alias for mb_link_asm_0100
|
* mb_link_asm_dos = alias for mb_link_asm_0100
|
||||||
* mb_hex2com
|
* mb_hex2bin
|
||||||
* mb_hex2dat
|
|
||||||
* mb_openmsx_dosctl
|
* mb_openmsx_dosctl
|
||||||
* mb_msxhub_file
|
* mb_msxhub_file
|
||||||
* mb_package_dos1
|
* mb_package_dos1
|
||||||
|
|
|
@ -21,10 +21,10 @@ define mb_autoexec_append_rem
|
||||||
$(call mb_autoexec_append_cmd,$(1),rem $(2))
|
$(call mb_autoexec_append_cmd,$(1),rem $(2))
|
||||||
endef
|
endef
|
||||||
define mb_autoexec_append_gui_mode
|
define mb_autoexec_append_gui_mode
|
||||||
$(call mb_autoexec_append_echo,$(1),Enabling renderer.)
|
$(call mb_autoexec_append_echo,$(1),Enabling SDL renderer.)
|
||||||
$(call mb_autoexec_append_cmd,$(1),omsxctl set renderer SDL)
|
$(call mb_autoexec_append_cmd,$(1),omsxctl set renderer SDL > NUL)
|
||||||
$(call mb_autoexec_append_echo,$(1),Enabling throttling.)
|
$(call mb_autoexec_append_echo,$(1),Enabling CPU throttling.)
|
||||||
$(call mb_autoexec_append_cmd,$(1),omsxctl set throttle on)
|
$(call mb_autoexec_append_cmd,$(1),omsxctl set throttle on > NUL)
|
||||||
endef
|
endef
|
||||||
define mb_autoexec_append_stop_fail
|
define mb_autoexec_append_stop_fail
|
||||||
$(call mb_autoexec_append_echo,$(1),Disabling automatic failure.)
|
$(call mb_autoexec_append_echo,$(1),Disabling automatic failure.)
|
||||||
|
@ -50,7 +50,7 @@ define mb_autoexec_open_gui
|
||||||
$(call mb_autoexec_write_default,$(1))
|
$(call mb_autoexec_write_default,$(1))
|
||||||
$(call mb_autoexec_append_stop_fail,$(1))
|
$(call mb_autoexec_append_stop_fail,$(1))
|
||||||
$(call mb_autoexec_append_gui_mode,$(1))
|
$(call mb_autoexec_append_gui_mode,$(1))
|
||||||
$(call mb_autoexec_append_echo,$(1),Type 'shutdown' or 'omsxctl exit' to stop emulation.)
|
$(call mb_autoexec_append_echo,$(1),Type shutdown to stop emulation.)
|
||||||
endef
|
endef
|
||||||
define mb_autoexec_open_gui_cmd
|
define mb_autoexec_open_gui_cmd
|
||||||
$(call mb_autoexec_open_gui,$(1))
|
$(call mb_autoexec_open_gui,$(1))
|
||||||
|
|
|
@ -4,10 +4,10 @@ MB_BUILD_FLAG_LD ?= --nostdinc
|
||||||
MB_BUILD_SDASM_FLAGS ?= -g -l -c -o
|
MB_BUILD_SDASM_FLAGS ?= -g -l -c -o
|
||||||
MB_BUILD_SDCC_FLAGS ?=
|
MB_BUILD_SDCC_FLAGS ?=
|
||||||
MB_BUILD_SDAR_FLAGS ?= -rc
|
MB_BUILD_SDAR_FLAGS ?= -rc
|
||||||
MB_BUILD_H2B_CMD ?= $(PATH_HEX2BIN)/hex2bin
|
|
||||||
MB_BUILD_SDCC_CMD ?= $(PATH_SDCC)/sdcc
|
MB_BUILD_SDCC_CMD ?= $(PATH_SDCC)/sdcc
|
||||||
MB_BUILD_SDASM_CMD ?= $(PATH_SDCC)/sdasz80
|
MB_BUILD_SDASM_CMD ?= $(PATH_SDCC)/sdasz80
|
||||||
MB_BUILD_SDAR_CMD ?= $(PATH_SDCC)/sdar
|
MB_BUILD_SDAR_CMD ?= $(PATH_SDCC)/sdar
|
||||||
|
MB_BUILD_SDOBJCOPY_CMD ?= $(PATH_SDCC)/sdobjcopy
|
||||||
MB_BUILD_UNIX2DOS_CMD ?= $(PATH_UNIX2DOS)/unix2dos
|
MB_BUILD_UNIX2DOS_CMD ?= $(PATH_UNIX2DOS)/unix2dos
|
||||||
|
|
||||||
# TODO: Add C + mixed support;
|
# TODO: Add C + mixed support;
|
||||||
|
@ -54,11 +54,6 @@ define mb_link_asm_dos
|
||||||
$(call mb_link_asm_0100,$(1),$(2))
|
$(call mb_link_asm_0100,$(1),$(2))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define mb_hex2com
|
define mb_hex2bin
|
||||||
@echo === Extracting hex2com
|
$(MB_BUILD_SDOBJCOPY_CMD) -I ihex --output-target=binary $(1) $(2)
|
||||||
cd $(dir $(1)) && $(MB_BUILD_H2B_CMD) -e com $(notdir $(1))
|
|
||||||
endef
|
|
||||||
define mb_hex2dat
|
|
||||||
@echo === Extracting hex2dat
|
|
||||||
cd $(dir $(1)) && $(MB_BUILD_H2B_CMD) -e dat $(notdir $(1))
|
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# Setup required tools paths
|
# Setup required tools paths
|
||||||
PATH_HEX2BIN ?= /usr/bin
|
|
||||||
PATH_SDCC ?= /usr/bin
|
PATH_SDCC ?= /usr/bin
|
||||||
PATH_UNIX2DOS ?= /usr/bin
|
PATH_UNIX2DOS ?= /usr/bin
|
||||||
PATH_OPENMSX ?= /usr/bin
|
PATH_OPENMSX ?= /usr/bin
|
||||||
|
|
|
@ -14,7 +14,7 @@ $(TEST_AHELLO_SDCC)/ahello.hex: $(TEST_AHELLO_SDCC)/ahello.rel
|
||||||
$(call mb_link_asm_dos,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.rel)
|
$(call mb_link_asm_dos,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.rel)
|
||||||
|
|
||||||
$(TEST_AHELLO_SDCC)/ahello.com: $(TEST_AHELLO_SDCC)/ahello.hex
|
$(TEST_AHELLO_SDCC)/ahello.com: $(TEST_AHELLO_SDCC)/ahello.hex
|
||||||
$(call mb_hex2com,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.com)
|
$(call mb_hex2bin,$(TEST_AHELLO_SDCC)/ahello.hex,$(TEST_AHELLO_SDCC)/ahello.com)
|
||||||
|
|
||||||
.PHONY: test-ahello-sdcc-run
|
.PHONY: test-ahello-sdcc-run
|
||||||
test-ahello-sdcc-run: $(TEST_AHELLO_SDCC)/ahello.com
|
test-ahello-sdcc-run: $(TEST_AHELLO_SDCC)/ahello.com
|
||||||
|
|
Loading…
Reference in a new issue