Don't build with -mthumb on Fremantle
authorSteven Luo <steven+maemo@steven676.net>
Fri, 28 May 2010 08:21:37 +0000 (01:21 -0700)
committerSteven Luo <steven+maemo@steven676.net>
Fri, 28 May 2010 08:21:37 +0000 (01:21 -0700)
Using Thumb instructions causes browser-switchboard to crash with SIGILL
on Fremantle PR1.2 devices, presumably due to some combination of kernel
and toolchain bugs, so disable the use of Thumb for now.

Thanks to Uwe Kaminski (jukey) and Fred Farber (ffarber) for providing
details on this bug.

debian/rules

index 1ccb8ed..358cfd6 100755 (executable)
@@ -9,13 +9,13 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-ifeq ($(DEB_HOST_ARCH),armel)
+#ifeq ($(DEB_HOST_ARCH),armel)
        #EXTRA_CFLAGS += -mcpu=arm1136jf-s
        # Use Thumb for smaller binaries unless otherwise requested
-       ifeq (,$(filter nothumb,$(DEB_BUILD_OPTIONS)))
-               EXTRA_CFLAGS += -mthumb
-       endif
-endif
+       #ifeq (,$(filter nothumb,$(DEB_BUILD_OPTIONS)))
+       #       EXTRA_CFLAGS += -mthumb
+       #endif
+#endif
 
 configure: configure-stamp
 configure-stamp: