summaryrefslogtreecommitdiffstats
path: root/firmware/firmware.make
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-01-07 19:49:02 +0100
committerThomas Martitz <kugel@rockbox.org>2012-01-22 18:46:45 +0100
commit8e8e978de6b6283b66a6829fa8c5e3b94674ce7d (patch)
treea9b9e3dfe05653f44fdf9e51c214428371d52a31 /firmware/firmware.make
parent3c17f28eca86ff3ee9e7cef6c4d5198c27b7c03c (diff)
downloadrockbox-8e8e978de6b6283b66a6829fa8c5e3b94674ce7d.tar.gz
rockbox-8e8e978de6b6283b66a6829fa8c5e3b94674ce7d.tar.bz2
rockbox-8e8e978de6b6283b66a6829fa8c5e3b94674ce7d.zip
Add framework to let make automatically pick optimized asm implementations over generic C ones to firmware.
Example: for a file asm/foo.c, make will look for asm/arm/foo.[cS] and compile it if found. If not found it'll fall back to asm/foo.c. Also introduce new ARCH make variable. This is automatically detected by configure. It is distinct from CPU since CPU defines the dir used for the target tree (i.e. firmware/target/X, so it can be "hosted"). ARCH really has the target isa and can be x86 for sims/raaa too. Change-Id: I18e5d2b7b7bbc2ad2be551a74a0fcae5ffbcbf8b
Diffstat (limited to 'firmware/firmware.make')
-rw-r--r--firmware/firmware.make2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/firmware.make b/firmware/firmware.make
index aab735aa91..94747613ba 100644
--- a/firmware/firmware.make
+++ b/firmware/firmware.make
@@ -12,6 +12,8 @@ ifndef APP_TYPE
INCLUDES += -I$(FIRMDIR)/libc/include
endif
+include $(FIRMDIR)/asm/asm.make
+
FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES)
FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC))
ifeq (,$(findstring -DARCHOS_PLAYER,$(TARGET)))