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

From: Yuntao Wang

Date: Sat Jul 18 2026 - 00:03:28 EST


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@xxxxxxxxx>
---
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