Commit 132422d9 authored by Martin Storsjo's avatar Martin Storsjo

Add an option for building for arm in thumb mode

Change-Id: I5a46645064c2fe1c13287cf06c3244820b4e699e
parent 644587cf
...@@ -88,6 +88,7 @@ Build options: ...@@ -88,6 +88,7 @@ Build options:
${toggle_debug} enable/disable debug mode ${toggle_debug} enable/disable debug mode
${toggle_gprof} enable/disable gprof profiling instrumentation ${toggle_gprof} enable/disable gprof profiling instrumentation
${toggle_gcov} enable/disable gcov coverage instrumentation ${toggle_gcov} enable/disable gcov coverage instrumentation
${toggle_thumb} enable/disable building arm assembly in thumb mode
Install options: Install options:
${toggle_install_docs} control whether docs are installed ${toggle_install_docs} control whether docs are installed
...@@ -819,6 +820,11 @@ EOF ...@@ -819,6 +820,11 @@ EOF
enabled debug && add_asflags -g enabled debug && add_asflags -g
asm_conversion_cmd="${source_path}/build/make/ads2gas.pl" asm_conversion_cmd="${source_path}/build/make/ads2gas.pl"
if enabled thumb; then
asm_conversion_cmd="$asm_conversion_cmd -thumb"
check_add_cflags -mthumb
check_add_asflags -mthumb -mimplicit-it=always
fi
;; ;;
rvct) rvct)
CC=armcc CC=armcc
......
...@@ -317,6 +317,7 @@ CMDLINE_SELECT=" ...@@ -317,6 +317,7 @@ CMDLINE_SELECT="
optimizations optimizations
ccache ccache
runtime_cpu_detect runtime_cpu_detect
thumb
libs libs
examples examples
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment