run: |
git config --global --add safe.directory $PWD
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
- ./configure --platform=gp2x
+ ./configure --platform=gph
make -j2 PLATFORM_MP3=0
make -C platform/gp2x rel VER=$ver
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
./configure --platform=pandora
make -j2
- mv PicoDrive PicoDrive-pandora
- ${CROSS_COMPILE}strip PicoDrive-pandora
+ make -C platform/pandora rel VER=$ver
+ mv platform/pandora/PicoDrive_*.pnd .
- name: artifacts
uses: actions/upload-artifact@v3
with:
name: Pandora
- path: PicoDrive-pandora
+ path: PicoDrive_*.pnd
build-psp:
runs-on: ubuntu-latest
with:
name: ODbeta lepus
path: PicoDrive-odbeta-*.opk
+
+ build-odbeta-rg99:
+ runs-on: ubuntu-latest
+ container: ghcr.io/irixxxx/toolchain-odbeta-rs90
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ submodules: true
+ - name: build
+ run: |
+ git config --global --add safe.directory $PWD
+ ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
+ ./configure --platform=opendingux --platform=odbeta
+ make -j2
+ mv PicoDrive.opk PicoDrive-odbeta-rg99-$ver.opk
+ - name: artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: ODbeta rg99
+ path: PicoDrive-odbeta-*.opk
# "" means "autodetect".
# TODO this is annoyingly messy. should have platform and device
-platform_list="generic pandora gp2x wiz caanoo dingux retrofw gcw0 rg350 opendingux miyoo rpi1 rpi2 psp rg99 odbeta"
+platform_list="generic pandora gph dingux retrofw gcw0 opendingux odbeta miyoo rpi1 rpi2 psp"
platform="generic"
sound_driver_list="oss alsa sdl"
sound_drivers=""
MFLAGS="-march=mips32"
platform="opendingux"
;;
- opendingux | gcw0 | rg350)
+ opendingux | gcw0)
# more modern devices using opendingux, with Ingenic MIPS JZ4770 or newer
sound_drivers="sdl"
# mostly based on opendingux for gcw0
;;
odbeta)
# various devices with opendingux beta, arch flags from toolchain default
- MFLAGS=""
CFLAGS="$CFLAGS -D__OPENDINGUX__"
+ MFLAGS="" # toolchains are arch specific
platform="opendingux"
;;
pandora)
have_libavcodec="yes"
MFLAGS="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
;;
- gp2x | wiz | caanoo)
+ gph)
sound_drivers="oss"
# compile for OABI if toolchain provides it (faster code on caanoo)
have_arm_oabi="yes"
# creates builds for the supported platforms in the release directory
#
# usage: release.sh <version> [platform...]
-# platforms: gph dingux retrofw gcw0 rg350 miyoo psp pandora odbeta-gcw0 odbeta-lepus
+# platforms: gph dingux retrofw gcw0 opendingux miyoo psp pandora odbeta-gcw0 odbeta-lepus odbeta-rg99
#
# expects toolchains to be installed in these docker containers:
# gph: ghcr.io/irixxxx/toolchain-gp2x
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
# miyoo: ghcr.io/irixxxx/toolchain-miyoo
# psp: docker.io/pspdev/pspdev
+# pandora: ghcr.io/irixxxx/toolchain-pandora
# odbeta-gcw0: ghcr.io/irixxxx/toolchain-odbeta-gcw0
# odbeta-lepus: ghcr.io/irixxxx/toolchain-odbeta-lepus
+# odbeta-rg99: ghcr.io/irixxxx/toolchain-odbeta-rg99
trap "exit" ERR
mkdir -p release-$rel
shift; plat=" $* "
-[ -z "$(echo $plat|tr -d ' ')" ] && plat=" gph dingux retrofw gcw0 rg350 miyoo psp pandora odbeta-gcw0 odbeta-lepus "
+[ -z "$(echo $plat|tr -d ' ')" ] && plat=" gph dingux retrofw gcw0 opendingux miyoo psp pandora odbeta-gcw0 odbeta-lepus odbeta-rg99 "
[ -z "${plat##* gph *}" ] && {
# GPH devices: gp2x, wiz, caanoo, with ubuntu arm gcc 4.7
docker pull ghcr.io/irixxxx/toolchain-gp2x
echo " git config --global --add safe.directory /home/picodrive &&\
- ./configure --platform=gp2x &&\
+ ./configure --platform=gph &&\
make clean && make -j2 all &&\
make -C platform/gp2x rel VER=$rel "\
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-gp2x sh &&
mv PicoDrive.opk release-$rel/PicoDrive-gcw0_$rel.opk
}
-[ -z "${plat##* rg350 *}" ] && {
+[ -z "${plat##* opendingux *}" ] && {
# rg350, gkd350h etc: JZ4770 or newer
docker pull ghcr.io/irixxxx/toolchain-opendingux
echo " git config --global --add safe.directory /home/picodrive &&\
- ./configure --platform=rg350 &&\
+ ./configure --platform=opendingux &&\
make clean && make -j2 all "\
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-opendingux sh &&
mv PicoDrive.opk release-$rel/PicoDrive-opendingux_$rel.opk
echo " git config --global --add safe.directory /home/picodrive &&\
./configure --platform=pandora &&\
make clean && make -j2 all &&\
- \${CROSS_COMPILE}strip -o PicoDrive-pandora-$rel PicoDrive"\
+ make -C platform/pandora rel VER=$rel "\
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-pandora sh &&
-mv PicoDrive-pandora-$rel release-$rel/
+mv platform/pandora/PicoDrive_*.pnd release-$rel/
}
[ -z "${plat##* odbeta-gcw0 *}" ] && {
}
[ -z "${plat##* odbeta-lepus *}" ] && {
-# rg300 and other ingenic lepus based (untested): JZ4760 (mips32r1 with fpu)
+# rg300 and other Ingenic lepus based (untested): JZ4760 (mips32r1 with fpu)
docker pull ghcr.io/irixxxx/toolchain-odbeta-lepus
echo " git config --global --add safe.directory /home/picodrive &&\
./configure --platform=opendingux --platform=odbeta &&\
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-odbeta-lepus sh &&
mv PicoDrive.opk release-$rel/PicoDrive-odbeta-lepus_$rel.opk
}
+
+[ -z "${plat##* odbeta-rg99 *}" ] && {
+# rg99 and other JZ4725B based (untested): JZ4760 (mips32r1 w/o fpu)
+docker pull ghcr.io/irixxxx/toolchain-odbeta-rs90
+echo " git config --global --add safe.directory /home/picodrive &&\
+ ./configure --platform=opendingux --platform=odbeta &&\
+ make clean && make -j2 all "\
+ | docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-odbeta-rs90 sh &&
+mv PicoDrive.opk release-$rel/PicoDrive-odbeta-rg99_$rel.opk
+}