From d26d4c29652003d39a139775c122217ac95000a8 Mon Sep 17 00:00:00 2001 From: kub Date: Fri, 11 Mar 2022 21:06:40 +0000 Subject: [PATCH] build, add miyoo to release script --- Makefile | 10 ++++++++++ tools/release.sh | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/Makefile b/Makefile index c6174aea..c3f5b728 100644 --- 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 diff --git a/tools/release.sh b/tools/release.sh index c17a0eb7..3731ef9f 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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 -- 2.39.5