mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
kbuild: deb-pkg: set version for linux-headers paths
As a result of the switch to dh_listpackages, $version is no longer set
when install_kernel_headers() is called. This causes files in the
linux-headers deb package to be installed to a path with an empty
$version (e.g. /usr/src/linux-headers-/scripts/sign-file rather than
/usr/src/linux-headers-6.3.0-rc3/scripts/sign-file).
To avoid this, while continuing to use the version information from
dh_listpackages, pass $version from $package as the second argument
of install_kernel_headers().
Fixes: 36862e14e3
("kbuild: deb-pkg: use dh_listpackages to know enabled packages")
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
parent
e8d018dd02
commit
3ced71d273
1 changed files with 2 additions and 1 deletions
|
@ -162,6 +162,7 @@ install_linux_image_dbg () {
|
|||
|
||||
install_kernel_headers () {
|
||||
pdir=$1
|
||||
version=$2
|
||||
|
||||
rm -rf $pdir
|
||||
|
||||
|
@ -229,7 +230,7 @@ do
|
|||
linux-libc-dev)
|
||||
install_libc_headers debian/linux-libc-dev;;
|
||||
linux-headers-*)
|
||||
install_kernel_headers debian/linux-headers;;
|
||||
install_kernel_headers debian/linux-headers ${package#linux-headers-};;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue