diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2019-12-12 15:33:26 +0000 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2020-08-12 16:56:37 +0100 |
commit | 29cbf6133ea68854db707cacdc79d16095a52115 (patch) | |
tree | ca6ababf27c6b922c28b918e2e7a471967f47a54 /scripts/package/mkdebian | |
parent | c408c8b29ccf77f1d3b15d6b4e5518c2d5ceafeb (diff) | |
download | linux-29cbf6133ea68854db707cacdc79d16095a52115.tar.gz |
NOUPSTREAM: kbuild: deb-pkg: Meta-package support
Kernel packages are "special" because they are designed to be parallel
installed and therefore have a revision number in the package name.
That means we need to create a meta-package that depends on the latest
numbered version of the kernel. Without this apt will not automatically
keep up to date with the latest kernel.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Diffstat (limited to 'scripts/package/mkdebian')
-rwxr-xr-x | scripts/package/mkdebian | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 126e19dbcedf..53319e168e41 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -95,6 +95,7 @@ else fi sourcename=$KDEB_SOURCENAME packagename=linux-image-$version +metapackagename=`echo $packagename | sed -e 's/[0-9][0-9.-]*//'` kernel_headers_packagename=linux-headers-$version dbg_packagename=$packagename-dbg debarch= @@ -209,6 +210,12 @@ Architecture: $debarch Description: Linux kernel debugging symbols for $version This package will come in handy if you need to debug the kernel. It provides all the necessary debug symbols for the kernel and its modules. + +Package: $metapackagename +Architecture: $debarch +Depends: $packagename (= $packageversion) +Description: Linux kernel (meta-package) + This package depends on the most recently built Linux kernel. EOF fi |