xref: /linux/samples/rust/Kconfig (revision c17ee635fd3a482b2ad2bf5e269755c2eae5f25e)
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
131bfb1050SAndreas Hindborgconfig SAMPLE_RUST_CONFIGFS
141bfb1050SAndreas Hindborg	tristate "Configfs sample"
151bfb1050SAndreas Hindborg	depends on CONFIGFS_FS
161bfb1050SAndreas Hindborg	help
171bfb1050SAndreas Hindborg	  This option builds the Rust configfs sample.
181bfb1050SAndreas Hindborg
191bfb1050SAndreas Hindborg	  To compile this as a module, choose M here:
201bfb1050SAndreas Hindborg	  the module will be called rust_configfs.
211bfb1050SAndreas Hindborg
221bfb1050SAndreas Hindborg	  If unsure, say N.
231bfb1050SAndreas 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
656f227d21SMatthew Maurerconfig SAMPLE_RUST_DEBUGFS
666f227d21SMatthew Maurer	tristate "DebugFS Test Module"
676f227d21SMatthew Maurer	depends on DEBUG_FS
686f227d21SMatthew Maurer	help
696f227d21SMatthew Maurer	  This option builds the Rust DebugFS Test module sample.
706f227d21SMatthew Maurer
716f227d21SMatthew Maurer	  To compile this as a module, choose M here:
726f227d21SMatthew Maurer	  the module will be called rust_debugfs.
736f227d21SMatthew Maurer
746f227d21SMatthew Maurer	  If unsure, say N.
756f227d21SMatthew Maurer
76d4a5d397SMatthew Maurerconfig SAMPLE_RUST_DEBUGFS_SCOPED
77d4a5d397SMatthew Maurer	tristate "Scoped DebugFS Test Module"
78d4a5d397SMatthew Maurer	depends on DEBUG_FS
79d4a5d397SMatthew Maurer	help
80d4a5d397SMatthew Maurer	  This option builds the Rust Scoped DebugFS Test module sample.
81d4a5d397SMatthew Maurer
82d4a5d397SMatthew Maurer	  To compile this as a module, choose M here:
83d4a5d397SMatthew Maurer	  the module will be called rust_debugfs_scoped.
84d4a5d397SMatthew Maurer
85d4a5d397SMatthew Maurer	  If unsure, say N.
86d4a5d397SMatthew Maurer
87d05b8e97SIgor Korotinconfig SAMPLE_RUST_DRIVER_I2C
88d05b8e97SIgor Korotin	tristate "I2C Driver"
89d05b8e97SIgor Korotin	depends on I2C=y
90d05b8e97SIgor Korotin	help
91d05b8e97SIgor Korotin	  This option builds the Rust I2C driver sample.
92d05b8e97SIgor Korotin
93d05b8e97SIgor Korotin	  To compile this as a module, choose M here:
94d05b8e97SIgor Korotin	  the module will be called rust_driver_i2c.
95d05b8e97SIgor Korotin
96d05b8e97SIgor Korotin	  If unsure, say N.
97d05b8e97SIgor Korotin
9813ae55e2SIgor Korotinconfig SAMPLE_RUST_I2C_CLIENT
9913ae55e2SIgor Korotin	tristate "I2C Client Registration"
10013ae55e2SIgor Korotin	depends on I2C=y
10113ae55e2SIgor Korotin	help
10213ae55e2SIgor Korotin	  This option builds the Rust I2C client manual creation
10313ae55e2SIgor Korotin	  sample.
10413ae55e2SIgor Korotin
10513ae55e2SIgor Korotin	  To compile this as a module, choose M here:
10613ae55e2SIgor Korotin	  the module will be called rust_i2c_client.
10713ae55e2SIgor Korotin
10813ae55e2SIgor Korotin	  If unsure, say N.
10913ae55e2SIgor Korotin
110685376d1SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PCI
111685376d1SDanilo Krummrich	tristate "PCI Driver"
112685376d1SDanilo Krummrich	depends on PCI
113685376d1SDanilo Krummrich	help
114685376d1SDanilo Krummrich	  This option builds the Rust PCI driver sample.
115685376d1SDanilo Krummrich
116685376d1SDanilo Krummrich	  To compile this as a module, choose M here:
11746354064SPeter Colberg	  the module will be called rust_driver_pci.
118685376d1SDanilo Krummrich
119685376d1SDanilo Krummrich	  If unsure, say N.
120685376d1SDanilo Krummrich
121b2e8a832SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PLATFORM
122b2e8a832SDanilo Krummrich	tristate "Platform Driver"
123b2e8a832SDanilo Krummrich	help
124b2e8a832SDanilo Krummrich	  This option builds the Rust Platform driver sample.
125b2e8a832SDanilo Krummrich
126b2e8a832SDanilo Krummrich	  To compile this as a module, choose M here:
127b2e8a832SDanilo Krummrich	  the module will be called rust_driver_platform.
128b2e8a832SDanilo Krummrich
129b2e8a832SDanilo Krummrich	  If unsure, say N.
130b2e8a832SDanilo Krummrich
131cc80dbb7SDaniel Almeidaconfig SAMPLE_RUST_DRIVER_USB
132cc80dbb7SDaniel Almeida	tristate "USB Driver"
1339a55e007SGreg Kroah-Hartman	depends on USB = y
134cc80dbb7SDaniel Almeida	help
135cc80dbb7SDaniel Almeida	  This option builds the Rust USB driver sample.
136cc80dbb7SDaniel Almeida
137cc80dbb7SDaniel Almeida	  To compile this as a module, choose M here:
138cc80dbb7SDaniel Almeida	  the module will be called rust_driver_usb.
139cc80dbb7SDaniel Almeida
140cc80dbb7SDaniel Almeida	  If unsure, say N.
141cc80dbb7SDaniel Almeida
14278418f30SLyude Paulconfig SAMPLE_RUST_DRIVER_FAUX
14378418f30SLyude Paul	tristate "Faux Driver"
14478418f30SLyude Paul	help
14578418f30SLyude Paul	  This option builds the Rust Faux driver sample.
14678418f30SLyude Paul
14778418f30SLyude Paul	  To compile this as a module, choose M here:
14878418f30SLyude Paul	  the module will be called rust_driver_faux.
14978418f30SLyude Paul
15078418f30SLyude Paul	  If unsure, say N.
15178418f30SLyude Paul
15296609a19SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_AUXILIARY
15396609a19SDanilo Krummrich	tristate "Auxiliary Driver"
15496609a19SDanilo Krummrich	depends on PCI
15580a8bcc6SAlexandre Courbot	select AUXILIARY_BUS
15696609a19SDanilo Krummrich	help
15796609a19SDanilo Krummrich	  This option builds the Rust auxiliary driver sample.
15896609a19SDanilo Krummrich
15996609a19SDanilo Krummrich	  To compile this as a module, choose M here:
16096609a19SDanilo Krummrich	  the module will be called rust_driver_auxiliary.
16196609a19SDanilo Krummrich
16296609a19SDanilo Krummrich	  If unsure, say N.
16396609a19SDanilo Krummrich
164*d43a12e4SMatthew Maurerconfig SAMPLE_RUST_SOC
165*d43a12e4SMatthew Maurer	tristate "SoC Driver"
166*d43a12e4SMatthew Maurer	select SOC_BUS
167*d43a12e4SMatthew Maurer	help
168*d43a12e4SMatthew Maurer	  This option builds the Rust SoC driver sample.
169*d43a12e4SMatthew Maurer
170*d43a12e4SMatthew Maurer	  To compile this as a module, choose M here:
171*d43a12e4SMatthew Maurer	  the module will be called rust_soc.
172*d43a12e4SMatthew Maurer
173*d43a12e4SMatthew Maurer	  If unsure, say N.
174*d43a12e4SMatthew Maurer
175e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS
176e4fc6580SMiguel Ojeda	bool "Host programs"
177e4fc6580SMiguel Ojeda	help
178e4fc6580SMiguel Ojeda	  This option builds the Rust host program samples.
179e4fc6580SMiguel Ojeda
180e4fc6580SMiguel Ojeda	  If unsure, say N.
181e4fc6580SMiguel Ojeda
182e4fc6580SMiguel Ojedaendif # SAMPLES_RUST
183