Re: Re: [oe] [meta-oe][PATCH] vboxguestdrivers: Provide target kernel version

Khem Raj <[email protected]>
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <CAMKF1srKidkq_skk0AR-Xk4xnNUsHeUz4OZFkk3OO-_r3JGB1A@mail.gmail.com>
Hi Rouven,

Yes, that is correct. Please send it with [wrynose] in the subject line.

Thanks,
Khem

On Tue, Aug 4, 2026, 2:39 AM Rastetter, Rouven.ext <
[email protected]> wrote:

>
> linux-kernel-base is deprecated in oe-core/master now. I would suggest to
> use the new ways of using it via oe.kernel.get_version_file
>
>
> Good to know, I will provide a separate patch for master then. But for the
> wrynose branch this would be the way to go right?
>
> ------------------------------
> *Von:* Khem Raj <[email protected]>
> *Gesendet:* Dienstag, 4. August 2026 01:51
> *An:* Rastetter, Rouven.ext <[email protected]>
> *Cc:* [email protected] <
> [email protected]>
> *Betreff:* [Ext] Re: [oe] [meta-oe][PATCH] vboxguestdrivers: Provide
> target kernel version
>
> On Mon, Aug 3, 2026 at 10: 19 AM Rouven Rastetter via lists. openembedded.
> org <rouven. rastetter. ext=karlstorz. com@ lists. openembedded. org>
> wrote: The Makefile uses `uname` to determine the kernel version. We must
> override this with the actual
>
>
> On Mon, Aug 3, 2026 at 10:19 AM Rouven Rastetter via
> lists.openembedded.org
> <https://urldefense.com/v3/__http://lists.openembedded.org__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1K3QcFIE$>
> <[email protected]> wrote:
>
> The Makefile uses `uname` to determine the kernel version. We must
> override this with the actual target kernel version.
>
> The kernel version might be empty during parsing (e.g. when using
> linux-dummy), therefore `or ''` is needed.
> ---
>  .../vboxguestdrivers/vboxguestdrivers_7.2.14.bb
> <https://urldefense.com/v3/__http://vboxguestdrivers_7.2.14.bb__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1O_1M_cL$>
>              | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-support/vboxguestdrivers/
> vboxguestdrivers_7.2.14.bb
> <https://urldefense.com/v3/__http://vboxguestdrivers_7.2.14.bb__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1O_1M_cL$>
> b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.14.bb
> <https://urldefense.com/v3/__http://vboxguestdrivers_7.2.14.bb__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1O_1M_cL$>
> index 18fda0393d..6a870c267c 100644
> --- a/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.14.bb
> <https://urldefense.com/v3/__http://vboxguestdrivers_7.2.14.bb__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1O_1M_cL$>
> +++ b/meta-oe/recipes-support/vboxguestdrivers/vboxguestdrivers_7.2.14.bb
> <https://urldefense.com/v3/__http://vboxguestdrivers_7.2.14.bb__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1O_1M_cL$>
> @@ -14,7 +14,7 @@ DEPENDS = "virtual/kernel"
>  # compiler-runtime deps needed to compile and link the userspace utility.
>  DEPENDS += "virtual/compilerlibs virtual/libc"
>
> -inherit module kernel-module-split
> +inherit linux-kernel-base module kernel-module-split
>
>
> linux-kernel-base is deprecated in oe-core/master now. I would suggest to
> use the new ways of using it via oe.kernel.get_version_file
>
>
>
>  COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuarm64)"
>
> @@ -32,7 +32,7 @@ S:task-patch = "${UNPACKDIR}/${BP}"
>  export VBOX_KBUILD_TARGET_ARCH = "${ARCH}"
>  export VBOX_KBUILD_TARGET_ARCH:x86-64 = "amd64"
>
> -EXTRA_OEMAKE += "KERN_DIR='${WORKDIR}/${KERNEL_VERSION}/build'
> KBUILD_VERBOSE=1 CC='${CC} ${DEBUG_PREFIX_MAP}
> -ffile-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}
> -ffile-prefix-map=${STAGING_KERNEL_BUILDDIR}=${KERNEL_SRC_PATH}'"
> +EXTRA_OEMAKE += "KERN_DIR='${WORKDIR}/${KERNEL_VERSION}/build'
> KERN_MAJ='${@(get_kernelversion_file('${STAGING_KERNEL_BUILDDIR}') or
> '').split('.')[0]}' KBUILD_VERBOSE=1 CC='${CC} ${DEBUG_PREFIX_MAP}
> -ffile-prefix-map=${STAGING_KERNEL_DIR}=${KERNEL_SRC_PATH}
> -ffile-prefix-map=${STAGING_KERNEL_BUILDDIR}=${KERNEL_SRC_PATH}'"
>
>  # otherwise 5.2.22 builds just vboxguest
>  MAKE_TARGETS = "all"
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#128696):
> https://lists.openembedded.org/g/openembedded-devel/message/128696
> <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/message/128696__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1Bd60O3W$>
> Mute This Topic: https://lists.openembedded.org/mt/120580604/1997914
> <https://urldefense.com/v3/__https://lists.openembedded.org/mt/120580604/1997914__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1JjzgnAr$>
> Group Owner: [email protected]
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
> <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-devel/unsub__;!!Lw1uGqvHvtJ_psGG2Et-1voSwbo!cAyPfyOOsfxcDtRtj6u9pMZv0OEOSnLiePM6JDDB_1lj4yH8nspTcwVMytRMmyjV5_tEknFQ2dqGW-k9itVq1Efr4Ozd$>
> [[email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.