rules: use BUILD_DEB_OPTIONS for n770 and n8x0 variants
authored_ <bartosh@gmail.com>
Sun, 9 Dec 2007 15:44:14 +0000 (15:44 +0000)
committered_ <bartosh@gmail.com>
Sun, 9 Dec 2007 15:44:14 +0000 (15:44 +0000)
trunk/eet/debian/changelog
trunk/eet/debian/rules

index 9645bee..34d536e 100644 (file)
@@ -1,3 +1,9 @@
+eet (0.9.10.041-maemo.2) unstable; urgency=low
+
+  * rules: use BUILD_DEB_OPTIONS for n770 and n8x0 variants 
+
+ -- Ed Bartosh <bartosh@gmail.com>  Sun,  9 Dec 2007 17:37:46 +0200
+
 eet (0.9.10.041-maemo.1) unstable; urgency=low
 
   * Upstream updated to 0.9.10.041
index e7bf183..7a7a363 100755 (executable)
@@ -6,7 +6,14 @@ include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 DEB_BUILD_ARCH  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
+CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2
+
 ifneq (,$(findstring armel,$(DEB_BUILD_ARCH)))
-       CFLAGS += -DNDEBUG=1 -fomit-frame-pointer -O2 -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
+       ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
+               CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s -ffast-math -funsafe-math-optimizations -fno-math-errno -fsingle-precision-constant
+       endif
+       ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
+                CFLAGS += -mcpu=arm926ej-s 
+       endif
 endif