Optimize for N8x0 on armel builds, and use Thumb if requested
authorSteven Luo <steven+maemo@steven676.net>
Sat, 19 Dec 2009 06:14:54 +0000 (22:14 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Sat, 19 Dec 2009 06:14:54 +0000 (22:14 -0800)
debian/rules

index 962a2e3..70bd2b9 100755 (executable)
@@ -9,8 +9,14 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-
-
+# Optimize for N8x0 CPUs if building for armel
+ifeq ($(DEB_HOST_ARCH),armel)
+       EXTRA_CFLAGS += -march=arm1136jf-s
+       # Use Thumb for smaller binaries if requested
+       ifneq (,$(filter thumb,$(DEB_BUILD_OPTIONS)))
+               EXTRA_CFLAGS += -mthumb
+       endif
+endif
 
 configure: configure-stamp
 configure-stamp: