Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c72c75db authored by Frans Pop's avatar Frans Pop Committed by Sam Ravnborg
Browse files

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: default avatarFrans Pop <elendil@planet.nl>
Acked-by: default avatarmaximilian attems <max@stro.at>
Cc: Andres Salomon <dilinger@debian.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 4964451a
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -26,6 +26,11 @@ create_package() {
# Some variables and settings used throughout the script
# Some variables and settings used throughout the script
version=$KERNELRELEASE
version=$KERNELRELEASE
revision=$(cat .version)
revision=$(cat .version)
if [ -n "$KDEB_PKGVERSION" ]; then
	packageversion=$KDEB_PKGVERSION
else
	packageversion=$version-$revision
fi
tmpdir="$objtree/debian/tmp"
tmpdir="$objtree/debian/tmp"
fwdir="$objtree/debian/fwtmp"
fwdir="$objtree/debian/fwtmp"
packagename=linux-$version
packagename=linux-$version
@@ -87,7 +92,7 @@ done
name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
name="Kernel Compiler <$(id -nu)@$(hostname -f)>"
# Generate a simple changelog template
# Generate a simple changelog template
cat <<EOF > debian/changelog
cat <<EOF > debian/changelog
linux ($version-$revision) unstable; urgency=low
linux ($packageversion) unstable; urgency=low


  * A standard release
  * A standard release