summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFrans Pop <elendil@planet.nl>2009-04-23 01:09:44 +0200
committerSam Ravnborg <sam@ravnborg.org>2009-06-09 22:37:37 +0200
commitc72c75db86cf9f53c4c0df6724c0cf06db017652 (patch)
treef18f6fbe325da5a7ee8f5c51e1c0cabaf879b994 /scripts
parent4964451a321cfd6a05ea32af1317345c53b3ecb7 (diff)
downloadop-kernel-dev-c72c75db86cf9f53c4c0df6724c0cf06db017652.zip
op-kernel-dev-c72c75db86cf9f53c4c0df6724c0cf06db017652.tar.gz
kbuild, deb-pkg: allow to specify a custom revision for .deb packages
Allow to specify a custom revision for the generated .deb by exporting the environment variable KDEB_PKGVERSION. Signed-off-by: Frans Pop <elendil@planet.nl> Acked-by: maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/package/builddeb7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 5eecbbe..5868c0f 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -26,6 +26,11 @@ create_package() {
# Some variables and settings used throughout the script
version=$KERNELRELEASE
revision=$(cat .version)
+if [ -n "$KDEB_PKGVERSION" ]; then
+ packageversion=$KDEB_PKGVERSION
+else
+ packageversion=$version-$revision
+fi
tmpdir="$objtree/debian/tmp"
fwdir="$objtree/debian/fwtmp"
packagename=linux-$version
@@ -87,7 +92,7 @@ done
name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
# Generate a simple changelog template
cat <<EOF > debian/changelog
-linux ($version-$revision) unstable; urgency=low
+linux ($packageversion) unstable; urgency=low
* A standard release
OpenPOWER on IntegriCloud