From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754550AbbCaNLs (ORCPT ); Tue, 31 Mar 2015 09:11:48 -0400 Received: from svenfoo.org ([82.94.215.22]:56409 "EHLO mail.zonque.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbbCaNLn (ORCPT ); Tue, 31 Mar 2015 09:11:43 -0400 From: Daniel Mack To: gregkh@linuxfoundation.org Cc: dh.herrmann@gmail.com, jslaby@suse.cz, tixxdz@opendz.org, linux-kernel@vger.kernel.org, Daniel Mack Subject: [PATCH] samples: kdbus: build kdbus-workers conditionally Date: Tue, 31 Mar 2015 15:11:34 +0200 Message-Id: <1427807494-29982-1-git-send-email-daniel@zonque.org> X-Mailer: git-send-email 2.3.4 In-Reply-To: <5511A0D6.5030606@suse.cz> References: <5511A0D6.5030606@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Give the kdbus sample its own config switch and only build it if it's explicitly switched on. Signed-off-by: Daniel Mack Reviewed-by: David Herrmann Reported-by: Jiri Slaby --- samples/Kconfig | 7 +++++++ samples/kdbus/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/samples/Kconfig b/samples/Kconfig index 224ebb4..a4c6b2f 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 d009025..9e40c68 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) -- 2.3.4