diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-03-28 22:57:13 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-03-28 23:02:39 +0200 |
commit | 7b1a369cf7801f98139189ade463f3a460f78d85 (patch) | |
tree | 27f7fb3628f5692f508c1e3e439fa9d657869c77 /apps/codecs/demac/libdemac.make | |
parent | c56950ea3a9e0244461ce445f25bd7a80c8f7199 (diff) | |
download | rockbox-7b1a369cf7801f98139189ade463f3a460f78d85.tar.gz rockbox-7b1a369cf7801f98139189ade463f3a460f78d85.zip |
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
Diffstat (limited to 'apps/codecs/demac/libdemac.make')
-rw-r--r-- | apps/codecs/demac/libdemac.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/demac/libdemac.make b/apps/codecs/demac/libdemac.make index 4614344849..62ad53dfcc 100644 --- a/apps/codecs/demac/libdemac.make +++ b/apps/codecs/demac/libdemac.make | |||
@@ -12,7 +12,7 @@ DEMACLIB := $(CODECDIR)/libdemac.a | |||
12 | DEMACLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/demac/libdemac/SOURCES) | 12 | DEMACLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/demac/libdemac/SOURCES) |
13 | DEMACLIB_OBJ := $(call c2obj, $(DEMACLIB_SRC)) | 13 | DEMACLIB_OBJ := $(call c2obj, $(DEMACLIB_SRC)) |
14 | OTHER_SRC += $(DEMACLIB_SRC) | 14 | OTHER_SRC += $(DEMACLIB_SRC) |
15 | ifeq ($(CPU),arm) | 15 | ifeq ($(ARCH),arch_arm) |
16 | OTHER_SRC += $(APPSDIR)/codecs/demac/libdemac/udiv32_arm-pre.S | 16 | OTHER_SRC += $(APPSDIR)/codecs/demac/libdemac/udiv32_arm-pre.S |
17 | endif | 17 | endif |
18 | DEMACLIB_PRE := $(subst .a,-pre.a,$(DEMACLIB)) | 18 | DEMACLIB_PRE := $(subst .a,-pre.a,$(DEMACLIB)) |