Add framework to let make automatically pick optimized asm implementations over gener...
commit8e8e978de6b6283b66a6829fa8c5e3b94674ce7d
authorThomas Martitz <kugel@rockbox.org>
Sat, 7 Jan 2012 18:49:02 +0000 (7 19:49 +0100)
committerThomas Martitz <kugel@rockbox.org>
Sun, 22 Jan 2012 17:46:45 +0000 (22 18:46 +0100)
treea9b9e3dfe05653f44fdf9e51c214428371d52a31
parent3c17f28eca86ff3ee9e7cef6c4d5198c27b7c03c
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
firmware/asm/SOURCES [new file with mode: 0644]
firmware/asm/asm.make [new file with mode: 0644]
firmware/firmware.make
tools/configure