xref: /linux/samples/rust/Kconfig (revision fdb1ac6c302689b286eca9bb7247111bffc7db17)
1e4fc6580SMiguel Ojeda# SPDX-License-Identifier: GPL-2.0
2e4fc6580SMiguel Ojeda
3e4fc6580SMiguel Ojedamenuconfig SAMPLES_RUST
4e4fc6580SMiguel Ojeda	bool "Rust samples"
5e4fc6580SMiguel Ojeda	depends on RUST
6e4fc6580SMiguel Ojeda	help
7e4fc6580SMiguel Ojeda	  You can build sample Rust kernel code here.
8e4fc6580SMiguel Ojeda
9e4fc6580SMiguel Ojeda	  If unsure, say N.
10e4fc6580SMiguel Ojeda
11e4fc6580SMiguel Ojedaif SAMPLES_RUST
12e4fc6580SMiguel Ojeda
13e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_MINIMAL
14e4fc6580SMiguel Ojeda	tristate "Minimal"
15e4fc6580SMiguel Ojeda	help
16e4fc6580SMiguel Ojeda	  This option builds the Rust minimal module sample.
17e4fc6580SMiguel Ojeda
18e4fc6580SMiguel Ojeda	  To compile this as a module, choose M here:
19e4fc6580SMiguel Ojeda	  the module will be called rust_minimal.
20e4fc6580SMiguel Ojeda
21e4fc6580SMiguel Ojeda	  If unsure, say N.
22e4fc6580SMiguel Ojeda
23*fdb1ac6cSLee Jonesconfig SAMPLE_RUST_MISC_DEVICE
24*fdb1ac6cSLee Jones	tristate "Misc device"
25*fdb1ac6cSLee Jones	help
26*fdb1ac6cSLee Jones	  This option builds the Rust misc device.
27*fdb1ac6cSLee Jones
28*fdb1ac6cSLee Jones	  To compile this as a module, choose M here:
29*fdb1ac6cSLee Jones	  the module will be called rust_misc_device.
30*fdb1ac6cSLee Jones
31*fdb1ac6cSLee Jones	  If unsure, say N.
32*fdb1ac6cSLee Jones
33c3630df6SMiguel Ojedaconfig SAMPLE_RUST_PRINT
34c3630df6SMiguel Ojeda	tristate "Printing macros"
35c3630df6SMiguel Ojeda	help
36c3630df6SMiguel Ojeda	  This option builds the Rust printing macros sample.
37c3630df6SMiguel Ojeda
38c3630df6SMiguel Ojeda	  To compile this as a module, choose M here:
39c3630df6SMiguel Ojeda	  the module will be called rust_print.
40c3630df6SMiguel Ojeda
41c3630df6SMiguel Ojeda	  If unsure, say N.
42c3630df6SMiguel Ojeda
43e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS
44e4fc6580SMiguel Ojeda	bool "Host programs"
45e4fc6580SMiguel Ojeda	help
46e4fc6580SMiguel Ojeda	  This option builds the Rust host program samples.
47e4fc6580SMiguel Ojeda
48e4fc6580SMiguel Ojeda	  If unsure, say N.
49e4fc6580SMiguel Ojeda
50e4fc6580SMiguel Ojedaendif # SAMPLES_RUST
51