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_DEBUGFS 66 tristate "DebugFS Test Module" 67 depends on DEBUG_FS 68 help 69 This option builds the Rust DebugFS Test module sample. 70 71 To compile this as a module, choose M here: 72 the module will be called rust_debugfs. 73 74 If unsure, say N. 75 76config SAMPLE_RUST_DEBUGFS_SCOPED 77 tristate "Scoped DebugFS Test Module" 78 depends on DEBUG_FS 79 help 80 This option builds the Rust Scoped DebugFS Test module sample. 81 82 To compile this as a module, choose M here: 83 the module will be called rust_debugfs_scoped. 84 85 If unsure, say N. 86 87config SAMPLE_RUST_DRIVER_I2C 88 tristate "I2C Driver" 89 depends on I2C=y 90 help 91 This option builds the Rust I2C driver sample. 92 93 To compile this as a module, choose M here: 94 the module will be called rust_driver_i2c. 95 96 If unsure, say N. 97 98config SAMPLE_RUST_DRIVER_PCI 99 tristate "PCI Driver" 100 depends on PCI 101 help 102 This option builds the Rust PCI driver sample. 103 104 To compile this as a module, choose M here: 105 the module will be called driver_pci. 106 107 If unsure, say N. 108 109config SAMPLE_RUST_DRIVER_PLATFORM 110 tristate "Platform Driver" 111 help 112 This option builds the Rust Platform driver sample. 113 114 To compile this as a module, choose M here: 115 the module will be called rust_driver_platform. 116 117 If unsure, say N. 118 119config SAMPLE_RUST_DRIVER_USB 120 tristate "USB Driver" 121 depends on USB = y && BROKEN 122 help 123 This option builds the Rust USB driver sample. 124 125 To compile this as a module, choose M here: 126 the module will be called rust_driver_usb. 127 128 If unsure, say N. 129 130config SAMPLE_RUST_DRIVER_FAUX 131 tristate "Faux Driver" 132 help 133 This option builds the Rust Faux driver sample. 134 135 To compile this as a module, choose M here: 136 the module will be called rust_driver_faux. 137 138 If unsure, say N. 139 140config SAMPLE_RUST_DRIVER_AUXILIARY 141 tristate "Auxiliary Driver" 142 depends on PCI 143 select AUXILIARY_BUS 144 help 145 This option builds the Rust auxiliary driver sample. 146 147 To compile this as a module, choose M here: 148 the module will be called rust_driver_auxiliary. 149 150 If unsure, say N. 151 152config SAMPLE_RUST_HOSTPROGS 153 bool "Host programs" 154 help 155 This option builds the Rust host program samples. 156 157 If unsure, say N. 158 159endif # SAMPLES_RUST 160