build, revisions and fixes for opendingux based platforms

This commit is contained in:
kub 2023-11-15 22:38:10 +00:00
parent 7f09f5c477
commit f2554438f8
7 changed files with 19 additions and 15 deletions

19
configure vendored
View file

@ -39,7 +39,7 @@ check_define()
# "" 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"
platform_list="generic pandora gp2x wiz caanoo dingux retrofw gcw0 rg350 opendingux miyoo rpi1 rpi2 psp rg99 odbeta"
platform="generic"
sound_driver_list="oss alsa sdl"
sound_drivers=""
@ -73,6 +73,7 @@ fail()
set_platform()
{
platform=$1
CFLAGS="$CFLAGS -D__`echo $platform | tr '[a-z]' '[A-Z]'`__"
case "$platform" in
rpi1)
MFLAGS="-mcpu=arm1176jzf-s -mfpu=vfp"
@ -83,6 +84,7 @@ set_platform()
have_gles="yes"
;;
generic)
MFLAGS=""
;;
dingux)
# dingoo a320, ritmix rzx-50, the like. all have Ingenic MIPS cpu <= JZ4755
@ -90,7 +92,6 @@ set_platform()
# use static linking since the lib situation is ... let's say vague
#LDFLAGS="$LDFLAGS -static"
# uses a pre-gcw0 version of opendingux
CFLAGS="$CFLAGS -D__DINGUX__"
MFLAGS="-march=mips32 -msoft-float"
platform="opendingux"
;;
@ -98,7 +99,6 @@ set_platform()
# devices using retrofw. AFAIK all have Ingenic MIPS JZ4760 with fpu
sound_drivers="sdl"
# uses it's own modified version of opendingux
CFLAGS="$CFLAGS -D__RETROFW__"
MFLAGS="-march=mips32"
platform="opendingux"
;;
@ -106,22 +106,26 @@ set_platform()
# more modern devices using opendingux, with Ingenic MIPS JZ4770 or newer
sound_drivers="sdl"
# mostly based on opendingux for gcw0, save device type as C define.
CFLAGS="$CFLAGS -D__`echo $platform | tr '[a-z]' '[A-Z]'`__"
CFLAGS="$CFLAGS -D__OPENDINGUX__"
MFLAGS="-march=mips32r2"
platform="opendingux"
;;
odbeta)
# various devices with opendingux beta, arch flags from toolchain default
MFLAGS=""
platform="opendingux"
;;
rg99)
# RG99 using opendingux, with Ingenic MIPS JZ4725B
sound_drivers="sdl"
# mostly based on opendingux for gcw0, save device type as C define.
CFLAGS="$CFLAGS -D__`echo $platform | tr '[a-z]' '[A-Z]'`__"
MFLAGS="-march=mips32"
CFLAGS="$CFLAGS -D__OPENDINGUX__"
platform="opendingux"
;;
miyoo)
# Miyoo BittBoy, PocketGO 1, PowKiddy V90/Q90 with Allwinner F1C100s
sound_drivers="sdl"
CFLAGS="$CFLAGS -D__MIYOO__"
MFLAGS="-mcpu=arm926ej-s -marm"
platform="miyoo"
;;
@ -146,7 +150,6 @@ set_platform()
psp)
# use newlib
SYSLIBS="-lc -lpspuser -lpspkernel"
CFLAGS="$CFLAGS -D__PSP__"
MFLAGS="-march=allegrex"
ARCH=mipsel
;;
@ -276,7 +279,7 @@ arm*)
esac
case "$platform" in
rpi1 | rpi2 | generic | opendingux | miyoo)
rpi1 | rpi2 | generic | opendingux | odbeta | miyoo)
need_sdl="yes"
;;
esac