Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Yoann Congal <yoann.congal@smile.fr>
To: Harish.Sadineni@windriver.com
Cc: openembedded-core@lists.openembedded.org,
	Randy.MacLeod@windriver.com, bruce.ashfield@gmail.com,
	sundeep.kokkonda@windriver.com, elmehdi.younes@smile.fr
Subject: Re: [OE-core] [PATCH RFC v2 7/8] kernel-yocto: Fix for buildpaths errors when rust is enabled for kernel
Date: Thu, 6 Nov 2025 22:09:58 +0100	[thread overview]
Message-ID: <aQ0Opm310VCku_b6@smile.fr> (raw)
In-Reply-To: <20251105130942.833204-8-Harish.Sadineni@windriver.com>

Le Wed, Nov 05, 2025 at 05:09:41AM -0800, Sadineni, Harish via lists.openembedded.org a �crit :
> From: Harish Sadineni <Harish.Sadineni@windriver.com>
> 
> Fixes for buildpaths errors after  enabling rust for linux-kernel
> 
> Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> ---
>  meta/classes-recipe/kernel-yocto.bbclass | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass
> index 7a115bdffd..98cc71e137 100644
> --- a/meta/classes-recipe/kernel-yocto.bbclass
> +++ b/meta/classes-recipe/kernel-yocto.bbclass
> @@ -4,6 +4,8 @@
>  # SPDX-License-Identifier: MIT
>  #
>  
> +INHERIT:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', ' rust-common', '', d)}"

I think the more usual way to write this is:
inherit_defer ${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', 'rust-common', '', d)}

> +
>  # remove tasks that modify the source tree in case externalsrc is inherited
>  SRCTREECOVEREDTASKS += "do_validate_branches do_kernel_configcheck do_kernel_checkout do_fetch do_unpack do_patch"
>  PATCH_GIT_USER_EMAIL ?= "kernel-yocto@oe"
> @@ -27,6 +29,11 @@ KMETA_AUDIT ?= "yes"
>  KMETA_AUDIT_WERROR ?= ""
>  KMETA_CONFIG_FEATURES ?= ""
>  
> +RUST_DEBUG_REMAP = "${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', '--remap-path-prefix=${WORKDIR}=${TARGET_DBGSRC_DIR} \
> +                      --remap-path-prefix=${TMPDIR}/work-shared=${TARGET_DBGSRC_DIR}', '',d)}"
> +KRUSTFLAGS:append = "${RUST_DEBUG_REMAP}"
> +EXTRA_OEMAKE:append = "${@bb.utils.contains('DISTRO_FEATURES', 'rust-kernel', ' KRUSTFLAGS="${KRUSTFLAGS}"', '',d)}"
> +
>  # returns local (absolute) path names for all valid patches in the
>  # src_uri
>  def find_patches(d,subdir):
> -- 
> 2.49.0
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#225764): https://lists.openembedded.org/g/openembedded-core/message/225764
> Mute This Topic: https://lists.openembedded.org/mt/116133833/4316185
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



  reply	other threads:[~2025-11-06 21:10 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-05 13:09 [PATCH RFC v2 0/8] Enable rust support for linux kernel Harish.Sadineni
2025-11-05 13:09 ` [PATCH RFC v2 1/8] bindgen-cli: extend BBCLASSEXTEND to include nativesdk Harish.Sadineni
2025-11-05 13:09 ` [PATCH RFC v2 2/8] linux-yocto: add clang-native,rust-native and bindgen-cli-native to DEPENDS Harish.Sadineni
2025-11-05 13:30   ` Bruce Ashfield
2025-11-05 16:25     ` Randy MacLeod
2025-11-05 13:09 ` [PATCH RFC v2 3/8] rust: install Rust library sources for 'make rustavailable' support Harish.Sadineni
2025-11-06 20:49   ` [OE-core] " Yoann Congal
2025-11-05 13:09 ` [PATCH RFC v2 4/8] rust: stage rustlib sources for linux-yocto make rustavailable support Harish.Sadineni
2025-11-05 13:32   ` Bruce Ashfield
2025-11-05 17:03     ` Randy MacLeod
2025-11-05 13:09 ` [PATCH RFC v2 5/8] kernel-yocto: add rust support via make rustavailable in do_kernel_configme Harish.Sadineni
2025-11-05 13:34   ` Bruce Ashfield
2025-11-06 20:52   ` [OE-core] " Yoann Congal
2025-11-05 13:09 ` [PATCH RFC v2 6/8] linux-yocto: enable Rust support in kernel configuration Harish.Sadineni
2025-11-05 13:34   ` Bruce Ashfield
2025-11-05 20:39   ` [OE-core] " Gyorgy Sarvari
2025-11-06  7:11     ` Harish Sadineni
2025-11-05 13:09 ` [PATCH RFC v2 7/8] kernel-yocto: Fix for buildpaths errors when rust is enabled for kernel Harish.Sadineni
2025-11-06 21:09   ` Yoann Congal [this message]
2025-11-05 13:09 ` [PATCH RFC v2 8/8] kernel-devsrc: copying rust-kernel soucre to $kerneldir/build Harish.Sadineni
2025-11-06 21:29 ` [OE-core] [PATCH RFC v2 0/8] Enable rust support for linux kernel Yoann Congal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aQ0Opm310VCku_b6@smile.fr \
    --to=yoann.congal@smile.fr \
    --cc=Harish.Sadineni@windriver.com \
    --cc=Randy.MacLeod@windriver.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=elmehdi.younes@smile.fr \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=sundeep.kokkonda@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox