Skip to contentSkip to conversation

kbuild: set the initial value of subdir-rustflags-y

PATCH In review Yuntao Wang 3 participants 3 messages Jul 18 – Jul 21 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: set the initial value of subdir-rustflags-y

Initialize subdir-rustflags-y to an empty value to prevent it from being inadvertently affected by an environment variable of the same name.

---
 scripts/Makefile.build | 1 +
 1 file changed, 1 insertion(+)
scripts/Makefile.build +1 -0
index 911745743246..e60d97ef535a 100644
@@ -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
Signature · 1 line
2.54.0
#1 lore raw
Quoted 5 lines · Yuntao Wang

Initialize subdir-rustflags-y to an empty value to prevent it from being inadvertently affected by an environment variable of the same name.

Sounds good, thanks!

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

Cheers,
Miguel

maintainer
#2 lore raw
In reply to Yuntao Wang
Quoted 1 line · Yuntao Wang

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,

Signature · 1 line
Nicolas