X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.libretro;h=066da82a5a5bf901212a50e4a211453e105455a8;hb=46a38bdab1a4d9f578a368705a9e3e144fd81189;hp=c2fc9d0f2f12fb9d3803b6102f20926c7bc87d58;hpb=0513a2c2e3c72fdaf75d24fb6b8ab7e7e644536a;p=pcsx_rearmed.git diff --git a/Makefile.libretro b/Makefile.libretro index c2fc9d0f..066da82a 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -66,6 +66,7 @@ else ifneq (,$(findstring CortexA73_G12B,$(platform))) fpic := -fPIC SHARED := -shared -Wl,-version-script=link.T ARCH = arm64 + DYNAREC ?= ari64 CFLAGS += -fomit-frame-pointer -ffast-math -DARM CPUFLAGS += -march=armv8-a+crc -mfpu=neon-fp-armv8 -mcpu=cortex-a73 -mtune=cortex-a73.cortex-a53 @@ -198,6 +199,7 @@ else ifeq ($(platform), libnx) else ifeq ($(platform), arm64) TARGET := $(TARGET_NAME)_libretro.so ARCH := arm64 + DYNAREC = ari64 BUILTIN_GPU = unai fpic := -fPIC CFLAGS := $(filter-out -O2, $(CFLAGS)) @@ -447,6 +449,18 @@ else ifneq (,$(findstring armv,$(platform))) ARCH = arm DYNAREC = ari64 +else ifeq ($(platform), miyoo) + TARGET := $(TARGET_NAME)_libretro.so + CC = /opt/miyoo/usr/bin/arm-linux-gcc + CXX = /opt/miyoo/usr/bin/arm-linux-g++ + fpic := -fPIC + CFLAGS += -mcpu=arm926ej-s -fsingle-precision-constant + CFLAGS += -DGPULIB_USE_MMAP -DGPU_UNAI_USE_INT_DIV_MULTINV -D_MIYOO + ARCH = arm + BUILTIN_GPU = unai + DYNAREC = ari64 + HAVE_NEON = 0 + # Emscripten else ifeq ($(platform), emscripten) TARGET := $(TARGET_NAME)_libretro_$(platform).bc @@ -489,6 +503,9 @@ endif ifeq ($(NO_UNDEF_CHECK)$(shell ld -v 2> /dev/null | awk '{print $$1}'),GNU) MAIN_LDFLAGS += -Wl,--no-undefined endif +ifdef ALLOW_LIGHTREC_ON_ARM +CFLAGS += -DALLOW_LIGHTREC_ON_ARM +endif TARGET ?= libretro.so PLATFORM = libretro