summaryrefslogtreecommitdiff
path: root/xhfc/Makefile
diff options
context:
space:
mode:
authorNoé Rubinstein <nrubinstein@proformatique.com>2010-07-28 12:25:26 +0200
committerNoé Rubinstein <nrubinstein@proformatique.com>2010-07-28 12:25:26 +0200
commited6f4dbfa44f154af94776093a2b43fc7a8a7320 (patch)
treef005809a0ba245d6ca4f7ecfa1e6075db1fe7687 /xhfc/Makefile
parentf10dbbcb7cd35ac9bc3406dab41177572faa884d (diff)
GPIO kernel interface driver
Diffstat (limited to 'xhfc/Makefile')
-rw-r--r--xhfc/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/xhfc/Makefile b/xhfc/Makefile
new file mode 100644
index 0000000..bdb8b48
--- /dev/null
+++ b/xhfc/Makefile
@@ -0,0 +1,27 @@
+#
+# $Id: Makefile,v 1.10 2006/10/11 07:32:01 joergc5 Exp $
+#
+# Makefile for XHFC HWTD - XHFC hardware test driver
+#
+
+KERNEL_SOURCE ?= /lib/modules/$(shell uname -r)/build
+
+CONFIG_XHFC_HWTD=m
+
+list-$(CONFIG_XHFC_HWTD) := xhfchdlc
+
+obj-$(CONFIG_XHFC_HWTD) += xhfchdlc.o
+xhfchdlc-objs := xhfc.o xhfc_leb.o xhfc_test_hdlc.o
+
+modules modules_install clean:
+ $(MAKE) -C $(KERNEL_SOURCE) SUBDIRS=$(shell pwd) $@
+
+install: modules_install
+
+unload:
+ rmmod xhfchdlc
+
+load: modules
+ insmod ./xhfchdlc.ko
+
+reload: unload load