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 /firmware/asm/asm.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 'firmware/asm/asm.make')
-rw-r--r-- | firmware/asm/asm.make | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/asm/asm.make b/firmware/asm/asm.make index 17b666ee5e..69147c506e 100644 --- a/firmware/asm/asm.make +++ b/firmware/asm/asm.make | |||
@@ -10,8 +10,9 @@ | |||
10 | # Collect dummy C files in firmware/asm | 10 | # Collect dummy C files in firmware/asm |
11 | ASM_DUMMY_SRC := $(notdir $(call preprocess, $(FIRMDIR)/asm/SOURCES)) | 11 | ASM_DUMMY_SRC := $(notdir $(call preprocess, $(FIRMDIR)/asm/SOURCES)) |
12 | 12 | ||
13 | ASM_ARCH := $(subst arch_,,$(ARCH)) # strip arch_ prefix from $(ARCH) | ||
13 | # Get the corresponding real source files under firmware/asm/$ARCH (C or ASM) | 14 | # Get the corresponding real source files under firmware/asm/$ARCH (C or ASM) |
14 | ASM_C_SRC := $(addprefix $(FIRMDIR)/asm/$(ARCH)/,$(ASM_DUMMY_SRC)) | 15 | ASM_C_SRC := $(addprefix $(FIRMDIR)/asm/$(ASM_ARCH)/,$(ASM_DUMMY_SRC)) |
15 | ASM_S_SRC := $(ASM_C_SRC:.c=.S) | 16 | ASM_S_SRC := $(ASM_C_SRC:.c=.S) |
16 | 17 | ||
17 | # ASM_SRC now contains only files that exist under $ARCH | 18 | # ASM_SRC now contains only files that exist under $ARCH |