Fix compilation errors on Cortex-A8
Different version of GCC need diffferent combinations of -mcpu -mtune= and -march to build properly for KZM (armv6) and cortex-a8 Make CFLAGS and ASFLAGS consistent, and rely on GCC knowing which arch is which wwhen told what CPU to build for.
This commit is contained in:
parent
ac1270684d
commit
649d123da5
1 changed files with 1 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -339,16 +339,14 @@ DEFINES += -DFASTPATH
|
|||
endif
|
||||
|
||||
ifeq (${ARCH}, arm)
|
||||
CFLAGS += -mtune=${CPU} -marm
|
||||
CFLAGS += -mtune=${CPU} -marm -mcpu=${CPU}
|
||||
ASFLAGS += -mcpu=${CPU}
|
||||
DEFINES += -D$(shell echo ${ARMV}|tr [:lower:] [:upper:]|tr - _)
|
||||
ifeq (${CPU},cortex-a8)
|
||||
DEFINES += -DARM_CORTEX_A8
|
||||
CFLAGS += -march=${ARCH}
|
||||
else
|
||||
ifeq (${CPU},cortex-a9)
|
||||
DEFINES += -DARM_CORTEX_A9
|
||||
CFLAGS += -march=${ARCH}
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue