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:
Peter Chubb 2014-07-25 09:51:04 +10:00
parent ac1270684d
commit 649d123da5

View file

@ -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