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 87685376d1SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PCI 88685376d1SDanilo Krummrich tristate "PCI Driver" 89685376d1SDanilo Krummrich depends on PCI 90685376d1SDanilo Krummrich help 91685376d1SDanilo Krummrich This option builds the Rust PCI driver sample. 92685376d1SDanilo Krummrich 93685376d1SDanilo Krummrich To compile this as a module, choose M here: 94685376d1SDanilo Krummrich the module will be called driver_pci. 95685376d1SDanilo Krummrich 96685376d1SDanilo Krummrich If unsure, say N. 97685376d1SDanilo Krummrich 98b2e8a832SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PLATFORM 99b2e8a832SDanilo Krummrich tristate "Platform Driver" 100b2e8a832SDanilo Krummrich help 101b2e8a832SDanilo Krummrich This option builds the Rust Platform driver sample. 102b2e8a832SDanilo Krummrich 103b2e8a832SDanilo Krummrich To compile this as a module, choose M here: 104b2e8a832SDanilo Krummrich the module will be called rust_driver_platform. 105b2e8a832SDanilo Krummrich 106b2e8a832SDanilo Krummrich If unsure, say N. 107b2e8a832SDanilo Krummrich 108cc80dbb7SDaniel Almeidaconfig SAMPLE_RUST_DRIVER_USB 109cc80dbb7SDaniel Almeida tristate "USB Driver" 110*c584a1c7SGreg Kroah-Hartman depends on USB = y && BROKEN 111cc80dbb7SDaniel Almeida help 112cc80dbb7SDaniel Almeida This option builds the Rust USB driver sample. 113cc80dbb7SDaniel Almeida 114cc80dbb7SDaniel Almeida To compile this as a module, choose M here: 115cc80dbb7SDaniel Almeida the module will be called rust_driver_usb. 116cc80dbb7SDaniel Almeida 117cc80dbb7SDaniel Almeida If unsure, say N. 118cc80dbb7SDaniel Almeida 11978418f30SLyude Paulconfig SAMPLE_RUST_DRIVER_FAUX 12078418f30SLyude Paul tristate "Faux Driver" 12178418f30SLyude Paul help 12278418f30SLyude Paul This option builds the Rust Faux driver sample. 12378418f30SLyude Paul 12478418f30SLyude Paul To compile this as a module, choose M here: 12578418f30SLyude Paul the module will be called rust_driver_faux. 12678418f30SLyude Paul 12778418f30SLyude Paul If unsure, say N. 12878418f30SLyude Paul 12996609a19SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_AUXILIARY 13096609a19SDanilo Krummrich tristate "Auxiliary Driver" 13196609a19SDanilo Krummrich depends on PCI 13280a8bcc6SAlexandre Courbot select AUXILIARY_BUS 13396609a19SDanilo Krummrich help 13496609a19SDanilo Krummrich This option builds the Rust auxiliary driver sample. 13596609a19SDanilo Krummrich 13696609a19SDanilo Krummrich To compile this as a module, choose M here: 13796609a19SDanilo Krummrich the module will be called rust_driver_auxiliary. 13896609a19SDanilo Krummrich 13996609a19SDanilo Krummrich If unsure, say N. 14096609a19SDanilo Krummrich 141e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS 142e4fc6580SMiguel Ojeda bool "Host programs" 143e4fc6580SMiguel Ojeda help 144e4fc6580SMiguel Ojeda This option builds the Rust host program samples. 145e4fc6580SMiguel Ojeda 146e4fc6580SMiguel Ojeda If unsure, say N. 147e4fc6580SMiguel Ojeda 148e4fc6580SMiguel Ojedaendif # SAMPLES_RUST 149