Removed pine64 target and added OrangePi PC in the Makefile

This commit is contained in:
Dimitris Panokostas 2018-10-03 00:21:13 +02:00
parent b6e62bae8e
commit 7db0eb5cf3

View file

@ -98,13 +98,17 @@ USE_SDL2 = 1
CFLAGS += -DUSE_SDL2
NAME = amiberry-rpi1-sdl2
else ifeq ($(PLATFORM),pine64)
else ifeq ($(PLATFORM),orangepi-pc)
USE_SDL2 = 1
CPU_FLAGS += -march=armv7-a -mfpu=vfpv3-d16
CFLAGS += -DARMV6T2 -D__arm__ -DARM_HAS_DIV -DUSE_SDL2
CC = arm-linux-gnueabihf-gcc
CXX = arm-linux-gnueabihf-g++
NAME = amiberry-pine64
CPU_FLAGS += -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4
CFLAGS += -DARMV6T2 -DUSE_ARMNEON -DARM_HAS_DIV -DUSE_SDL2 -DMALI_GPU -DUSE_RENDER_THREAD
HAVE_NEON = 1
NAME = amiberry-orangepi-pc
ifdef DEBUG
# Otherwise we'll get compilation errors, check https://tls.mbed.org/kb/development/arm-thumb-error-r7-cannot-be-used-in-asm-here
# quote: The assembly code in bn_mul.h is optimized for the ARM platform and uses some registers, including r7 to efficiently do an operation. GCC also uses r7 as the frame pointer under ARM Thumb assembly.
MORE_CFLAGS += -fomit-frame-pointer
endif
else ifeq ($(PLATFORM),xu4)
USE_SDL2 = 1