DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-CFLAGS = -Wall -g
+CFLAGS+ = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
- CFLAGS += -O2 -pipe -mcpu=arm926ej-s
+ CFLAGS += -O2 -pipe
+# -mcpu=arm926ej-s
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
OS2006)
CFLAGS="-O2 -pipe -mcpu=arm926ej-s"
VERSION_SUFFIX=-1
- DBP_EXTRA=
+ DBP_EXTRA=-B
+ ;;
*)
echo "Give one of OS2006, OS2007 or OS2008 as parameter"
+ ;;
esac
+export CFLAGS
+
head -n 1 $CHANGELOG | sed "s/)/$VERSION_SUFFIX)/" > $CHANGELOG.new
awk 'NR>1 {print}' $CHANGELOG >> $CHANGELOG.new
mv $CHANGELOG $CHANGELOG.old