Skip to content

Commit 903ef16

Browse files
committed
add Miyoo target
1 parent 68164b2 commit 903ef16

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.gitlab-ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ include:
9696
- project: 'libretro-infrastructure/ci-templates'
9797
file: '/dingux-mips32.yml'
9898

99+
# OpenDingux (ARM)
100+
- project: 'libretro-infrastructure/ci-templates'
101+
file: '/dingux-arm32.yml'
102+
99103
#################################### MISC ##################################
100104
# Emscripten
101105
- project: 'libretro-infrastructure/ci-templates'
@@ -253,6 +257,12 @@ libretro-build-retrofw-mips32:
253257
- .libretro-retrofw-mips32-make-default
254258
- .core-defs
255259

260+
# Miyoo
261+
libretro-build-miyoo-arm32:
262+
extends:
263+
- .libretro-miyoo-arm32-make-default
264+
- .core-defs
265+
256266
#################################### MISC ##################################
257267
# Emscripten
258268
libretro-build-emscripten:

Makefile.libretro

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,28 @@ else ifeq ($(platform), retrofw)
396396
CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops
397397
CFLAGS += -fmerge-all-constants -fno-math-errno -fno-stack-protector -fno-ident
398398
CFLAGS += -DRETROFW
399-
399+
400+
# MIYOO
401+
else ifeq ($(platform), miyoo)
402+
TARGET := $(TARGET_NAME)_libretro.so
403+
HAS_GPU=0
404+
CC = /opt/miyoo/usr/bin/arm-linux-gcc
405+
CXX = /opt/miyoo/usr/bin/arm-linux-g++
406+
AR = /opt/miyoo/usr/bin/arm-linux-ar
407+
fpic := -fPIC
408+
SHARED := -shared -Wl,-no-undefined -Wl,--version-script=$(CORE_DIR)/link.T
409+
LDFLAGS += $(PTHREAD_FLAGS) -flto -fplt
410+
CFLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
411+
CFLAGS += -Ofast
412+
CFLAGS += -DRETROFW
413+
CFLAGS += -march=armv5te -mtune=arm926ej-s
414+
CFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
415+
CFLAGS += -fomit-frame-pointer -ffast-math -fmerge-all-constants -flto
416+
CFLAGS += -funsafe-math-optimizations -fsingle-precision-constant -fexpensive-optimizations
417+
CFLAGS += -fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops
418+
CFLAGS += -fmerge-all-constants -fno-math-errno -fno-stack-protector -fno-ident
419+
CFLAGS += -DRETROFW
420+
400421
# Windows MSVC 2003 Xbox 1
401422
else ifeq ($(platform), xbox1_msvc2003)
402423
TARGET := $(TARGET_NAME)_libretro_xdk1.lib

0 commit comments

Comments
 (0)