mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-18 13:45:59 -04:00
kbuild: deb-pkg: add provide field for version control
Change-Id: Ic7032de19ee32c7c53425f2afcc9faba7e35274c
This commit is contained in:
parent
3ab0ab2134
commit
9cefc6c141
1 changed files with 7 additions and 2 deletions
|
@ -147,6 +147,7 @@ fi
|
|||
|
||||
# Some variables and settings used throughout the script
|
||||
version=$KERNELRELEASE
|
||||
baseversion=$(echo $version | cut -d- -f1)
|
||||
if [ -n "$KDEB_PKGVERSION" ]; then
|
||||
packageversion=$KDEB_PKGVERSION
|
||||
else
|
||||
|
@ -227,6 +228,7 @@ Description: Linux kernel, version $version
|
|||
This package contains the Linux kernel, modules and corresponding other
|
||||
files, version: $version.
|
||||
Depends: spacemit-flash-dtbs
|
||||
Provides: linux-image-$baseversion
|
||||
EOF
|
||||
|
||||
if [ "${SRCARCH}" != um ]; then
|
||||
|
@ -245,11 +247,12 @@ Package: linux-tools-$version
|
|||
Architecture: $debarch
|
||||
Section: devel
|
||||
Depends: linux-tools-common
|
||||
Description: Linux kernel version specific tools for version -$version
|
||||
Description: Linux kernel version specific tools for version $version
|
||||
This package provides the architecture dependant parts for kernel
|
||||
version locked tools (such as perf) for
|
||||
version -$version on
|
||||
version $version on
|
||||
.
|
||||
Provides: linux-tools-$baseversion
|
||||
|
||||
Package: linux-tools-common
|
||||
Architecture: all
|
||||
|
@ -271,6 +274,7 @@ Description: Linux kernel headers for $version on $debarch
|
|||
This package provides kernel header files for $version on $debarch
|
||||
.
|
||||
This is useful for people who need to build external modules
|
||||
Provides: linux-headers-$baseversion
|
||||
EOF
|
||||
fi
|
||||
fi
|
||||
|
@ -284,6 +288,7 @@ 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.
|
||||
Provides: linux-image-$baseversion-dbg
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue