Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
81-libretro
Commits
7e8153cd
Unverified
Commit
7e8153cd
authored
Dec 04, 2021
by
Poligraf
Committed by
GitHub
Dec 04, 2021
Browse files
add retrofw target (#34)
Co-authored-by: Poligraf <>
parent
30344d34
Pipeline
#74715
failed with stages
in 8 minutes and 47 seconds
Changes
2
Pipelines
23
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
7e8153cd
...
...
@@ -83,6 +83,10 @@ include:
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/libnx-static.yml'
# OpenDingux
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/dingux-mips32.yml'
# OpenDingux (ARM)
-
project
:
'
libretro-infrastructure/ci-templates'
file
:
'
/dingux-arm32.yml'
...
...
@@ -232,8 +236,14 @@ libretro-build-vita:
-
.libretro-vita-static-retroarch-master
-
.core-defs
# RetroFW
libretro-build-retrofw-mips32
:
extends
:
-
.libretro-retrofw-mips32-make-default
-
.core-defs
# Miyoo
libretro-build-miyoo-arm32
:
extends
:
-
.libretro-miyoo-arm32-make-default
-
.core-defs
\ No newline at end of file
-
.core-defs
Makefile.libretro
View file @
7e8153cd
...
...
@@ -340,6 +340,27 @@ else ifeq ($(platform), miyoo)
CFLAGS
+=
-fno-common
-ftree-vectorize
-funswitch-loops
DEFINES
+=
-std
=
c99
# RETROFW
else
ifeq
($(platform), retrofw)
TARGET
:=
$(TARGET_NAME)
_libretro.so
fpic
:=
-fPIC
SHARED
:=
-shared
-Wl
,--version-script
=
build/link.T
-Wl
,--no-undefined
CC
=
/opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
CC_AS
=
/opt/retrofw-toolchain/usr/bin/mipsel-linux-gcc
CXX
=
/opt/retrofw-toolchain/usr/bin/mipsel-linux-g++
AR
=
/opt/retrofw-toolchain/usr/bin/mipsel-linux-ar
LDFLAGS
+=
-mplt
-flto
-fuse-linker-plugin
-march
=
mips32
-mtune
=
mips32
-mhard-float
-flto
-fPIC
PLATFORM_DEFINES
+=
-D_GNU_SOURCE
CFLAGS
+=
-fomit-frame-pointer
-ffast-math
-march
=
mips32
-mtune
=
mips32
-mhard-float
CFLAGS
+=
-falign-functions
=
1
-falign-jumps
=
1
-falign-loops
=
1
CFLAGS
+=
-fomit-frame-pointer
-fmerge-all-constants
-flto
CFLAGS
+=
-funsafe-math-optimizations
-fsingle-precision-constant
-fexpensive-optimizations
CFLAGS
+=
-fno-unwind-tables
-fno-asynchronous-unwind-tables
-fno-unroll-loops
CFLAGS
+=
-fmerge-all-constants
-fno-math-errno
-fno-stack-protector
-fno-ident
CXXFLAGS
+=
-flto
-fPIC
DEFINES
+=
-std
=
c99
HAVE_COMPAT
=
1
# ARM
else
ifneq
(,$(findstring armv,$(platform)))
TARGET
:=
$(TARGET_NAME)
_libretro.so
...
...
@@ -419,6 +440,9 @@ ifeq ($(DEBUG), 1)
else
ifeq
($(platform), emscripten)
CFLAGS
+=
-O2
CXXFLAGS
+=
-O2
-fno-exceptions
-fno-rtti
-DHAVE_STDINT_H
else
ifeq
($(platform), retrofw)
CFLAGS
+=
-Ofast
CXXFLAGS
+=
-Ofast
-fno-exceptions
-fno-rtti
-DHAVE_STDINT_H
else
CFLAGS
+=
-O3
CXXFLAGS
+=
-O3
-fno-exceptions
-fno-rtti
-DHAVE_STDINT_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment