From 4be26b43837bee0274a0907f2ed70f5a2e8cd149 Mon Sep 17 00:00:00 2001 From: Christopher Covington Date: Fri, 7 Feb 2014 12:04:43 -0500 Subject: [PATCH] Make -march settings part of USERCFLAGS The current -march settings will cause an error if the user a conflicting flags such as -mcpu=cortex-a15. Use USERCFLAGS instead of CFLAGS so that a default is provided but can be overridden. Change-Id: I8ffecd6bfd7ad5794486a5d14d27bce3170898d3 Acked-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 109a12406..36e6231e3 100644 --- a/Makefile +++ b/Makefile @@ -63,11 +63,11 @@ ifeq ($(shell echo $(ARCH) | sed -e 's/arm.*/arm/'),arm) DEFINES := -DCONFIG_ARMV$(ARMV) ifeq ($(ARMV),6) - CFLAGS += -march=armv6 + USERCFLAGS += -march=armv6 endif ifeq ($(ARMV),7) - CFLAGS += -march=armv7-a + USERCFLAGS += -march=armv7-a endif endif