mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
fdb1ac6c30
This sample driver demonstrates the following basic operations: * Register a Misc Device * Create /dev/rust-misc-device * Provide open call-back for the aforementioned character device * Operate on the character device via a simple ioctl() * Provide close call-back for the character device Signed-off-by: Lee Jones <lee@kernel.org> Reviewed-by: Danilo Krummrich <dakr@kernel.org> Link: https://lore.kernel.org/r/20241213134715.601415-3-lee@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
11 lines
360 B
Makefile
11 lines
360 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
ccflags-y += -I$(src) # needed for trace events
|
|
|
|
obj-$(CONFIG_SAMPLE_RUST_MINIMAL) += rust_minimal.o
|
|
obj-$(CONFIG_SAMPLE_RUST_MISC_DEVICE) += rust_misc_device.o
|
|
obj-$(CONFIG_SAMPLE_RUST_PRINT) += rust_print.o
|
|
|
|
rust_print-y := rust_print_main.o rust_print_events.o
|
|
|
|
subdir-$(CONFIG_SAMPLE_RUST_HOSTPROGS) += hostprogs
|