xref: /linux/samples/rust/Kconfig (revision 1bfb105051566ec5cc7c4f693362420b37a68781)
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
13*1bfb1050SAndreas Hindborgconfig SAMPLE_RUST_CONFIGFS
14*1bfb1050SAndreas Hindborg	tristate "Configfs sample"
15*1bfb1050SAndreas Hindborg	depends on CONFIGFS_FS
16*1bfb1050SAndreas Hindborg	help
17*1bfb1050SAndreas Hindborg	  This option builds the Rust configfs sample.
18*1bfb1050SAndreas Hindborg
19*1bfb1050SAndreas Hindborg	  To compile this as a module, choose M here:
20*1bfb1050SAndreas Hindborg	  the module will be called rust_configfs.
21*1bfb1050SAndreas Hindborg
22*1bfb1050SAndreas Hindborg	  If unsure, say N.
23*1bfb1050SAndreas Hindborg
24e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_MINIMAL
25e4fc6580SMiguel Ojeda	tristate "Minimal"
26e4fc6580SMiguel Ojeda	help
27e4fc6580SMiguel Ojeda	  This option builds the Rust minimal module sample.
28e4fc6580SMiguel Ojeda
29e4fc6580SMiguel Ojeda	  To compile this as a module, choose M here:
30e4fc6580SMiguel Ojeda	  the module will be called rust_minimal.
31e4fc6580SMiguel Ojeda
32e4fc6580SMiguel Ojeda	  If unsure, say N.
33e4fc6580SMiguel Ojeda
34fdb1ac6cSLee Jonesconfig SAMPLE_RUST_MISC_DEVICE
35fdb1ac6cSLee Jones	tristate "Misc device"
36fdb1ac6cSLee Jones	help
37fdb1ac6cSLee Jones	  This option builds the Rust misc device.
38fdb1ac6cSLee Jones
39fdb1ac6cSLee Jones	  To compile this as a module, choose M here:
40fdb1ac6cSLee Jones	  the module will be called rust_misc_device.
41fdb1ac6cSLee Jones
42fdb1ac6cSLee Jones	  If unsure, say N.
43fdb1ac6cSLee Jones
44c3630df6SMiguel Ojedaconfig SAMPLE_RUST_PRINT
45c3630df6SMiguel Ojeda	tristate "Printing macros"
46c3630df6SMiguel Ojeda	help
47c3630df6SMiguel Ojeda	  This option builds the Rust printing macros sample.
48c3630df6SMiguel Ojeda
49c3630df6SMiguel Ojeda	  To compile this as a module, choose M here:
50c3630df6SMiguel Ojeda	  the module will be called rust_print.
51c3630df6SMiguel Ojeda
52c3630df6SMiguel Ojeda	  If unsure, say N.
53c3630df6SMiguel Ojeda
549901addaSAbdiel Janulgueconfig SAMPLE_RUST_DMA
559901addaSAbdiel Janulgue	tristate "DMA Test Driver"
569901addaSAbdiel Janulgue	depends on PCI
579901addaSAbdiel Janulgue	help
589901addaSAbdiel Janulgue	  This option builds the Rust DMA Test driver sample.
599901addaSAbdiel Janulgue
609901addaSAbdiel Janulgue	  To compile this as a module, choose M here:
619901addaSAbdiel Janulgue	  the module will be called rust_dma.
629901addaSAbdiel Janulgue
639901addaSAbdiel Janulgue	  If unsure, say N.
649901addaSAbdiel Janulgue
65685376d1SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PCI
66685376d1SDanilo Krummrich	tristate "PCI Driver"
67685376d1SDanilo Krummrich	depends on PCI
68685376d1SDanilo Krummrich	help
69685376d1SDanilo Krummrich	  This option builds the Rust PCI driver sample.
70685376d1SDanilo Krummrich
71685376d1SDanilo Krummrich	  To compile this as a module, choose M here:
72685376d1SDanilo Krummrich	  the module will be called driver_pci.
73685376d1SDanilo Krummrich
74685376d1SDanilo Krummrich	  If unsure, say N.
75685376d1SDanilo Krummrich
76b2e8a832SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PLATFORM
77b2e8a832SDanilo Krummrich	tristate "Platform Driver"
78b2e8a832SDanilo Krummrich	help
79b2e8a832SDanilo Krummrich	  This option builds the Rust Platform driver sample.
80b2e8a832SDanilo Krummrich
81b2e8a832SDanilo Krummrich	  To compile this as a module, choose M here:
82b2e8a832SDanilo Krummrich	  the module will be called rust_driver_platform.
83b2e8a832SDanilo Krummrich
84b2e8a832SDanilo Krummrich	  If unsure, say N.
85b2e8a832SDanilo Krummrich
8678418f30SLyude Paulconfig SAMPLE_RUST_DRIVER_FAUX
8778418f30SLyude Paul	tristate "Faux Driver"
8878418f30SLyude Paul	help
8978418f30SLyude Paul	  This option builds the Rust Faux driver sample.
9078418f30SLyude Paul
9178418f30SLyude Paul	  To compile this as a module, choose M here:
9278418f30SLyude Paul	  the module will be called rust_driver_faux.
9378418f30SLyude Paul
9478418f30SLyude Paul	  If unsure, say N.
9578418f30SLyude Paul
96e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS
97e4fc6580SMiguel Ojeda	bool "Host programs"
98e4fc6580SMiguel Ojeda	help
99e4fc6580SMiguel Ojeda	  This option builds the Rust host program samples.
100e4fc6580SMiguel Ojeda
101e4fc6580SMiguel Ojeda	  If unsure, say N.
102e4fc6580SMiguel Ojeda
103e4fc6580SMiguel Ojedaendif # SAMPLES_RUST
104