PLATFORM := generic
endif
ifeq "$(PLATFORM)" "miyoo"
+$(TARGET).zip: $(TARGET)
+ $(RM) -rf .od_data
+ cp -r platform/opendingux/data/. .od_data
+ cp platform/game_def.cfg .od_data
+ cp $< .od_data/PicoDrive
+ $(STRIP) .od_data/PicoDrive
+ rm -f .od_data/default.*.desktop .od_data/PicoDrive.dge
+ cd .od_data && zip -9 -r ../$@ *
+all: $(TARGET).zip
+
OBJS += platform/opendingux/inputmap.o
use_inputmap ?= 1
PLATFORM := generic
# retrofw: mipsel-linux-uclibc (the retrofw toolchain)
# gcw0: gcw0-toolchain; mips-toolchain (buildroot, newer gcc)
# rg350: rg350-toolchain; mips-toolchain (buildroot, newer gcc)
+# miyoo: miyoo
# psp: pspdev
# additionally needed libs for toolchains in $HOME/opt/lib and $HOME/opt/lib64
mv PicoDrive.opk release-$rel/PicoDrive-opendingux_$rel.opk
}
+[ -z "${plat##* miyoo *}" ] && {
+# miyoo: BittBoy >=v1, PocketGo, Powkiddy [QV]90/Q20 (Allwinner F1C100s, ARM926)
+TC=$HOME/opt/miyoo PATH=$TC/bin:$PATH CROSS_COMPILE=arm-miyoo-linux-uclibcgnueabi- CFLAGS="-I $TC/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/include -I $TC/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/include/SDL -Wno-unused-result" LDFLAGS="--sysroot $TC/arm-miyoo-linux-uclibcgnueabi/sysroot" ./configure --platform=miyoo
+TC=$HOME/opt/miyoo PATH=$TC/bin:$PATH make clean all
+mv PicoDrive.zip release-$rel/PicoDrive-miyoo_$rel.zip
+}
+
[ -z "${plat##* psp *}" ] && {
# psp (experimental), pspdev SDK toolchain
TC=$HOME/opt/pspdev PATH=$TC/bin:$PATH CROSS_COMPILE=psp- CFLAGS="-I$TC/psp/sdk/include -D_POSIX_C_SOURCE=199506L" LDFLAGS="-L$TC/psp/sdk/lib" ./configure --platform=psp