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 13e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_MINIMAL 14e4fc6580SMiguel Ojeda tristate "Minimal" 15e4fc6580SMiguel Ojeda help 16e4fc6580SMiguel Ojeda This option builds the Rust minimal module sample. 17e4fc6580SMiguel Ojeda 18e4fc6580SMiguel Ojeda To compile this as a module, choose M here: 19e4fc6580SMiguel Ojeda the module will be called rust_minimal. 20e4fc6580SMiguel Ojeda 21e4fc6580SMiguel Ojeda If unsure, say N. 22e4fc6580SMiguel Ojeda 23fdb1ac6cSLee Jonesconfig SAMPLE_RUST_MISC_DEVICE 24fdb1ac6cSLee Jones tristate "Misc device" 25fdb1ac6cSLee Jones help 26fdb1ac6cSLee Jones This option builds the Rust misc device. 27fdb1ac6cSLee Jones 28fdb1ac6cSLee Jones To compile this as a module, choose M here: 29fdb1ac6cSLee Jones the module will be called rust_misc_device. 30fdb1ac6cSLee Jones 31fdb1ac6cSLee Jones If unsure, say N. 32fdb1ac6cSLee Jones 33c3630df6SMiguel Ojedaconfig SAMPLE_RUST_PRINT 34c3630df6SMiguel Ojeda tristate "Printing macros" 35c3630df6SMiguel Ojeda help 36c3630df6SMiguel Ojeda This option builds the Rust printing macros sample. 37c3630df6SMiguel Ojeda 38c3630df6SMiguel Ojeda To compile this as a module, choose M here: 39c3630df6SMiguel Ojeda the module will be called rust_print. 40c3630df6SMiguel Ojeda 41c3630df6SMiguel Ojeda If unsure, say N. 42c3630df6SMiguel Ojeda 439901addaSAbdiel Janulgueconfig SAMPLE_RUST_DMA 449901addaSAbdiel Janulgue tristate "DMA Test Driver" 459901addaSAbdiel Janulgue depends on PCI 469901addaSAbdiel Janulgue help 479901addaSAbdiel Janulgue This option builds the Rust DMA Test driver sample. 489901addaSAbdiel Janulgue 499901addaSAbdiel Janulgue To compile this as a module, choose M here: 509901addaSAbdiel Janulgue the module will be called rust_dma. 519901addaSAbdiel Janulgue 529901addaSAbdiel Janulgue If unsure, say N. 539901addaSAbdiel Janulgue 54685376d1SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PCI 55685376d1SDanilo Krummrich tristate "PCI Driver" 56685376d1SDanilo Krummrich depends on PCI 57685376d1SDanilo Krummrich help 58685376d1SDanilo Krummrich This option builds the Rust PCI driver sample. 59685376d1SDanilo Krummrich 60685376d1SDanilo Krummrich To compile this as a module, choose M here: 61685376d1SDanilo Krummrich the module will be called driver_pci. 62685376d1SDanilo Krummrich 63685376d1SDanilo Krummrich If unsure, say N. 64685376d1SDanilo Krummrich 65b2e8a832SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_PLATFORM 66b2e8a832SDanilo Krummrich tristate "Platform Driver" 67b2e8a832SDanilo Krummrich help 68b2e8a832SDanilo Krummrich This option builds the Rust Platform driver sample. 69b2e8a832SDanilo Krummrich 70b2e8a832SDanilo Krummrich To compile this as a module, choose M here: 71b2e8a832SDanilo Krummrich the module will be called rust_driver_platform. 72b2e8a832SDanilo Krummrich 73b2e8a832SDanilo Krummrich If unsure, say N. 74b2e8a832SDanilo Krummrich 7578418f30SLyude Paulconfig SAMPLE_RUST_DRIVER_FAUX 7678418f30SLyude Paul tristate "Faux Driver" 7778418f30SLyude Paul help 7878418f30SLyude Paul This option builds the Rust Faux driver sample. 7978418f30SLyude Paul 8078418f30SLyude Paul To compile this as a module, choose M here: 8178418f30SLyude Paul the module will be called rust_driver_faux. 8278418f30SLyude Paul 8378418f30SLyude Paul If unsure, say N. 8478418f30SLyude Paul 8596609a19SDanilo Krummrichconfig SAMPLE_RUST_DRIVER_AUXILIARY 8696609a19SDanilo Krummrich tristate "Auxiliary Driver" 8796609a19SDanilo Krummrich depends on PCI 88*80a8bcc6SAlexandre Courbot select AUXILIARY_BUS 8996609a19SDanilo Krummrich help 9096609a19SDanilo Krummrich This option builds the Rust auxiliary driver sample. 9196609a19SDanilo Krummrich 9296609a19SDanilo Krummrich To compile this as a module, choose M here: 9396609a19SDanilo Krummrich the module will be called rust_driver_auxiliary. 9496609a19SDanilo Krummrich 9596609a19SDanilo Krummrich If unsure, say N. 9696609a19SDanilo Krummrich 97e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS 98e4fc6580SMiguel Ojeda bool "Host programs" 99e4fc6580SMiguel Ojeda help 100e4fc6580SMiguel Ojeda This option builds the Rust host program samples. 101e4fc6580SMiguel Ojeda 102e4fc6580SMiguel Ojeda If unsure, say N. 103e4fc6580SMiguel Ojeda 104e4fc6580SMiguel Ojedaendif # SAMPLES_RUST 105