From: Kaj-Michael Lang Date: Sun, 4 Nov 2007 12:10:08 +0000 (+0200) Subject: Small fixes to package build rules and helper script X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2df067f7c23d498b5919806b51f6d8089f9a2b3b;p=mapper Small fixes to package build rules and helper script --- diff --git a/debian/rules b/debian/rules index a3196af..f5c5924 100755 --- a/debian/rules +++ b/debian/rules @@ -11,12 +11,13 @@ 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))) diff --git a/dpkg-build.sh b/dpkg-build.sh index ef4f7b2..4669d43 100755 --- a/dpkg-build.sh +++ b/dpkg-build.sh @@ -28,11 +28,15 @@ case "$1" in 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