mirror of
https://github.com/libretro/mgba.git
synced 2025-02-08 08:46:57 +00:00
Added A7A7
This commit is contained in:
parent
c6ac681b7b
commit
fa2c1689f5
@ -56,9 +56,11 @@ ifeq ($(platform),)
|
||||
platform = win
|
||||
endif
|
||||
else ifneq (,$(findstring armv,$(platform)))
|
||||
override platform += unix
|
||||
ifeq (,$(findstring classic_,$(platform)))
|
||||
override platform += unix
|
||||
endif
|
||||
else ifneq (,$(findstring rpi3,$(platform)))
|
||||
override platform += unix
|
||||
override platform += unix
|
||||
endif
|
||||
|
||||
prefix := /usr
|
||||
@ -97,6 +99,38 @@ ifneq (,$(findstring unix,$(platform)))
|
||||
CFLAGS += -fomit-frame-pointer -ffast-math
|
||||
HAVE_VFS_FD = 0
|
||||
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
|
||||
else ifeq ($(platform), osx)
|
||||
@ -330,12 +364,13 @@ else
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
@echo "** BUILDING $(TARGET) FOR PLATFORM $(platform) **"
|
||||
ifeq ($(STATIC_LINKING), 1)
|
||||
$(AR) rcs $@ $(OBJS)
|
||||
else
|
||||
$(CC) -o $@ $(SHARED) $(OBJS) $(LDFLAGS) $(LIBS)
|
||||
endif
|
||||
|
||||
@echo "** BUILD SUCCESSFUL! GG NO RE **"
|
||||
|
||||
clean-objs:
|
||||
rm -f $(OBJS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user