forked from len0rd/rockbox
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
This commit is contained in:
parent
c56950ea3a
commit
7b1a369cf7
10 changed files with 69 additions and 39 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue