OSDN Git Service

ARM: introduce blind options to select & force THUMB mode
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>
Sun, 9 Jan 2011 00:45:05 +0000 (01:45 +0100)
committerKhem Raj <raj.khem@gmail.com>
Sat, 11 Jun 2011 07:06:03 +0000 (00:06 -0700)
commitbda6117489ad3de5abfb008a8cb065c9059cd60c
treec80645330a5661baae8415b95b16134aade2110f
parent0e5a44e8ccf1c5ac49c1319f74c296e875f290e2
ARM: introduce blind options to select & force THUMB mode

Add three new blind options to set use of Thumb mode:
- COMPILE_IN_THUMB_MODE
  - if set, CFLAGS will contain -mthumb
  - if unset, the compiler's default is used
- HAS_THUMB
  - CPUS with Thumb instruction set can select this
  - use of BX depends on this
- FORCE_THUMB
  - CPUs that are Thumb-only must select this
  - this selects: HAS_THUMB, COMPILE_IN_THUMB_MODE and USE_BX

Also, remove leading space in Rules.mak.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: Khem Raj <raj.khem@gmail.com>
Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Cc: Carmelo AMOROSO <carmelo.amoroso@st.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Rules.mak
extra/Configs/Config.arm