From 2f787feebf91b1c7e617994cce42245a56091e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sun, 15 Feb 2026 11:12:26 +0100 Subject: [PATCH 1/3] Makefile: Select MACHINE via a variable --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a6a2bf5..51a0b29 100644 --- a/Makefile +++ b/Makefile @@ -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: From c7ea28393a5c97017aecf76af97b53bfb238ae88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sun, 15 Feb 2026 11:24:40 +0100 Subject: [PATCH 2/3] machine: Fix missing MACHINE_KP_9000_9XHML_X, fixes #120 --- machine.c | 3 +++ machine.h | 1 + 2 files changed, 4 insertions(+) diff --git a/machine.c b/machine.c index 73a0c7b..d48c2d6 100644 --- a/machine.c +++ b/machine.c @@ -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", diff --git a/machine.h b/machine.h index 06a2475..bf5aa0a 100644 --- a/machine.h +++ b/machine.h @@ -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 From 1f6f7fbcd4ad9520d281f26abaa862da7eaf5bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Dorst?= Date: Sun, 15 Feb 2026 11:25:47 +0100 Subject: [PATCH 3/3] Fix GITHUB action build. PR #119 made that no machine-type is selected, so the build will fail. commit 2f787fee enables us select a machine via a variable, use this to select a machine-type `KP_9000_6XHML_X2` to build. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fa2f3f9..10e9636 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 \ No newline at end of file + run: make MACHINE="KP_9000_6XHML_X2" \ No newline at end of file