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 23*c3630df6SMiguel Ojedaconfig SAMPLE_RUST_PRINT 24*c3630df6SMiguel Ojeda tristate "Printing macros" 25*c3630df6SMiguel Ojeda help 26*c3630df6SMiguel Ojeda This option builds the Rust printing macros sample. 27*c3630df6SMiguel Ojeda 28*c3630df6SMiguel Ojeda To compile this as a module, choose M here: 29*c3630df6SMiguel Ojeda the module will be called rust_print. 30*c3630df6SMiguel Ojeda 31*c3630df6SMiguel Ojeda If unsure, say N. 32*c3630df6SMiguel Ojeda 33e4fc6580SMiguel Ojedaconfig SAMPLE_RUST_HOSTPROGS 34e4fc6580SMiguel Ojeda bool "Host programs" 35e4fc6580SMiguel Ojeda help 36e4fc6580SMiguel Ojeda This option builds the Rust host program samples. 37e4fc6580SMiguel Ojeda 38e4fc6580SMiguel Ojeda If unsure, say N. 39e4fc6580SMiguel Ojeda 40e4fc6580SMiguel Ojedaendif # SAMPLES_RUST 41