makefiles: fix duke3d overlay not using objcopy_plugin

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Sun, 3 May 2026 08:14:15 -0400
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 2053bba56158894bd86e41a645a86764e16d6a3c
Author: Aidan MacDonald <[email protected]>
Date:   Sun May 3 12:57:21 2026 +0100

    makefiles: fix duke3d overlay not using objcopy_plugin
    
    This should use $(call objcopy_plugin) in order to
    generate the correct binary format on platforms where
    the plugin binary format differs from the main binary
    format (ie. STM32).
    
    Change-Id: I027cc74e3c5d55b9a3538f4f16c3fd5ece25a4b5

diff --git a/apps/plugins/sdl/sdl.make b/apps/plugins/sdl/sdl.make
index 37b98fa2ac..f04f727aa7 100644
--- a/apps/plugins/sdl/sdl.make
+++ b/apps/plugins/sdl/sdl.make
@@ -78,7 +78,7 @@ $(SDL_OBJDIR)/duke3d.ovl: $(SDL_OBJ) $(DUKE3D_OBJ) $(TLSFLIB) $(DUKE3D_OUTLDS)
 		$(filter %.o, $^) \
 		$(filter %.a, $+) \
 		-lgcc -T$(DUKE3D_OUTLDS) $(SDL_OVLFLAGS)
-	$(call PRINTS,LD $(@F))$(call objcopy,$(basename $@).elf,$@)
+	$(call PRINTS,LD $(@F))$(call objcopy_plugin,$(basename $@).elf,$@)
 
 # Wolf3D
 
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs