platform: Add miyoo support

Add support for the miyoo platform, another SDL-based platform with a
small cache CPU and its own input mappings.
This commit is contained in:
jSTE0 2022-02-18 22:33:17 +00:00 committed by irixxxx
parent f8aaa200cf
commit f507a70379
4 changed files with 33 additions and 4 deletions

View file

@ -49,7 +49,7 @@ endif
LINKOUT ?= -o
endif
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "rpi1"))
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","gp2x" "opendingux" "miyoo" "rpi1"))
# very small caches, avoid optimization options making the binary much bigger
CFLAGS += -finline-limit=42 -fno-unroll-loops -fno-ipa-cp -ffast-math
# this gets you about 20% better execution speed on 32bit arm/mips
@ -117,6 +117,11 @@ use_inputmap ?= 1
# OpenDingux is a generic platform, really.
PLATFORM := generic
endif
ifeq "$(PLATFORM)" "miyoo"
OBJS += platform/opendingux/inputmap.o
use_inputmap ?= 1
PLATFORM := generic
endif
ifeq ("$(PLATFORM)",$(filter "$(PLATFORM)","rpi1" "rpi2"))
CFLAGS += -DHAVE_GLES -DRASPBERRY
CFLAGS += -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads/ -I/opt/vc/include/interface/vmcs_host/linux/