From 66bf60eeb719e5fa8dd3c500292da3fb4ccbb97a Mon Sep 17 00:00:00 2001 From: ckormanyos Date: Mon, 8 Jul 2024 14:02:13 +0200 Subject: [PATCH] Add support for gobjcopy on MacOS --- .github/workflows/ti84-ref_app.yml | 2 +- build/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ti84-ref_app.yml b/.github/workflows/ti84-ref_app.yml index 99220b5..7c8dfb5 100644 --- a/.github/workflows/ti84-ref_app.yml +++ b/.github/workflows/ti84-ref_app.yml @@ -48,6 +48,6 @@ jobs: run: | cd build sdcc -v - make TYP_OS=UNIX all + make TYP_OS=UNIX all TYP_OBJCOPY=gobjcopy echo 'build-and-verify-refapp partial verify result' ls -la ../bin/refapp.8xp diff --git a/build/Makefile b/build/Makefile index 4fcae93..e81b888 100644 --- a/build/Makefile +++ b/build/Makefile @@ -65,7 +65,11 @@ CP := $(TOOL_PREFIX)cp$(EXEEXT) ECHO := $(TOOL_PREFIX)echo$(EXEEXT) MKDIR := $(TOOL_PREFIX)mkdir$(EXEEXT) MV := $(TOOL_PREFIX)mv$(EXEEXT) +ifeq ($(TYP_OBJCOPY),) OBJCOPY := $(TOOL_PREFIX)objcopy$(EXEEXT) +else +OBJCOPY := $(TYP_OBJCOPY) +endif PYTHON := python$(EXEEXT) RM := $(TOOL_PREFIX)rm$(EXEEXT)