diff options
| author | Miguel Ojeda <[email protected]> | 2023-07-23 14:21:28 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2023-07-23 18:15:31 +0000 |
| commit | df01b7cfcef08bf3fdcac2909d0e1910781d6bfd (patch) | |
| tree | fbf93336c2a3357d4435380da009894336227f82 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | |
| parent | kbuild: flatten KBUILD_CFLAGS (diff) | |
| download | kernel-df01b7cfcef08bf3fdcac2909d0e1910781d6bfd.tar.gz kernel-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 <[email protected]>
Closes: https://github.com/Rust-for-Linux/linux/issues/1015
Reported-by: Andrea Righi <[email protected]>
Tested-by: Raphael Nestler <[email protected]> # non-hostprogs
Tested-by: Andrea Righi <[email protected]> # non-hostprogs
Fixes: 295d8398c67e ("kbuild: specify output names separately for each emission type from rustc")
Cc: [email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Tested-by: Martin Rodriguez Reboredo <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
0 files changed, 0 insertions, 0 deletions
