mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-06 21:25:03 -05:00
arm: add ARM architecture profile detection
Add some logic to detect classic and M-profile cores, and make this info available to the build system. All existing targets are classic profile. Change-Id: I07bfcd418bcaa6297b9bbf889fc189f167147428
This commit is contained in:
parent
9e79ebf78d
commit
7e8a818d95
2 changed files with 55 additions and 6 deletions
|
|
@ -696,7 +696,13 @@ Lyre prototype 1 */
|
|||
/* define for all cpus from ARM family */
|
||||
#if ARCH == ARCH_ARM
|
||||
#define CPU_ARM
|
||||
#define ARM_ARCH ARCH_VERSION /* ARMv{4,5,6,7} */
|
||||
#define ARM_ARCH ARCH_VERSION /* ARMv{4,5,6,7} */
|
||||
#define ARM_PROFILE ARCH_PROFILE /* Classic, Microcontroller */
|
||||
# if ARM_PROFILE == ARM_PROFILE_MICRO
|
||||
# define CPU_ARM_MICRO
|
||||
# elif ARM_PROFILE == ARM_PROFILE_CLASSIC
|
||||
# define CPU_ARM_CLASSIC
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if ARCH == ARCH_MIPS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue