From bc1dc90da912aefd2309e26bf0aa433ebcea9d9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Israelson?= <57065102+israpps@users.noreply.github.com> Date: Fri, 28 Feb 2025 09:32:39 -0300 Subject: [PATCH] [IOP] warn of IOP_BIN without .irx extension breaks makefile new toolchain does extension replacement. this will warn the programmer of such issue. If you have a better approach let me know --- samples/Makefile.iopglobal_sample | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/Makefile.iopglobal_sample b/samples/Makefile.iopglobal_sample index 94d72eb8b8f..a874a5e48fd 100644 --- a/samples/Makefile.iopglobal_sample +++ b/samples/Makefile.iopglobal_sample @@ -78,6 +78,10 @@ IOP_BIN_ELF := $(IOP_BIN:.irx=.notiopmod.elf) IOP_BIN_STRIPPED_ELF := $(IOP_BIN:.irx=.notiopmod.stripped.elf) +ifeq (,$(findstring .irx,$(IOP_BIN))) + $(warning IOP_BIN must have .irx extension to avoid makefile circular dependency) +endif + # Externally defined variables: IOP_BIN, IOP_OBJS, IOP_LIB # These macros can be used to simplify certain build rules.