aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Cross <xobs@kosagi.com>2014-10-14 10:16:36 +0800
committerSean Cross <xobs@kosagi.com>2014-10-15 21:01:30 +0800
commit67223a26a5f402c78fafa2c3d362912c97e49942 (patch)
tree387711cc1a6fd0f1523591ed3a647278c30a94ff
parent0b23b577ac58218aac0035825c8740dee1c26044 (diff)
downloadnovena-linux-67223a26a5f402c78fafa2c3d362912c97e49942.tar.gz
novena-linux-67223a26a5f402c78fafa2c3d362912c97e49942.tar.bz2
novena-linux-67223a26a5f402c78fafa2c3d362912c97e49942.zip
scripts: builddeb: Allow specifying a package name
We want to be able to upgrade kernel packages. In order to do this, we need to have a consistent naming scheme, not one with the version number embedded into the name. Take a new parameter, KDEB_PKGNAME, and if specified set the package name to that, rather than to the version number. Signed-off-by: Sean Cross <xobs@kosagi.com>
-rw-r--r--scripts/package/builddeb7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 135318be2a0..a23b4df5b94 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -91,6 +91,13 @@ if [ "$ARCH" = "um" ] ; then
packagename=user-mode-linux-$version
fi
+if [ ! -z "${KDEB_PKGNAME}" ]
+then
+ packagename=linux-image-${KDEB_PKGNAME}
+ fwpackagename=linux-firmware-image-${KDEB_PKGNAME}
+ kernel_headers_packagename=linux-headers-${KDEB_PKGNAME}
+fi
+
# Not all arches have the same installed path in debian
# XXX: have each arch Makefile export a variable of the canonical image install
# path instead