[PATCH] kbuild: set the initial value of subdir-rustflags-y

Yuntao Wang posted 1 patch 6 days, 23 hours ago
scripts/Makefile.build | 1 +
1 file changed, 1 insertion(+)
[PATCH] kbuild: set the initial value of subdir-rustflags-y
Posted by Yuntao Wang 6 days, 23 hours ago
Initialize subdir-rustflags-y to an empty value to prevent it from being
inadvertently affected by an environment variable of the same name.

Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>
---
 scripts/Makefile.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 911745743246..e60d97ef535a 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -28,6 +28,7 @@ ldflags-y  :=
 
 subdir-asflags-y :=
 subdir-ccflags-y :=
+subdir-rustflags-y :=
 
 # Read auto.conf if it exists, otherwise ignore
 -include $(objtree)/include/config/auto.conf
-- 
2.54.0
Re: [PATCH] kbuild: set the initial value of subdir-rustflags-y
Posted by Nicolas Schier 3 days, 17 hours ago
On Sat, 18 Jul 2026 12:01:46 +0800, Yuntao Wang wrote:
> kbuild: set the initial value of subdir-rustflags-y

Applied to kbuild/linux.git (kbuild-next-unstable), thanks!

[1/1] kbuild: set the initial value of subdir-rustflags-y
      https://git.kernel.org/kbuild/c/2c5a2273

Please look out for regression or issue reports or other follow up
comments, as they may result in the patch/series getting dropped,
reverted or modified (e.g. trailers).

Patches applied to the kbuild-next-unstable branch are accepted pending
wider testing in linux-next and any post-commit review; they will
generally be moved to the kbuild-next branch in about a week if no
issues are found.

Best regards,
-- 
Nicolas
Re: [PATCH] kbuild: set the initial value of subdir-rustflags-y
Posted by Miguel Ojeda 6 days, 17 hours ago
On Sat, Jul 18, 2026 at 6:03 AM Yuntao Wang <yuntao.wang@linux.dev> wrote:
>
> Initialize subdir-rustflags-y to an empty value to prevent it from being
> inadvertently affected by an environment variable of the same name.
>
> Signed-off-by: Yuntao Wang <yuntao.wang@linux.dev>

Sounds good, thanks!

I guess we can take this via either Kbuild or Rust -- happy either way.

Cheers,
Miguel