samples: kdbus: build kdbus-workers conditionally
authorDaniel Mack <daniel@zonque.org>
Tue, 31 Mar 2015 13:11:34 +0000 (15:11 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 29 Jun 2015 10:50:39 +0000 (19:50 +0900)
Give the kdbus sample its own config switch and only build it if it's
explicitly switched on.

Change-Id: Ib51ce99a1800a07b2e14d8ed3076f6e9556bc981
Signed-off-by: Daniel Mack <daniel@zonque.org>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reported-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Osmialowski <p.osmialowsk@samsung.com>
samples/Kconfig
samples/kdbus/Makefile

index 224ebb46bed5f8cf2965103f18ffa659d7629e76..a4c6b2f8fa85607e21cc71643a96e4dc7af909cf 100644 (file)
@@ -55,6 +55,13 @@ config SAMPLE_KDB
          Build an example of how to dynamically add the hello
          command to the kdb shell.
 
+config SAMPLE_KDBUS
+       bool "Build kdbus API example"
+       depends on KDBUS
+       help
+         Build an example of how the kdbus API can be used from
+         userspace.
+
 config SAMPLE_RPMSG_CLIENT
        tristate "Build rpmsg client sample -- loadable modules only"
        depends on RPMSG && m
index e714602b62608c8c877817ecd35e93f94782e0e3..137f8427209946406994f25841ae128c59bea4c1 100644 (file)
@@ -1,7 +1,7 @@
 # kbuild trick to avoid linker error. Can be omitted if a module is built.
 obj- := dummy.o
 
-hostprogs-y += kdbus-workers
+hostprogs-$(CONFIG_SAMPLE_KDBUS) += kdbus-workers
 
 always := $(hostprogs-y)