From 7b1a369cf7801f98139189ade463f3a460f78d85 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 28 Mar 2012 22:57:13 +0200 Subject: build system: completely autodetect target cpu architecture. The existing ARCH Makefile variable is exported to the C code as well. Additionally the version (arm-only for now) is detected as well. This allows to for complete autodetection, i.e. that optimized ASM is picked up if determined by preprocessor (CPU_ARM, etc). Building a sim/raaa on a arm host will now automatically generate a arm optmized build like we have for native targets. Change-Id: I0b35393f8fb3ebd20beaa9e7371fa57bf3782107 --- apps/codecs/lib/libcodec.make | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/codecs/lib/libcodec.make') diff --git a/apps/codecs/lib/libcodec.make b/apps/codecs/lib/libcodec.make index ca9b2c4..7aef72f 100644 --- a/apps/codecs/lib/libcodec.make +++ b/apps/codecs/lib/libcodec.make @@ -20,7 +20,7 @@ CODECLIBFLAGS = $(filter-out -O%,$(CODECFLAGS)) ifeq ($(MEMORYSIZE),2) CODECLIBFLAGS += -Os -else ifeq ($(CPU),coldfire) +else ifeq ($(ARCH),arch_m68k) CODECLIBFLAGS += -O2 else CODECLIBFLAGS += -O1 -- cgit v1.1