From: Daniel Mack Date: Tue, 31 Mar 2015 13:11:34 +0000 (+0200) Subject: samples: kdbus: build kdbus-workers conditionally X-Git-Tag: submit/tizen/20150629.113101~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf4b8c17a1d78e418d25f81a33dd8b1dc052c447;p=platform%2Fkernel%2Flinux-exynos.git samples: kdbus: build kdbus-workers conditionally 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 Reviewed-by: David Herrmann Reported-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman Signed-off-by: Paul Osmialowski --- diff --git a/samples/Kconfig b/samples/Kconfig index 224ebb46bed5..a4c6b2f8fa85 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -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 diff --git a/samples/kdbus/Makefile b/samples/kdbus/Makefile index e714602b6260..137f84272099 100644 --- a/samples/kdbus/Makefile +++ b/samples/kdbus/Makefile @@ -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)