[CRIU] [RFC 09/11] Make -march settings part of USERCFLAGS

Christopher Covington cov at codeaurora.org
Fri Feb 7 09:04:43 PST 2014


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
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 556782a..4ffefc4 100644
--- a/Makefile
+++ b/Makefile
@@ -60,11 +60,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
 
-- 
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by the Linux Foundation.



More information about the CRIU mailing list