summaryrefslogtreecommitdiffstats
path: root/samples/vfio-mdev/Makefile
diff options
context:
space:
mode:
authorKirti Wankhede <kwankhede@nvidia.com>2016-11-17 02:16:33 +0530
committerAlex Williamson <alex.williamson@redhat.com>2016-11-17 09:18:44 -0700
commit9d1a546c53b4c1c378b0f34de84ddee2c7d4c90c (patch)
tree6b59e765ab86756a90d486b4842fca1d6b4b7b36 /samples/vfio-mdev/Makefile
parent3771bd96976dbd01ce4995760ed1d0932f30a366 (diff)
downloadlinux-9d1a546c53b4c1c378b0f34de84ddee2c7d4c90c.tar.gz
linux-9d1a546c53b4c1c378b0f34de84ddee2c7d4c90c.tar.bz2
linux-9d1a546c53b4c1c378b0f34de84ddee2c7d4c90c.zip
docs: Sample driver to demonstrate how to use Mediated device framework.
The Sample driver creates mdev device that simulates serial port over PCI card. Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com> Signed-off-by: Neo Jia <cjia@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'samples/vfio-mdev/Makefile')
-rw-r--r--samples/vfio-mdev/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/vfio-mdev/Makefile b/samples/vfio-mdev/Makefile
new file mode 100644
index 000000000000..a932edbe38eb
--- /dev/null
+++ b/samples/vfio-mdev/Makefile
@@ -0,0 +1,13 @@
+#
+# 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