3ds: Minor Makefile changes

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 78a785d6564217c02f6adc0c44ff44f7b0193cd8
Author: Vencislav Atanasov <[email protected]>
Date:   Wed Mar 11 22:38:47 2026 +0200

    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

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
-
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.