From e4841bdc58685ae0f9e2f7ba331d31896f40c4ee Mon Sep 17 00:00:00 2001 From: Bernhard Rosenkraenzer Date: Tue, 6 Dec 2011 19:42:20 +0059 Subject: origen: Use CPU specific optimizations only if the compiler supports them The prebuilt compiler is too old to handle -mcpu=cortex-a9 - use it only if we're using a compiler that can take it. Signed-off-by: Bernhard Rosenkraenzer --- BoardConfig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 25396a0..3011e0d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -62,7 +62,7 @@ USE_OPENGL_RENDERER := true BOARD_KERNEL_CMDLINE := console=ttySAC2 root=/dev/mmcblk0p2 # Origen uses an Exynos4 -- Cortex A9 -TARGET_EXTRA_CFLAGS += -mtune=cortex-a9 -mcpu=cortex-a9 +TARGET_EXTRA_CFLAGS += $(call cc-option,-mtune=cortex-a9,$(call cc-option,-mtune=cortex-a8)) $(call cc-option,-mcpu=cortex-a9,$(call cc-option,-mcpu=cortex-a8)) # ARMs gator (DS-5) TARGET_USE_GATOR := true -- cgit v1.2.3