Unverified Commit f58bc50c authored by Manuel Alfayate Corchete's avatar Manuel Alfayate Corchete Committed by GitHub
Browse files

Change Rpi compilation flags so they are really passed to GCC

parent b687c7fb
......@@ -65,13 +65,17 @@ ifneq (,$(findstring unix,$(platform)))
# Raspberry Pi
ifneq (,$(findstring rpi,$(platform)))
FLAGS += -fomit-frame-pointer -ffast-math
CFLAGS += -fomit-frame-pointer -ffast-math
CXXFLAGS += -fomit-frame-pointer -ffast-math
ifneq (,$(findstring rpi1,$(platform)))
FLAGS += -DARM -marm -march=armv6j -mfpu=vfp -mfloat-abi=hard
CFLAGS += -DARM -marm -march=armv6j -mfpu=vfp -mfloat-abi=hard
CXXFLAGS += -DARM -marm -march=armv6j -mfpu=vfp -mfloat-abi=hard
else ifneq (,$(findstring rpi2,$(platform)))
FLAGS += -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
CFLAGS += -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
CXXFLAGS += -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
else ifneq (,$(findstring rpi3,$(platform)))
FLAGS += -DARM -marm -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
CFLAGS += -DARM -marm -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
CXXFLAGS += -DARM -marm -mcpu=cortex-a53 -mfpu=neon-fp-armv8 -mfloat-abi=hard
endif
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment