From 2497219f7ea5a38f1a3094f03f34c41a38e74226 Mon Sep 17 00:00:00 2001 From: Steven Luo Date: Fri, 18 Dec 2009 22:14:54 -0800 Subject: [PATCH] Optimize for N8x0 on armel builds, and use Thumb if requested --- debian/rules | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 962a2e3..70bd2b9 100755 --- a/debian/rules +++ b/debian/rules @@ -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: -- 1.7.9.5