diff options
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r-- | scripts/Makefile.lib | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index a74898ff131a..daf920fa9551 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -237,6 +237,11 @@ rustc_flags = $(_rustc_flags) $(modkern_rustcflags) $(rustc_cfg_flags) RUSTFLAGS = $(rustc_flags) export RUSTFLAGS +# For the `module!` macro +# TODO: should be `$(modfile)`, but it is not correct for us +RUST_MODFILE = $(obj)/$(notdir $(obj)) +export RUST_MODFILE + cargo_flags = $(_cargo_flags) $(modkern_cargoflags) a_flags = -Wp,-MMD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \ |