summaryrefslogtreecommitdiffstats
path: root/samples/connector/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-04-25 18:03:08 +0200
committerJonathan Corbet <corbet@lwn.net>2016-04-28 15:47:35 +0200
commit14fbff6b4e48a529c90e771598ac12bffd445ff4 (patch)
treeebbd42b6baecbba583bf00410b6c75be09b96f4c /samples/connector/Makefile
parentDocumentation: xillybus: fix spelling mistake (diff)
downloadlinux-14fbff6b4e48a529c90e771598ac12bffd445ff4.tar.xz
linux-14fbff6b4e48a529c90e771598ac12bffd445ff4.zip
samples: connector: from Documentation to samples directory
A small bug with the new autoksyms support showed that there are two kernel modules in the Documentation directory that qualify as samples, while all other samples are in the samples/ directory. This patch was originally meant as a workaround for that bug, but it has now been solved in a different way. However, I still think it makes sense as a cleanup to consolidate all sample code in one place. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'samples/connector/Makefile')
-rw-r--r--samples/connector/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/samples/connector/Makefile b/samples/connector/Makefile
new file mode 100644
index 000000000000..04b9622b6f51
--- /dev/null
+++ b/samples/connector/Makefile
@@ -0,0 +1,16 @@
+obj-$(CONFIG_SAMPLE_CONNECTOR) += cn_test.o
+
+# List of programs to build
+ifdef CONFIG_SAMPLE_CONNECTOR
+hostprogs-y := ucon
+endif
+
+# Tell kbuild to always build the programs
+always := $(hostprogs-y)
+
+HOSTCFLAGS_ucon.o += -I$(objtree)/usr/include
+
+all: modules
+
+modules clean:
+ $(MAKE) -C ../.. SUBDIRS=$(PWD) $@