rules: use BUILD_DEB_OPTIONS for n770 and n8x0 variants
authored_ <bartosh@gmail.com>
Sun, 9 Dec 2007 16:22:55 +0000 (16:22 +0000)
committered_ <bartosh@gmail.com>
Sun, 9 Dec 2007 16:22:55 +0000 (16:22 +0000)
trunk/evas/debian/changelog
trunk/evas/debian/rules

index 9a372cd..1d30fdd 100644 (file)
@@ -1,8 +1,9 @@
 evas (0.9.9.041-maemo.4) unstable; urgency=low
 
   * rules: Include simple-patchsys.mk
+  * rules: use BUILD_DEB_OPTIONS for n770 and n8x0 variants 
 
- -- Eduardo Lima (Etrunko) <eduardo.lima@indt.org.br>  Sun, 09 Dec 2007 12:42:30 -0300
+ -- Ed Bartosh <bartosh@gmail.com>  Sun,  9 Dec 2007 18:17:10 +0200
 
 evas (0.9.9.041-maemo.3) unstable; urgency=low
 
index f3723d1..dc4c98f 100755 (executable)
@@ -44,7 +44,15 @@ DEB_CONFIGURE_EXTRA_FLAGS := --enable-software-16-x11                        \
 
 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
-endif
+        ifneq (,$(findstring n8x0,$(DEB_BUILD_OPTIONS)))
+                CFLAGS += -mfpu=vfp -mfloat-abi=softfp -mcpu=arm1136jf-s
+        endif
+        ifneq (,$(findstring n770,$(DEB_BUILD_OPTIONS)))
+                 CFLAGS += -mcpu=arm926ej-s
+        endif
+end
+