xref: /linux/samples/rust/Kconfig (revision df02351331671abb26788bc13f6d276e26ae068f)
1# SPDX-License-Identifier: GPL-2.0
2
3menuconfig SAMPLES_RUST
4	bool "Rust samples"
5	depends on RUST
6	help
7	  You can build sample Rust kernel code here.
8
9	  If unsure, say N.
10
11if SAMPLES_RUST
12
13config SAMPLE_RUST_MINIMAL
14	tristate "Minimal"
15	help
16	  This option builds the Rust minimal module sample.
17
18	  To compile this as a module, choose M here:
19	  the module will be called rust_minimal.
20
21	  If unsure, say N.
22
23config SAMPLE_RUST_MISC_DEVICE
24	tristate "Misc device"
25	help
26	  This option builds the Rust misc device.
27
28	  To compile this as a module, choose M here:
29	  the module will be called rust_misc_device.
30
31	  If unsure, say N.
32
33config SAMPLE_RUST_PRINT
34	tristate "Printing macros"
35	help
36	  This option builds the Rust printing macros sample.
37
38	  To compile this as a module, choose M here:
39	  the module will be called rust_print.
40
41	  If unsure, say N.
42
43config SAMPLE_RUST_DMA
44	tristate "DMA Test Driver"
45	depends on PCI
46	help
47	  This option builds the Rust DMA Test driver sample.
48
49	  To compile this as a module, choose M here:
50	  the module will be called rust_dma.
51
52	  If unsure, say N.
53
54config SAMPLE_RUST_DRIVER_PCI
55	tristate "PCI Driver"
56	depends on PCI
57	help
58	  This option builds the Rust PCI driver sample.
59
60	  To compile this as a module, choose M here:
61	  the module will be called driver_pci.
62
63	  If unsure, say N.
64
65config SAMPLE_RUST_DRIVER_PLATFORM
66	tristate "Platform Driver"
67	help
68	  This option builds the Rust Platform driver sample.
69
70	  To compile this as a module, choose M here:
71	  the module will be called rust_driver_platform.
72
73	  If unsure, say N.
74
75config SAMPLE_RUST_DRIVER_FAUX
76	tristate "Faux Driver"
77	help
78	  This option builds the Rust Faux driver sample.
79
80	  To compile this as a module, choose M here:
81	  the module will be called rust_driver_faux.
82
83	  If unsure, say N.
84
85config SAMPLE_RUST_HOSTPROGS
86	bool "Host programs"
87	help
88	  This option builds the Rust host program samples.
89
90	  If unsure, say N.
91
92endif # SAMPLES_RUST
93