summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@kernel.org>2023-07-23 16:21:28 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2023-07-24 03:15:31 +0900
commitdf01b7cfcef08bf3fdcac2909d0e1910781d6bfd (patch)
treefbf93336c2a3357d4435380da009894336227f82 /crypto
parent0817d2599cfe894fa4ded7dbaa2b06111f2609b5 (diff)
downloadlinux-stable-df01b7cfcef08bf3fdcac2909d0e1910781d6bfd.tar.gz
linux-stable-df01b7cfcef08bf3fdcac2909d0e1910781d6bfd.tar.bz2
linux-stable-df01b7cfcef08bf3fdcac2909d0e1910781d6bfd.zip
kbuild: rust: avoid creating temporary files
`rustc` outputs by default the temporary files (i.e. the ones saved by `-Csave-temps`, such as `*.rcgu*` files) in the current working directory when `-o` and `--out-dir` are not given (even if `--emit=x=path` is given, i.e. it does not use those for temporaries). Since out-of-tree modules are compiled from the `linux` tree, `rustc` then tries to create them there, which may not be accessible. Thus pass `--out-dir` explicitly, even if it is just for the temporary files. Similarly, do so for Rust host programs too. Reported-by: Raphael Nestler <raphael.nestler@gmail.com> Closes: https://github.com/Rust-for-Linux/linux/issues/1015 Reported-by: Andrea Righi <andrea.righi@canonical.com> Tested-by: Raphael Nestler <raphael.nestler@gmail.com> # non-hostprogs Tested-by: Andrea Righi <andrea.righi@canonical.com> # non-hostprogs Fixes: 295d8398c67e ("kbuild: specify output names separately for each emission type from rustc") Cc: stable@vger.kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Tested-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions