diff options
author | Miguel Ojeda <ojeda@kernel.org> | 2022-11-10 17:41:16 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2022-12-01 20:13:11 +0100 |
commit | c3630df66f95e6c18987734b39f0239303dd72d8 (patch) | |
tree | 628d0df227bb069221e0d8bfc176fdbe618acaa9 /samples/rust/Kconfig | |
parent | fc6c7cac83f05f455be1f35160a618e9df103838 (diff) |
rust: samples: add `rust_print` example
Add example to exercise the printing macros (`pr_*!`) introduced
in the previous patches.
Reviewed-by: Finn Behrens <me@kloenk.dev>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Tested-by: Sergio González Collado <sergio.collado@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'samples/rust/Kconfig')
-rw-r--r-- | samples/rust/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/rust/Kconfig b/samples/rust/Kconfig index 841e0906e943..b0f74a81c8f9 100644 --- a/samples/rust/Kconfig +++ b/samples/rust/Kconfig @@ -20,6 +20,16 @@ config SAMPLE_RUST_MINIMAL If unsure, say N. +config SAMPLE_RUST_PRINT + tristate "Printing macros" + help + This option builds the Rust printing macros sample. + + To compile this as a module, choose M here: + the module will be called rust_print. + + If unsure, say N. + config SAMPLE_RUST_HOSTPROGS bool "Host programs" help |