From 132422d9ab705bf8684939f425eab7780e58c2bc Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Mon, 13 May 2013 01:16:09 +0300 Subject: [PATCH] Add an option for building for arm in thumb mode Change-Id: I5a46645064c2fe1c13287cf06c3244820b4e699e --- build/make/configure.sh | 6 ++++++ configure | 1 + 2 files changed, 7 insertions(+) diff --git a/build/make/configure.sh b/build/make/configure.sh index 71efa99..7070ec0 100755 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -88,6 +88,7 @@ Build options: ${toggle_debug} enable/disable debug mode ${toggle_gprof} enable/disable gprof profiling instrumentation ${toggle_gcov} enable/disable gcov coverage instrumentation + ${toggle_thumb} enable/disable building arm assembly in thumb mode Install options: ${toggle_install_docs} control whether docs are installed @@ -819,6 +820,11 @@ EOF enabled debug && add_asflags -g 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) CC=armcc diff --git a/configure b/configure index 5f2c391..f10e6ad 100755 --- a/configure +++ b/configure @@ -317,6 +317,7 @@ CMDLINE_SELECT=" optimizations ccache runtime_cpu_detect + thumb libs examples -- 2.7.4