From 78a785d6564217c02f6adc0c44ff44f7b0193cd8 Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Wed, 11 Mar 2026 22:38:47 +0200 Subject: [PATCH] 3ds: Minor Makefile changes - Fix the macOS check so that it only includes the linker command line and not the whole block - Remove a dash from the .map file name, likely a typo - Don't remove the .elf file after packaging, so that it can be used to debug any issues with the build Change-Id: I9639263169e027c9702ac617eb8209b1707e11f4 --- packaging/ctru/ctru.make | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packaging/ctru/ctru.make b/packaging/ctru/ctru.make index 288b4ac3bd..90dd6be959 100644 --- a/packaging/ctru/ctru.make +++ b/packaging/ctru/ctru.make @@ -87,15 +87,11 @@ ifeq ($(UNAME), Darwin) $(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,$(LDMAP_OPT),$(BUILDDIR)/rockbox.map else $(call PRINTS,LD $(BINARY))$(CC) -o $@ -Wl,--start-group $^ -Wl,--end-group $(LDOPTS) $(GLOBAL_LDOPTS) \ - -Wl,$(LDMAP_OPT),$(BUILDDIR)/rockbox-.map + -Wl,$(LDMAP_OPT),$(BUILDDIR)/rockbox.map +endif @mv $(BINARY) $(BINARY).elf smdhtool --create "$(APP_TITLE)" "$(APP_DESCRIPTION)" "$(APP_AUTHOR)" $(APP_ICON) "rockbox.smdh" 3dsxtool $(BINARY).elf $(BINARY).3dsx --smdh="rockbox.smdh" $(BANNERTOOL) makebanner $(BANNER_IMAGE_ARG) "$(BANNER_IMAGE)" $(BANNER_AUDIO_ARG) "$(BANNER_AUDIO)" -o "$(BUILDDIR)/banner.bnr" $(BANNERTOOL) makesmdh -s "$(APP_TITLE)" -l "$(APP_DESCRIPTION)" -p "$(APP_AUTHOR)" -i "$(APP_ICON)" -f "$(ICON_FLAGS)" -o "$(BUILDDIR)/icon.icn" $(MAKEROM) -f cia -o "$(BINARY).cia" -target t -exefslogo $(MAKEROM_ARGS) -ifndef DEBUG - $(SILENT)rm $(BINARY).elf -endif -endif -