Skip to content
Snippets Groups Projects
Commit 649d123d authored by Peter Chubb's avatar Peter Chubb
Browse files

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.
parent ac127068
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment