Add a generic 32-bit ARM rule.
This commit is contained in:
parent
c0ede35263
commit
16c67ddc44
|
@ -56,7 +56,7 @@ ifeq (,$(platform))
|
||||||
else ifneq (,$(findstring ODROIDU2,$(HARDWARE)))
|
else ifneq (,$(findstring ODROIDU2,$(HARDWARE)))
|
||||||
platform = odroidu2
|
platform = odroidu2
|
||||||
else
|
else
|
||||||
$(error Unsupported Hardware)
|
platform = arm
|
||||||
endif
|
endif
|
||||||
else ifneq (,$(findstring mips,$(ARCH)))
|
else ifneq (,$(findstring mips,$(ARCH)))
|
||||||
platform = gcwz
|
platform = gcwz
|
||||||
|
@ -86,6 +86,14 @@ else ifneq (,$(findstring x64,$(platform)))
|
||||||
CFLAGS += -D TARGET_LINUX_x64 -D TARGET_NO_AREC -fsingle-precision-constant
|
CFLAGS += -D TARGET_LINUX_x64 -D TARGET_NO_AREC -fsingle-precision-constant
|
||||||
CXXFLAGS += -fexceptions
|
CXXFLAGS += -fexceptions
|
||||||
|
|
||||||
|
# Generic 32 bit ARM (a.k.a. ARMhf/ARMv7)
|
||||||
|
else ifneq (,$(findstring arm,$(platform)))
|
||||||
|
MFLAGS += -marm -mfpu=neon -mfloat-abi=hard -funroll-loops -march=armv7-a
|
||||||
|
ASFLAGS += -mfpu=neon -mfloat-abi=hard -march=armv7-a
|
||||||
|
CFLAGS += -D TARGET_BEAGLE -D TARGET_LINUX_ARMELv7 -DARM_HARDFP -fsingle-precision-constant
|
||||||
|
USE_GLES := 1
|
||||||
|
USE_X11 := 1
|
||||||
|
|
||||||
# LinCPP
|
# LinCPP
|
||||||
else ifneq (,$(findstring lincpp,$(platform)))
|
else ifneq (,$(findstring lincpp,$(platform)))
|
||||||
CPP_REC := 1
|
CPP_REC := 1
|
||||||
|
|
Loading…
Reference in New Issue