From 2df067f7c23d498b5919806b51f6d8089f9a2b3b Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Sun, 4 Nov 2007 14:10:08 +0200 Subject: [PATCH] Small fixes to package build rules and helper script --- debian/rules | 5 +++-- dpkg-build.sh | 6 +++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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 -- 2.39.5