mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
build, cleanup
- remove/rename some platforms from configure - new rg99 odbeta build, courtesy of sydarn - pandora support, courtesy of notaz
This commit is contained in:
parent
2a5ca3d5f0
commit
85174a6d8d
10 changed files with 64 additions and 21 deletions
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
@ -39,7 +39,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory $PWD
|
git config --global --add safe.directory $PWD
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
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 -j2 PLATFORM_MP3=0
|
||||||
make -C platform/gp2x rel VER=$ver
|
make -C platform/gp2x rel VER=$ver
|
||||||
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
|
mv PicoDrive_$ver.zip PicoDrive-gph_$ver.zip
|
||||||
|
@ -62,13 +62,13 @@ jobs:
|
||||||
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
ver=$(cut -d'"' -f2 platform/common/version.h)-$(git rev-parse --short HEAD)
|
||||||
./configure --platform=pandora
|
./configure --platform=pandora
|
||||||
make -j2
|
make -j2
|
||||||
mv PicoDrive PicoDrive-pandora
|
make -C platform/pandora rel VER=$ver
|
||||||
${CROSS_COMPILE}strip PicoDrive-pandora
|
mv platform/pandora/PicoDrive_*.pnd .
|
||||||
- name: artifacts
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Pandora
|
name: Pandora
|
||||||
path: PicoDrive-pandora
|
path: PicoDrive_*.pnd
|
||||||
|
|
||||||
build-psp:
|
build-psp:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -238,3 +238,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ODbeta lepus
|
name: ODbeta lepus
|
||||||
path: PicoDrive-odbeta-*.opk
|
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
|
||||||
|
|
8
configure
vendored
8
configure
vendored
|
@ -39,7 +39,7 @@ check_define()
|
||||||
# "" means "autodetect".
|
# "" means "autodetect".
|
||||||
|
|
||||||
# TODO this is annoyingly messy. should have platform and device
|
# 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"
|
platform="generic"
|
||||||
sound_driver_list="oss alsa sdl"
|
sound_driver_list="oss alsa sdl"
|
||||||
sound_drivers=""
|
sound_drivers=""
|
||||||
|
@ -102,7 +102,7 @@ set_platform()
|
||||||
MFLAGS="-march=mips32"
|
MFLAGS="-march=mips32"
|
||||||
platform="opendingux"
|
platform="opendingux"
|
||||||
;;
|
;;
|
||||||
opendingux | gcw0 | rg350)
|
opendingux | gcw0)
|
||||||
# more modern devices using opendingux, with Ingenic MIPS JZ4770 or newer
|
# more modern devices using opendingux, with Ingenic MIPS JZ4770 or newer
|
||||||
sound_drivers="sdl"
|
sound_drivers="sdl"
|
||||||
# mostly based on opendingux for gcw0
|
# mostly based on opendingux for gcw0
|
||||||
|
@ -119,8 +119,8 @@ set_platform()
|
||||||
;;
|
;;
|
||||||
odbeta)
|
odbeta)
|
||||||
# various devices with opendingux beta, arch flags from toolchain default
|
# various devices with opendingux beta, arch flags from toolchain default
|
||||||
MFLAGS=""
|
|
||||||
CFLAGS="$CFLAGS -D__OPENDINGUX__"
|
CFLAGS="$CFLAGS -D__OPENDINGUX__"
|
||||||
|
MFLAGS="" # toolchains are arch specific
|
||||||
platform="opendingux"
|
platform="opendingux"
|
||||||
;;
|
;;
|
||||||
pandora)
|
pandora)
|
||||||
|
@ -128,7 +128,7 @@ set_platform()
|
||||||
have_libavcodec="yes"
|
have_libavcodec="yes"
|
||||||
MFLAGS="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
|
MFLAGS="-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp"
|
||||||
;;
|
;;
|
||||||
gp2x | wiz | caanoo)
|
gph)
|
||||||
sound_drivers="oss"
|
sound_drivers="oss"
|
||||||
# compile for OABI if toolchain provides it (faster code on caanoo)
|
# compile for OABI if toolchain provides it (faster code on caanoo)
|
||||||
have_arm_oabi="yes"
|
have_arm_oabi="yes"
|
||||||
|
|
|
@ -84,6 +84,9 @@ int main(int argc, char *argv[])
|
||||||
//in_probe();
|
//in_probe();
|
||||||
|
|
||||||
plat_target_init();
|
plat_target_init();
|
||||||
|
if (argc > 1)
|
||||||
|
parse_cmd_line(argc, argv);
|
||||||
|
|
||||||
plat_init();
|
plat_init();
|
||||||
menu_init();
|
menu_init();
|
||||||
|
|
||||||
|
|
|
@ -399,6 +399,7 @@ void plat_init(void)
|
||||||
in_probe();
|
in_probe();
|
||||||
|
|
||||||
bgr_to_uyvy_init();
|
bgr_to_uyvy_init();
|
||||||
|
linux_menu_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void plat_finish(void)
|
void plat_finish(void)
|
||||||
|
|
|
@ -5,3 +5,5 @@ extern const int in_sdl_key_map_sz;
|
||||||
extern const struct menu_keymap in_sdl_joy_map[];
|
extern const struct menu_keymap in_sdl_joy_map[];
|
||||||
extern const int in_sdl_joy_map_sz;
|
extern const int in_sdl_joy_map_sz;
|
||||||
extern const char * const (*in_sdl_key_names)[SDLK_LAST];
|
extern const char * const (*in_sdl_key_names)[SDLK_LAST];
|
||||||
|
|
||||||
|
void linux_menu_init(void);
|
||||||
|
|
|
@ -13,7 +13,10 @@ static const char h_stype[] = "Scaler algorithm for software scaling";
|
||||||
|
|
||||||
#define MENU_OPTIONS_ADV
|
#define MENU_OPTIONS_ADV
|
||||||
|
|
||||||
|
static menu_entry e_menu_keyconfig[];
|
||||||
|
|
||||||
void linux_menu_init(void)
|
void linux_menu_init(void)
|
||||||
{
|
{
|
||||||
|
me_enable(e_menu_keyconfig, MA_CTRL_DEADZONE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# release packaging makefile
|
# release packaging makefile
|
||||||
|
|
||||||
VER := $(shell head -n 1 ../common/version.h | \
|
VER := $(shell head -n 1 ../common/version.h | \
|
||||||
sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')
|
sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/g')
|
||||||
BUILD := $(shell git describe HEAD | grep -- - | \
|
BUILD := $(shell git describe HEAD | grep -- - | \
|
||||||
sed -e 's/.*\-\(.*\)\-.*/\1/')
|
sed -e 's/.*\-\(.*\)\-.*/\1/')
|
||||||
ifneq "$(BUILD)" ""
|
ifneq "$(BUILD)" ""
|
||||||
VER := $(VER)_$(BUILD)
|
VER := $(VER)_$(BUILD)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
|
PND_MAKE ?= pnd_make
|
||||||
|
|
||||||
all: rel
|
all: rel
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ all: rel
|
||||||
rel: ../../PicoDrive PicoDrive.sh picorestore \
|
rel: ../../PicoDrive PicoDrive.sh picorestore \
|
||||||
PicoDrive.png PicoDrive_p.png \
|
PicoDrive.png PicoDrive_p.png \
|
||||||
../../pico/carthw.cfg skin \
|
../../pico/carthw.cfg skin \
|
||||||
../../README /tmp/PicoDrive.pxml
|
../../README.md /tmp/PicoDrive.pxml
|
||||||
rm -rf out
|
rm -rf out
|
||||||
mkdir out
|
mkdir out
|
||||||
cp -r $^ out/
|
cp -r $^ out/
|
||||||
|
|
|
@ -4,8 +4,8 @@ set -e
|
||||||
verfile=../common/version.h
|
verfile=../common/version.h
|
||||||
test -f $verfile
|
test -f $verfile
|
||||||
|
|
||||||
major=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\1/g'`
|
major=`head -n 1 $verfile | sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1/g'`
|
||||||
minor=`head -n 1 $verfile | sed 's/.*"\([0-9]*\)\.\([0-9]*\).*/\2/g'`
|
minor=`head -n 1 $verfile | sed 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\2/g'`
|
||||||
# lame, I know..
|
# lame, I know..
|
||||||
build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'`
|
build=`git describe HEAD | grep -- - | sed -e 's/.*\-\(.*\)\-.*/\1/'`
|
||||||
test -n "$build" && build_post="-$build"
|
test -n "$build" && build_post="-$build"
|
||||||
|
|
|
@ -14,8 +14,10 @@ static const char *men_filter_opts[] = { "nearest", "bilinear", NULL };
|
||||||
#define MENU_OPTIONS_ADV
|
#define MENU_OPTIONS_ADV
|
||||||
|
|
||||||
static menu_entry e_menu_sms_options[];
|
static menu_entry e_menu_sms_options[];
|
||||||
|
static menu_entry e_menu_keyconfig[];
|
||||||
|
|
||||||
void psp_menu_init(void)
|
void psp_menu_init(void)
|
||||||
{
|
{
|
||||||
me_enable(e_menu_sms_options, MA_SMSOPT_GHOSTING, 0);
|
me_enable(e_menu_sms_options, MA_SMSOPT_GHOSTING, 0);
|
||||||
|
me_enable(e_menu_keyconfig, MA_CTRL_DEADZONE, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# creates builds for the supported platforms in the release directory
|
# creates builds for the supported platforms in the release directory
|
||||||
#
|
#
|
||||||
# usage: release.sh <version> [platform...]
|
# 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:
|
# expects toolchains to be installed in these docker containers:
|
||||||
# gph: ghcr.io/irixxxx/toolchain-gp2x
|
# gph: ghcr.io/irixxxx/toolchain-gp2x
|
||||||
|
@ -14,8 +14,10 @@
|
||||||
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
|
# gcw0, rg350: ghcr.io/irixxxx/toolchain-opendingux
|
||||||
# miyoo: ghcr.io/irixxxx/toolchain-miyoo
|
# miyoo: ghcr.io/irixxxx/toolchain-miyoo
|
||||||
# psp: docker.io/pspdev/pspdev
|
# psp: docker.io/pspdev/pspdev
|
||||||
|
# pandora: ghcr.io/irixxxx/toolchain-pandora
|
||||||
# odbeta-gcw0: ghcr.io/irixxxx/toolchain-odbeta-gcw0
|
# odbeta-gcw0: ghcr.io/irixxxx/toolchain-odbeta-gcw0
|
||||||
# odbeta-lepus: ghcr.io/irixxxx/toolchain-odbeta-lepus
|
# odbeta-lepus: ghcr.io/irixxxx/toolchain-odbeta-lepus
|
||||||
|
# odbeta-rg99: ghcr.io/irixxxx/toolchain-odbeta-rg99
|
||||||
|
|
||||||
trap "exit" ERR
|
trap "exit" ERR
|
||||||
|
|
||||||
|
@ -23,14 +25,14 @@ rel=$1
|
||||||
mkdir -p release-$rel
|
mkdir -p release-$rel
|
||||||
|
|
||||||
shift; plat=" $* "
|
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 *}" ] && {
|
[ -z "${plat##* gph *}" ] && {
|
||||||
# GPH devices: gp2x, wiz, caanoo, with ubuntu arm gcc 4.7
|
# GPH devices: gp2x, wiz, caanoo, with ubuntu arm gcc 4.7
|
||||||
docker pull ghcr.io/irixxxx/toolchain-gp2x
|
docker pull ghcr.io/irixxxx/toolchain-gp2x
|
||||||
echo " git config --global --add safe.directory /home/picodrive &&\
|
echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
./configure --platform=gp2x &&\
|
./configure --platform=gph &&\
|
||||||
make clean && make -j2 all &&\
|
make clean && make -j2 all &&\
|
||||||
make -C platform/gp2x rel VER=$rel "\
|
make -C platform/gp2x rel VER=$rel "\
|
||||||
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-gp2x sh &&
|
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-gp2x sh &&
|
||||||
|
@ -68,11 +70,11 @@ echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
mv PicoDrive.opk release-$rel/PicoDrive-gcw0_$rel.opk
|
mv PicoDrive.opk release-$rel/PicoDrive-gcw0_$rel.opk
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -z "${plat##* rg350 *}" ] && {
|
[ -z "${plat##* opendingux *}" ] && {
|
||||||
# rg350, gkd350h etc: JZ4770 or newer
|
# rg350, gkd350h etc: JZ4770 or newer
|
||||||
docker pull ghcr.io/irixxxx/toolchain-opendingux
|
docker pull ghcr.io/irixxxx/toolchain-opendingux
|
||||||
echo " git config --global --add safe.directory /home/picodrive &&\
|
echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
./configure --platform=rg350 &&\
|
./configure --platform=opendingux &&\
|
||||||
make clean && make -j2 all "\
|
make clean && make -j2 all "\
|
||||||
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-opendingux sh &&
|
| 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
|
mv PicoDrive.opk release-$rel/PicoDrive-opendingux_$rel.opk
|
||||||
|
@ -106,9 +108,9 @@ docker pull ghcr.io/irixxxx/toolchain-pandora
|
||||||
echo " git config --global --add safe.directory /home/picodrive &&\
|
echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
./configure --platform=pandora &&\
|
./configure --platform=pandora &&\
|
||||||
make clean && make -j2 all &&\
|
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 &&
|
| 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-gcw0 *}" ] && {
|
||||||
|
@ -122,7 +124,7 @@ mv PicoDrive.opk release-$rel/PicoDrive-odbeta-gcw0_$rel.opk
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -z "${plat##* odbeta-lepus *}" ] && {
|
[ -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
|
docker pull ghcr.io/irixxxx/toolchain-odbeta-lepus
|
||||||
echo " git config --global --add safe.directory /home/picodrive &&\
|
echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
./configure --platform=opendingux --platform=odbeta &&\
|
./configure --platform=opendingux --platform=odbeta &&\
|
||||||
|
@ -130,3 +132,13 @@ echo " git config --global --add safe.directory /home/picodrive &&\
|
||||||
| docker run -i -v$PWD:/home/picodrive -w/home/picodrive --rm ghcr.io/irixxxx/toolchain-odbeta-lepus sh &&
|
| 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
|
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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue