build, add miyoo to release script
authorkub <derkub@gmail.com>
Fri, 11 Mar 2022 21:06:40 +0000 (21:06 +0000)
committerkub <derkub@gmail.com>
Fri, 11 Mar 2022 21:15:35 +0000 (21:15 +0000)
Makefile
tools/release.sh

index c6174ae..c3f5b72 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -118,6 +118,16 @@ use_inputmap ?= 1
 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
index c17a0eb..3731ef9 100755 (executable)
@@ -14,6 +14,7 @@
 #      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
 
@@ -82,6 +83,13 @@ PATH=$HOME/opt/mips-toolchain/usr/bin:$PATH make clean all
 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