summaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorMiguel Ojeda <ojeda@users.noreply.github.com>2020-09-20 01:53:25 +0200
committerGitHub <noreply@github.com>2020-09-20 01:53:25 +0200
commit58ffd762f26eb282e84aaa49a647d379c029b9f6 (patch)
treec447bc24bc994c2f6a6ae81611bd93183f08a3f9 /scripts/Makefile.lib
parent33c80fea1445f217bc048aada96e77bab857cd1c (diff)
parent60567cfb44249250ce3f86b8131a07b37c7ef55b (diff)
Merge pull request #7 from Rust-for-Linux/rust-params
Parameter support
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib5
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) \