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

More compiler fixes

The in-kernel-directory Makefile was trying to reset CFLAGS, and
sometimes sets them to conflict with the ones set by the Kbuild system.

Only set CFLAGS and ASFLAGS for standalone builds.
(standalone builds are only really supported for KZM anyway).
parent 649d123d
No related branches found
No related tags found
No related merge requests found
......@@ -338,9 +338,12 @@ ifdef FASTPATH
DEFINES += -DFASTPATH
endif
# Only set CFLAGS if we're building standalone.
# common/Makefile.Flags sets NK_CFLAGS in Kbuild environments.
ifndef NK_CFLAGS
ifeq (${ARCH}, arm)
CFLAGS += -mtune=${CPU} -marm -mcpu=${CPU}
ASFLAGS += -mcpu=${CPU}
CFLAGS += -mtune=${CPU} -marm -march=${ARMV}
ASFLAGS += -mcpu=${CPU} -march=${ARMV}
DEFINES += -D$(shell echo ${ARMV}|tr [:lower:] [:upper:]|tr - _)
ifeq (${CPU},cortex-a8)
DEFINES += -DARM_CORTEX_A8
......@@ -355,6 +358,7 @@ ifeq (${ARCH}, ia32)
CFLAGS += -m32 -mno-mmx -mno-sse
ASFLAGS += --32
endif
endif
ifeq (${CPU}, arm1136jf-s)
DEFINES += -DARM1136_WORKAROUND
......
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