| 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | menuconfig 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 | |
| 11 | if SAMPLES_RUST |
| 12 | |
| 13 | config 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 | |
| 24 | config 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 | |
| 34 | config 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 | |
| 44 | config 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 | |
| 54 | config 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 | |
| 65 | config 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 | |
| 76 | config 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 | |
| 87 | config 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 | |
| 98 | config SAMPLE_RUST_I2C_CLIENT |
| 99 | tristate "I2C Client Registration" |
| 100 | depends on I2C=y |
| 101 | help |
| 102 | This option builds the Rust I2C client manual creation |
| 103 | sample. |
| 104 | |
| 105 | To compile this as a module, choose M here: |
| 106 | the module will be called rust_i2c_client. |
| 107 | |
| 108 | If unsure, say N. |
| 109 | |
| 110 | config SAMPLE_RUST_DRIVER_PCI |
| 111 | tristate "PCI Driver" |
| 112 | depends on PCI |
| 113 | help |
| 114 | This option builds the Rust PCI driver sample. |
| 115 | |
| 116 | To compile this as a module, choose M here: |
| 117 | the module will be called rust_driver_pci. |
| 118 | |
| 119 | If unsure, say N. |
| 120 | |
| 121 | config SAMPLE_RUST_DRIVER_PLATFORM |
| 122 | tristate "Platform Driver" |
| 123 | help |
| 124 | This option builds the Rust Platform driver sample. |
| 125 | |
| 126 | To compile this as a module, choose M here: |
| 127 | the module will be called rust_driver_platform. |
| 128 | |
| 129 | If unsure, say N. |
| 130 | |
| 131 | config SAMPLE_RUST_DRIVER_USB |
| 132 | tristate "USB Driver" |
| 133 | depends on USB = y |
| 134 | help |
| 135 | This option builds the Rust USB driver sample. |
| 136 | |
| 137 | To compile this as a module, choose M here: |
| 138 | the module will be called rust_driver_usb. |
| 139 | |
| 140 | If unsure, say N. |
| 141 | |
| 142 | config SAMPLE_RUST_DRIVER_FAUX |
| 143 | tristate "Faux Driver" |
| 144 | help |
| 145 | This option builds the Rust Faux driver sample. |
| 146 | |
| 147 | To compile this as a module, choose M here: |
| 148 | the module will be called rust_driver_faux. |
| 149 | |
| 150 | If unsure, say N. |
| 151 | |
| 152 | config SAMPLE_RUST_DRIVER_AUXILIARY |
| 153 | tristate "Auxiliary Driver" |
| 154 | depends on PCI |
| 155 | select AUXILIARY_BUS |
| 156 | help |
| 157 | This option builds the Rust auxiliary driver sample. |
| 158 | |
| 159 | To compile this as a module, choose M here: |
| 160 | the module will be called rust_driver_auxiliary. |
| 161 | |
| 162 | If unsure, say N. |
| 163 | |
| 164 | config SAMPLE_RUST_DRIVER_SERDEV |
| 165 | tristate "Serial Device Bus Device Driver" |
| 166 | select RUST_SERIAL_DEV_BUS_ABSTRACTIONS |
| 167 | help |
| 168 | This option builds the Rust serial device bus driver sample. |
| 169 | |
| 170 | To compile this as a module, choose M here: |
| 171 | the module will be called rust_driver_serdev. |
| 172 | |
| 173 | If unsure, say N. |
| 174 | |
| 175 | config SAMPLE_RUST_SOC |
| 176 | tristate "SoC Driver" |
| 177 | select SOC_BUS |
| 178 | help |
| 179 | This option builds the Rust SoC driver sample. |
| 180 | |
| 181 | To compile this as a module, choose M here: |
| 182 | the module will be called rust_soc. |
| 183 | |
| 184 | If unsure, say N. |
| 185 | |
| 186 | config SAMPLE_RUST_HOSTPROGS |
| 187 | bool "Host programs" |
| 188 | help |
| 189 | This option builds the Rust host program samples. |
| 190 | |
| 191 | If unsure, say N. |
| 192 | |
| 193 | endif # SAMPLES_RUST |