Skip to content
Permalink
Browse files

Merge pull request #12089 from plaidman/master

adding arm64 platform to libretro makefile
  • Loading branch information...
hrydgard committed Jun 7, 2019
2 parents b3221bd + 98c7508 commit 48b8c444c749458cee492fd256a4db3fe36d027a
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 48b8c44

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