From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EC74C433FE for ; Thu, 20 Oct 2022 12:15:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 96A2C842BF; Thu, 20 Oct 2022 12:15:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 96A2C842BF X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P-CDhNFytU4u; Thu, 20 Oct 2022 12:15:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id C146883EEC; Thu, 20 Oct 2022 12:15:31 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org C146883EEC Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 41BB21BF32A for ; Thu, 20 Oct 2022 12:15:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 28A9783ED5 for ; Thu, 20 Oct 2022 12:15:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 28A9783ED5 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hNkXL1nLQox for ; Thu, 20 Oct 2022 12:15:28 +0000 (UTC) X-Greylist: delayed 00:07:32 by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 85F4483DF0 Received: from metanate.com (unknown [IPv6:2001:8b0:1628:5005::111]) by smtp1.osuosl.org (Postfix) with ESMTPS id 85F4483DF0 for ; Thu, 20 Oct 2022 12:15:28 +0000 (UTC) Received: from [81.174.171.191] (helo=donbot.metanate.com) by email.metanate.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1olUSK-0002sa-Rj; Thu, 20 Oct 2022 13:15:26 +0100 From: John Keeping To: buildroot@buildroot.org Date: Thu, 20 Oct 2022 13:15:21 +0100 Message-Id: <20221020121521.2041129-1-john@metanate.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Authenticated: YES X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metanate.com; s=stronger; h=Content-Transfer-Encoding:Message-Id:Date: Subject:Cc:To:From:Content-Type:Reply-To:Content-ID:Content-Description: In-Reply-To:References; bh=4s0wscyhV3PrxgIfBSj2WuV1DNK1bnMY7kZQKPRphl4=; b=dg w084xBOdMIQG7H2tuao0ZfZwq4KtKEOnaWW/8ednCvcRF0/y3aAePuuJqbleVrh8UQWjwU8OQafEA 33xQJYAkLzRHFrdfLTL+e5AhP/Vgjj8uk0khZnzv2+7ohsvuML7Cl5qSiQmwnBwvB12cHuK0yy2WN Sybr32DPiLyXcihhszz6/lCxlBKi/9fUQvG11ngrXnabHmh0EhIp0Jh1X/tItdqAU0ARUVcR2kOI0 1Bg6AfFOJ1+qHMa/+zOLLao4q8bqEJ2w98zJJkSNG0FmT2KtyNgnPObDPdHtCQliqLNVU90Uh1Bfh UioBbgKR5dhtmIa2yBKumF2J1mXecqww==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=metanate.com header.i=@metanate.com header.a=rsa-sha256 header.s=stronger header.b=dgw084xB Subject: [Buildroot] [PATCH v2] package/sbc: add config option to control tools build X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , John Keeping Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" libsndfile is only needed by the sbctester utility and the library can be built without this dependency. Add a config option to cover not just sbctester but the command-line utilities as well. While the utilities may be useful for debugging, normal usage will only need libsbc and these applications can be omitted. Signed-off-by: John Keeping --- v2: - Fix autocomplete error in select BR2_PACKAGE_LIBSNDFILE package/sbc/Config.in | 8 +++++++- package/sbc/sbc.mk | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/package/sbc/Config.in b/package/sbc/Config.in index f1dbc0ec2c..565e3e6596 100644 --- a/package/sbc/Config.in +++ b/package/sbc/Config.in @@ -1,8 +1,14 @@ config BR2_PACKAGE_SBC bool "sbc" - select BR2_PACKAGE_LIBSNDFILE help An audio codec to connect bluetooth high quality audio devices like headphones or loudspeakers. http://www.bluez.org/ + +config BR2_PACKAGE_SBC_TOOLS + bool "tools" + depends on BR2_PACKAGE_SBC + select BR2_PACKAGE_LIBSNDFILE + help + Build the command-line SBC tools as well as the library. diff --git a/package/sbc/sbc.mk b/package/sbc/sbc.mk index 744ce5f895..245ff11ced 100644 --- a/package/sbc/sbc.mk +++ b/package/sbc/sbc.mk @@ -8,8 +8,15 @@ SBC_VERSION = 2.0 SBC_SOURCE = sbc-$(SBC_VERSION).tar.xz SBC_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth SBC_INSTALL_STAGING = YES -SBC_DEPENDENCIES = libsndfile host-pkgconf +SBC_DEPENDENCIES = host-pkgconf SBC_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (library) SBC_LICENSE_FILES = COPYING COPYING.LIB +ifeq ($(BR2_PACKAGE_SBC_TOOLS),y) +SBC_DEPENDENCIES += libsndfile +SBC_CONF_OPTS += --enable-tools --enable-tester +else +SBC_CONF_OPTS += --disable-tools --disable-tester +endif + $(eval $(autotools-package)) -- 2.38.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot