Merge pull request #131 from vDorst/fix_github_action

Fix GitHub actions build and select machine-type via variable.
This commit is contained in:
René van Dorst
2026-02-15 11:08:18 +00:00
committed by GitHub
4 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -18,4 +18,4 @@ jobs:
apt update
apt install make gcc sdcc xxd python-is-python3 libjson-c-dev -y
- name: Make project
run: make
run: make MACHINE="KP_9000_6XHML_X2"
+5
View File
@@ -16,6 +16,11 @@ SUBDIRSCLEAN=$(addsuffix clean,$(SUBDIRS))
BUILDDIR = output/
VERSION_HEADER := version.h
ifeq ($(MACHINE),)
else
CC_FLAGS += -DMACHINE_$(MACHINE)
endif
all: create_build_dir $(VERSION_HEADER) $(SUBDIRS) $(BUILDDIR)rtlplayground.bin
create_build_dir:
+3
View File
@@ -97,6 +97,9 @@ __code const struct machine machine = {
LEDS_2G5 | LEDS_LINK | LEDS_ACT },
},
};
void machine_custom_init(void) { }
#elif defined MACHINE_KP_9000_9XHML_X
__code const struct machine machine = {
.machine_name = "keepLink KP-9000-9XHML-X",
+1
View File
@@ -9,6 +9,7 @@
// #define MACHINE_KP_9000_6XHML_X2
// #define MACHINE_KP_9000_6XH_X
// #define MACHINE_KP_9000_9XH_X_EU
// #define MACHINE_KP_9000_9XHML_X
// #define MACHINE_SWGT024_V2_0
// #define MACHINE_HORACO_ZX_SG4T2
// #define MACHINE_TRENDNET_TEG_S562