xref: /linux/samples/rust/Kconfig (revision c584a1c7c8a192c13637bc51c7b63a9f15fe6474)
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_CONFIGFS
14	tristate "Configfs sample"
15	depends on CONFIGFS_FS
16	help
17	  This option builds the Rust configfs sample.
18
19	  To compile this as a module, choose M here:
20	  the module will be called rust_configfs.
21
22	  If unsure, say N.
23
24config SAMPLE_RUST_MINIMAL
25	tristate "Minimal"
26	help
27	  This option builds the Rust minimal module sample.
28
29	  To compile this as a module, choose M here:
30	  the module will be called rust_minimal.
31
32	  If unsure, say N.
33
34config SAMPLE_RUST_MISC_DEVICE
35	tristate "Misc device"
36	help
37	  This option builds the Rust misc device.
38
39	  To compile this as a module, choose M here:
40	  the module will be called rust_misc_device.
41
42	  If unsure, say N.
43
44config SAMPLE_RUST_PRINT
45	tristate "Printing macros"
46	help
47	  This option builds the Rust printing macros sample.
48
49	  To compile this as a module, choose M here:
50	  the module will be called rust_print.
51
52	  If unsure, say N.
53
54config SAMPLE_RUST_DMA
55	tristate "DMA Test Driver"
56	depends on PCI
57	help
58	  This option builds the Rust DMA Test driver sample.
59
60	  To compile this as a module, choose M here:
61	  the module will be called rust_dma.
62
63	  If unsure, say N.
64
65config SAMPLE_RUST_DRIVER_PCI
66	tristate "PCI Driver"
67	depends on PCI
68	help
69	  This option builds the Rust PCI driver sample.
70
71	  To compile this as a module, choose M here:
72	  the module will be called driver_pci.
73
74	  If unsure, say N.
75
76config SAMPLE_RUST_DRIVER_PLATFORM
77	tristate "Platform Driver"
78	help
79	  This option builds the Rust Platform driver sample.
80
81	  To compile this as a module, choose M here:
82	  the module will be called rust_driver_platform.
83
84	  If unsure, say N.
85
86config SAMPLE_RUST_DRIVER_USB
87	tristate "USB Driver"
88	depends on USB = y && BROKEN
89	help
90	  This option builds the Rust USB driver sample.
91
92	  To compile this as a module, choose M here:
93	  the module will be called rust_driver_usb.
94
95	  If unsure, say N.
96
97config SAMPLE_RUST_DRIVER_FAUX
98	tristate "Faux Driver"
99	help
100	  This option builds the Rust Faux driver sample.
101
102	  To compile this as a module, choose M here:
103	  the module will be called rust_driver_faux.
104
105	  If unsure, say N.
106
107config SAMPLE_RUST_DRIVER_AUXILIARY
108	tristate "Auxiliary Driver"
109	depends on PCI
110	select AUXILIARY_BUS
111	help
112	  This option builds the Rust auxiliary driver sample.
113
114	  To compile this as a module, choose M here:
115	  the module will be called rust_driver_auxiliary.
116
117	  If unsure, say N.
118
119config SAMPLE_RUST_HOSTPROGS
120	bool "Host programs"
121	help
122	  This option builds the Rust host program samples.
123
124	  If unsure, say N.
125
126endif # SAMPLES_RUST
127