Added A7A7

This commit is contained in:
Ryan 'Swingflip' Hamlin 2018-10-31 11:35:17 +00:00
parent c6ac681b7b
commit fa2c1689f5

View File

@ -56,9 +56,11 @@ ifeq ($(platform),)
platform = win platform = win
endif endif
else ifneq (,$(findstring armv,$(platform))) else ifneq (,$(findstring armv,$(platform)))
override platform += unix ifeq (,$(findstring classic_,$(platform)))
override platform += unix
endif
else ifneq (,$(findstring rpi3,$(platform))) else ifneq (,$(findstring rpi3,$(platform)))
override platform += unix override platform += unix
endif endif
prefix := /usr prefix := /usr
@ -97,6 +99,38 @@ ifneq (,$(findstring unix,$(platform)))
CFLAGS += -fomit-frame-pointer -ffast-math CFLAGS += -fomit-frame-pointer -ffast-math
HAVE_VFS_FD = 0 HAVE_VFS_FD = 0
endif endif
# (armv7 a7, hard point, neon based) ###
# NESC, SNESC, C64 mini
else ifeq ($(platform), classic_armv7_a7)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
SHARED := -shared -Wl,--version-script=link.T -Wl,--no-undefined
CFLAGS += -Ofast \
-flto=4 -fwhole-program -fuse-linker-plugin \
-fdata-sections -ffunction-sections -Wl,--gc-sections \
-fno-stack-protector -fno-ident -fomit-frame-pointer \
-falign-functions=1 -falign-jumps=1 -falign-loops=1 \
-fno-unwind-tables -fno-asynchronous-unwind-tables -fno-unroll-loops \
-fmerge-all-constants -fno-math-errno \
-marm -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
CXXFLAGS += $(CFLAGS)
CPPFLAGS += $(CFLAGS)
ASFLAGS += $(CFLAGS)
HAVE_NEON = 1
ARCH = arm
BUILTIN_GPU = neon
HAVE_VFS_FD = 0
ifeq ($(shell echo `$(CC) -dumpversion` "< 4.9" | bc -l), 1)
CFLAGS += -march=armv7-a
else
CFLAGS += -march=armv7ve
# If gcc is 5.0 or later
ifeq ($(shell echo `$(CC) -dumpversion` ">= 5" | bc -l), 1)
LDFLAGS += -static-libgcc -static-libstdc++
endif
endif
#######################################
# OS X # OS X
else ifeq ($(platform), osx) else ifeq ($(platform), osx)
@ -330,12 +364,13 @@ else
all: $(TARGET) all: $(TARGET)
$(TARGET): $(OBJS) $(TARGET): $(OBJS)
@echo "** BUILDING $(TARGET) FOR PLATFORM $(platform) **"
ifeq ($(STATIC_LINKING), 1) ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $(OBJS) $(AR) rcs $@ $(OBJS)
else else
$(CC) -o $@ $(SHARED) $(OBJS) $(LDFLAGS) $(LIBS) $(CC) -o $@ $(SHARED) $(OBJS) $(LDFLAGS) $(LIBS)
endif endif
@echo "** BUILD SUCCESSFUL! GG NO RE **"
clean-objs: clean-objs:
rm -f $(OBJS) rm -f $(OBJS)