mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
vfio-mdev: Fix mtty sample driver building
This sample driver was originally under Documentation/ and was moved to samples, but build support was never adjusted for the new location. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
This commit is contained in:
parent
98473f9f3f
commit
08c1a4ef7c
@ -105,4 +105,11 @@ config SAMPLE_BLACKFIN_GPTIMERS
|
|||||||
help
|
help
|
||||||
Build samples of blackfin gptimers sample module.
|
Build samples of blackfin gptimers sample module.
|
||||||
|
|
||||||
|
config SAMPLE_VFIO_MDEV_MTTY
|
||||||
|
tristate "Build VFIO mtty example mediated device sample code -- loadable modules only"
|
||||||
|
depends on VFIO_MDEV_DEVICE && m
|
||||||
|
help
|
||||||
|
Build a virtual tty sample driver for use as a VFIO
|
||||||
|
mediated device
|
||||||
|
|
||||||
endif # SAMPLES
|
endif # SAMPLES
|
||||||
|
@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
|
obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \
|
||||||
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
|
hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \
|
||||||
configfs/ connector/ v4l/ trace_printk/ blackfin/
|
configfs/ connector/ v4l/ trace_printk/ blackfin/ \
|
||||||
|
vfio-mdev/
|
||||||
|
@ -1,13 +1 @@
|
|||||||
#
|
obj-$(CONFIG_SAMPLE_VFIO_MDEV_MTTY) += mtty.o
|
||||||
# Makefile for mtty.c file
|
|
||||||
#
|
|
||||||
KERNEL_DIR:=/lib/modules/$(shell uname -r)/build
|
|
||||||
|
|
||||||
obj-m:=mtty.o
|
|
||||||
|
|
||||||
modules clean modules_install:
|
|
||||||
$(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD) $@
|
|
||||||
|
|
||||||
default: modules
|
|
||||||
|
|
||||||
module: modules
|
|
||||||
|
Loading…
Reference in New Issue
Block a user