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
flycast
Commits
ccb6f649
Commit
ccb6f649
authored
Jun 03, 2017
by
Xor
Browse files
Support for CC_PREFIX on ODROID and changed compiler for assembler.
parent
3b354740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
ccb6f649
...
...
@@ -78,7 +78,7 @@ ifeq ($(ARMV7A_FLAGS),1)
endif
ifeq
($(ARMV7_CORTEX_A9_FLAGS),1)
MFLAGS
+=
-m
tune
=
cortex-a9
MFLAGS
+=
-m
cpu
=
cortex-a9
endif
ifeq
($(ARM_FLOAT_ABI_HARD),1)
...
...
@@ -193,9 +193,15 @@ else ifneq (,$(findstring rpi,$(platform)))
# ODROIDs
else
ifneq
(,$(findstring odroid,$(platform)))
AS
=
${CC_PREFIX}
gcc
#The ngen_arm.S must be compiled with gcc, not as
CC
=
${CC_PREFIX}
gcc
CXX
=
${CC_PREFIX}
g++
EXT
?=
so
TARGET
:=
$(TARGET_NAME)
_libretro.
$(EXT)
ifeq
($(BOARD),1)
BOARD
:=
$(
shell
cat
/proc/cpuinfo |
grep
-i
odroid |
awk
'{print $$3
}
'
)
endif
SHARED
:=
-shared
-Wl
,--version-script
=
link.T
fpic
=
-fPIC
GLES
=
1
...
...
@@ -223,6 +229,10 @@ else ifneq (,$(findstring odroid,$(platform)))
CFLAGS
+=
-mcpu
=
cortex-a9
CXXFLAGS
+=
-mcpu
=
cortex-a9
endif
#Since we are using GCC, we use the CFLAGS and we add some extra parameters to be able to compile (taken from reicast/reicast-emulator)
ASFLAGS
+=
$(CFLAGS)
-c
-frename-registers
-fno-strict-aliasing
-ffast-math
-ftree-vectorize
PLATFORM_EXT
:=
unix
WITH_DYNAREC
=
arm
...
...
@@ -458,7 +468,7 @@ RZDCY_CFLAGS += $(CFLAGS) -c $(OPTFLAGS) -DRELEASE -ffast-math -fomit-frame-poin
CFLAGS
+=
-D__LIBRETRO__
ifeq
($(WITH_DYNAREC), arm)
RZDCY_CFLAGS
+=
-march
=
armv7-a
-m
tune
=
cortex-a9
-mfpu
=
vfpv3-d16
RZDCY_CFLAGS
+=
-march
=
armv7-a
-m
cpu
=
cortex-a9
-mfpu
=
vfpv3-d16
RZDCY_CFLAGS
+=
-DTARGET_LINUX_ARMELv7
else
RZDCY_CFLAGS
+=
-DTARGET_LINUX_x86
...
...
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