3ds: Makefile improvements

- Allow overriding of the smdhtool and 3dsxtool programs
- Introduce dependencies in ctru.make for 3dsx and cia packages
- Build these packages when the binary is built
- Copy instead of moving the cia package when building a zip
- Properly clean all build artifacts when make clean is used

Change-Id: I2069bcc44d6ab6031ef61ed9980f92ff9a913bc9
This commit is contained in:
Vencislav Atanasov 2026-03-13 00:00:24 +02:00
parent a77c5d2219
commit 72969fee7e
4 changed files with 51 additions and 21 deletions

View file

@ -750,7 +750,7 @@ sub runone {
# add hbmenu shortcut and cia file to zip file
if ($modelname =~ /ctru/) {
move("rockbox.cia", "3ds");
copy("rockbox.cia", "3ds");
copy("$ROOT/packaging/ctru/rockbox.xml", "3ds");
system("$ziptool -u $output 3ds/rockbox.xml $target >/dev/null");

2
tools/configure vendored
View file

@ -4159,7 +4159,7 @@ fi
boottool="cp "
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
output="rockbox"
output="rockbox.elf"
bootoutput="rockbox"
appextra="recorder:gui"
plugins="yes"

View file

@ -234,7 +234,8 @@ clean::
$(LINKRAM) $(LINKROM) rockbox.elf rockbox.map rockbox.bin \
make.dep rombox.elf rombox.map rombox.bin romstart.txt \
$(BINARY) $(FLASHFILE) uisimulator bootloader flash $(BOOTLINK) \
rockbox.apk lang_enum.h rbversion.h fontbundle.h
rockbox.apk lang_enum.h rbversion.h fontbundle.h 3ds rockbox.3dsx \
rockbox.bnr rockbox.cia rockbox.icn rockbox.smdh
#### linking the binaries: ####