Kconfig 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. # SPDX-License-Identifier: GPL-2.0
  2. menuconfig SAMPLES_RUST
  3. bool "Rust samples"
  4. depends on RUST
  5. help
  6. You can build sample Rust kernel code here.
  7. If unsure, say N.
  8. if SAMPLES_RUST
  9. config SAMPLE_RUST_CONFIGFS
  10. tristate "Configfs sample"
  11. depends on CONFIGFS_FS
  12. help
  13. This option builds the Rust configfs sample.
  14. To compile this as a module, choose M here:
  15. the module will be called rust_configfs.
  16. If unsure, say N.
  17. config SAMPLE_RUST_MINIMAL
  18. tristate "Minimal"
  19. help
  20. This option builds the Rust minimal module sample.
  21. To compile this as a module, choose M here:
  22. the module will be called rust_minimal.
  23. If unsure, say N.
  24. config SAMPLE_RUST_MISC_DEVICE
  25. tristate "Misc device"
  26. help
  27. This option builds the Rust misc device.
  28. To compile this as a module, choose M here:
  29. the module will be called rust_misc_device.
  30. If unsure, say N.
  31. config SAMPLE_RUST_PRINT
  32. tristate "Printing macros"
  33. help
  34. This option builds the Rust printing macros sample.
  35. To compile this as a module, choose M here:
  36. the module will be called rust_print.
  37. If unsure, say N.
  38. config SAMPLE_RUST_DMA
  39. tristate "DMA Test Driver"
  40. depends on PCI
  41. help
  42. This option builds the Rust DMA Test driver sample.
  43. To compile this as a module, choose M here:
  44. the module will be called rust_dma.
  45. If unsure, say N.
  46. config SAMPLE_RUST_DEBUGFS
  47. tristate "DebugFS Test Module"
  48. depends on DEBUG_FS
  49. help
  50. This option builds the Rust DebugFS Test module sample.
  51. To compile this as a module, choose M here:
  52. the module will be called rust_debugfs.
  53. If unsure, say N.
  54. config SAMPLE_RUST_DEBUGFS_SCOPED
  55. tristate "Scoped DebugFS Test Module"
  56. depends on DEBUG_FS
  57. help
  58. This option builds the Rust Scoped DebugFS Test module sample.
  59. To compile this as a module, choose M here:
  60. the module will be called rust_debugfs_scoped.
  61. If unsure, say N.
  62. config SAMPLE_RUST_DRIVER_I2C
  63. tristate "I2C Driver"
  64. depends on I2C=y
  65. help
  66. This option builds the Rust I2C driver sample.
  67. To compile this as a module, choose M here:
  68. the module will be called rust_driver_i2c.
  69. If unsure, say N.
  70. config SAMPLE_RUST_I2C_CLIENT
  71. tristate "I2C Client Registration"
  72. depends on I2C=y
  73. help
  74. This option builds the Rust I2C client manual creation
  75. sample.
  76. To compile this as a module, choose M here:
  77. the module will be called rust_i2c_client.
  78. If unsure, say N.
  79. config SAMPLE_RUST_DRIVER_PCI
  80. tristate "PCI Driver"
  81. depends on PCI
  82. help
  83. This option builds the Rust PCI driver sample.
  84. To compile this as a module, choose M here:
  85. the module will be called rust_driver_pci.
  86. If unsure, say N.
  87. config SAMPLE_RUST_DRIVER_PLATFORM
  88. tristate "Platform Driver"
  89. help
  90. This option builds the Rust Platform driver sample.
  91. To compile this as a module, choose M here:
  92. the module will be called rust_driver_platform.
  93. If unsure, say N.
  94. config SAMPLE_RUST_DRIVER_USB
  95. tristate "USB Driver"
  96. depends on USB = y
  97. help
  98. This option builds the Rust USB driver sample.
  99. To compile this as a module, choose M here:
  100. the module will be called rust_driver_usb.
  101. If unsure, say N.
  102. config SAMPLE_RUST_DRIVER_FAUX
  103. tristate "Faux Driver"
  104. help
  105. This option builds the Rust Faux driver sample.
  106. To compile this as a module, choose M here:
  107. the module will be called rust_driver_faux.
  108. If unsure, say N.
  109. config SAMPLE_RUST_DRIVER_AUXILIARY
  110. tristate "Auxiliary Driver"
  111. depends on PCI
  112. select AUXILIARY_BUS
  113. help
  114. This option builds the Rust auxiliary driver sample.
  115. To compile this as a module, choose M here:
  116. the module will be called rust_driver_auxiliary.
  117. If unsure, say N.
  118. config SAMPLE_RUST_SOC
  119. tristate "SoC Driver"
  120. select SOC_BUS
  121. help
  122. This option builds the Rust SoC driver sample.
  123. To compile this as a module, choose M here:
  124. the module will be called rust_soc.
  125. If unsure, say N.
  126. config SAMPLE_RUST_HOSTPROGS
  127. bool "Host programs"
  128. help
  129. This option builds the Rust host program samples.
  130. If unsure, say N.
  131. endif # SAMPLES_RUST