Add Rpi2 platform defines.

This commit is contained in:
vanfanel 2016-02-25 15:04:31 +01:00
parent 097458df2a
commit fe6f12eb86

View File

@ -180,6 +180,17 @@ else ifeq ($(platform), wii)
EXTRA_INCLUDES := -I$(DEVKITPRO)/libogc/include
FLAGS += -DHAVE_MKDIR
STATIC_LINKING = 1
else ifeq ($(platform), rpi2)
TARGET := $(TARGET_NAME).so
fpic := -fPIC
SHARED := -shared -Wl,--no-undefined -Wl,--version-script=link.T
CC = gcc
LDFLAGS += $(PTHREAD_FLAGS)
FLAGS += $(PTHREAD_FLAGS) -DHAVE_MKDIR
IS_X86 = 0
FLAGS += -DARM -marm -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard -funsafe-math-optimizations
FLAGS += -fomit-frame-pointer -ffast-math
HAVE_NEON = 1
else ifneq (,$(findstring armv,$(platform)))
TARGET := $(TARGET_NAME).so
fpic := -fPIC