commit:     27eaf5e24de59baadb8f6042085af172cd56de5d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 09:59:57 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 19 11:52:11 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27eaf5e2

kernel-build.eclass: Respect KV_FULL

Closes: https://github.com/gentoo/gentoo/pull/27797
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/kernel-build.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass
index 7cada85e79fe..a77a24534c11 100644
--- a/eclass/kernel-build.eclass
+++ b/eclass/kernel-build.eclass
@@ -150,7 +150,7 @@ kernel-build_src_test() {
        emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \
                INSTALL_MOD_PATH="${T}" "${targets[@]}"
 
-       local ver="${PV}${KV_LOCALVERSION}"
+       local ver="${KV_FULL}${KV_LOCALVERSION}"
        kernel-install_test "${ver}" \
                "${WORKDIR}/build/$(dist-kernel_get_image_path)" \
                "${T}/lib/modules/${ver}"
@@ -159,7 +159,7 @@ kernel-build_src_test() {
 # @FUNCTION: kernel-build_src_install
 # @DESCRIPTION:
 # Install the built kernel along with subset of sources
-# into /usr/src/linux-${PV}.  Install the modules.  Save the config.
+# into /usr/src/linux-${KV_FULL}.  Install the modules.  Save the config.
 kernel-build_src_install() {
        debug-print-function ${FUNCNAME} "${@}"
 
@@ -177,7 +177,7 @@ kernel-build_src_install() {
        # note: we're using mv rather than doins to save space and time
        # install main and arch-specific headers first, and scripts
        local kern_arch=$(tc-arch-kernel)
-       local ver="${PV}${KV_LOCALVERSION}"
+       local ver="${KV_FULL}${KV_LOCALVERSION}"
        dodir "/usr/src/linux-${ver}/arch/${kern_arch}"
        mv include scripts "${ED}/usr/src/linux-${ver}/" || die
        mv "arch/${kern_arch}/include" \

Reply via email to