diff options
| author | Miguel Ojeda <[email protected]> | 2024-09-02 16:55:30 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-09-05 20:44:41 +0000 |
| commit | ac3e972629a69e118e3867531df936a6ce5e5f5a (patch) | |
| tree | 0ad84bf20a7bb2ed71f301976d2c99a54d8f0bec /rust/helpers/helpers.c | |
| parent | kbuild: rust: re-run Kconfig if the version text changes (diff) | |
| download | kernel-ac3e972629a69e118e3867531df936a6ce5e5f5a.tar.gz kernel-ac3e972629a69e118e3867531df936a6ce5e5f5a.zip | |
kbuild: rust: rebuild if the version text changes
Now that `RUSTC_VERSION_TEXT` exists, use it to rebuild `core` when the
version text changes (which in turn will trigger a rebuild of all the
kernel Rust code).
This also applies to proc macros (which only work with the `rustc` that
compiled them), via the already existing dependency on `core.o`. That
is cleaned up in the next commit.
However, this does not cover host programs written in Rust, which is
the same case in the C side.
This is accomplished by referencing directly the generated file, instead
of using the `fixdep` header trick, since we cannot change the Rust
standard library sources. This is not too much of a burden, since it
only needs to be done for `core`.
Tested-by: Alice Ryhl <[email protected]>
Reviewed-by: Nicolas Schier <[email protected]>
Acked-by: Masahiro Yamada <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
