Skip to content
Permalink
Browse files

adding arm64 platform to libretro makefile

  • Loading branch information...
plaidman committed Jun 7, 2019
1 parent b3221bd commit 98c75085a79391978270c9bc21e1d2d1cfd3aca9
Showing with 23 additions and 1 deletion.
  1. +23 −1 libretro/Makefile
@@ -83,8 +83,30 @@ else ifneq (,$(findstring rpi,$(platform)))
INCFLAGS += -I/opt/vc/include
CPUFLAGS += -DARMv5_ONLY
PLATFORM_EXT := unix
TARGET_ARCH = arm
LDFLAGS += -lrt -ldl

# ARM64
else ifneq (,$(findstring arm64,$(platform)))
TARGET := $(TARGET_NAME)_libretro.so
TARGET_ARCH = arm64
fpic := -fPIC
LDFLAGS += -shared -Wl,--version-script=link.T -Wl,--no-undefined
FFMPEGINCFLAGS += -I$(FFMPEGDIR)/linux/aarch64/include
FFMPEGLIBDIR := $(FFMPEGDIR)/linux/aarch64/lib
FFMPEGLDFLAGS += -L$(FFMPEGLIBDIR) -lavformat -lavcodec -lavutil -lswresample -lswscale
INCFLAGS += -I.
HAVE_NEON=1
ifneq (,$(findstring gles,$(platform)))
GLES := 1
GL_LIB := -lGLESv2 -lEGL
LDFLAGS += -lGLESv2 -lEGL
else
GL_LIB := -lGL
endif
CPUFLAGS += -D__arm64__ -DARM64_ASM -D__NEON_OPT
PLATCFLAGS += -DARM64
LDFLAGS += -lrt -ldl
PLATFORM_EXT := unix

# i.MX6
else ifneq (,$(findstring imx6,$(platform)))

0 comments on commit 98c7508

Please sign in to comment.
You can’t perform that action at this time.