Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 5b62bb5

Browse files
authored
Merge pull request #1640 from mpcore-hub/patch-2
add platform sun8i
2 parents 0086cbc + 5ac6a76 commit 5b62bb5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

shell/linux/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,22 @@ else ifneq (,$(findstring armv7h,$(platform)))
155155
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
156156
USE_GLES := 1
157157

158+
# sun8i Allwinner H2+ / H3
159+
# like Orange PI, Nano PI, Banana PI, Tritium
160+
else ifneq (,$(findstring sun8i,$(platform)))
161+
MFLAGS += -marm -mfloat-abi=hard -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
162+
ASFLAGS += -marm -mfloat-abi=hard -march=armv7-a -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard
163+
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -funsafe-math-optimizations
164+
CC = gcc -std=gnu99
165+
CXX = g++ -std=gnu++11
166+
ifneq (,$(findstring sdl,$(platform)))
167+
CFLAGS += -D GL_GLEXT_PROTOTYPES
168+
USE_SDL := 1
169+
USE_GLES := 1
170+
else
171+
USE_GLES := 1
172+
endif
173+
158174
# LinCPP
159175
else ifneq (,$(findstring lincpp,$(platform)))
160176
CPP_REC := 1

0 commit comments

Comments
 (0)