From patchwork Mon Mar 12 09:29:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 884357 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="evG22mB6"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 400CQ65tvXz9sD3 for ; Mon, 12 Mar 2018 20:30:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C081022197; Mon, 12 Mar 2018 09:30:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o5zqbprw5E3z; Mon, 12 Mar 2018 09:30:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B19802212B; Mon, 12 Mar 2018 09:30:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D25631C2BAA for ; Mon, 12 Mar 2018 09:30:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CF05A87EA1 for ; Mon, 12 Mar 2018 09:30:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wuG4OuR6I4H4 for ; Mon, 12 Mar 2018 09:30:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-it0-f66.google.com (mail-it0-f66.google.com [209.85.214.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id E130882DD1 for ; Mon, 12 Mar 2018 09:30:16 +0000 (UTC) Received: by mail-it0-f66.google.com with SMTP id c11so10271122ith.4 for ; Mon, 12 Mar 2018 02:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8nm/m7AzmGVgMb12dt/MshKEuSyeG35m6XzZEq7QD9Y=; b=evG22mB6hvNAb9Pp0qLOA6v2s46Y5VTE68H5d9ShbtIsF5DT0HmtrYj5W8RCzVPtvl qO/7c4eJFaN7FaiVCs5m45ODz/WEi5hNgSr6oXRvJmvh8dRINn6BUHYHhhE2omUqHrGe 9RLB6rNcOJ7gGkqn6mblJ2PO6X9+ee/dhM176komo4wL4x9WCNYGvK2wuPOijNeoDKg7 ggXIECNlN537gn6/YogW/btDCvfzyGnGFG4IhhMd93UZLVtaq6dW6EQA2g00nLYineHm 6QyQ+pNI7ekwa8mN6mds/OQ6wPNuG9+1XfO1W/cxxyicaDgJAViJfkjSJNWPLZ77LED5 6TYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8nm/m7AzmGVgMb12dt/MshKEuSyeG35m6XzZEq7QD9Y=; b=kw3kPUgUDpCYGuOW3M26KzDm9vivbKAxzcGYczoIjT9CGU/1Z1JSAi3BrrvtVs163k hZQdKS/LbMwRw4GZUxeIx/VTWsMR1ydQbKffNGV5gokTdhA1fQBm2gvRy/4ZIM5MuYrI BJxvForoZ8e18Q3smcnfOfzd2rA5LLID79kLF97eZUR2GY6W+3egIAnq4aKVAXlFpaq/ 1yt/vyp5bD0of/+pIfbdspTgi/5QiR2FOCpiDIYVQc2PF0NPQjTNyswXwYa4VL7oTH/g iKBO7crnHOIVuTtiM2uBq22lSMHInWwl+z8DRJgKzkDXEu471boz963G7FoMUItDLf7J bNHQ== X-Gm-Message-State: AElRT7EsYFZrsBwIJj3/tcYIceIiadEcUsc2yYvAreFRw9euUsRjcp7n hCa3BT7yPo1WsTUEuQgh/eOkoZyT X-Google-Smtp-Source: AG47ELuGa7CHhFT+A9nsyw7ok5WWFaMbjesgteb4Y3Daymk4zUV9Ep/I+PiKpBh/r96yJJk1MDMThQ== X-Received: by 10.36.53.67 with SMTP id k64mr8015130ita.90.1520847015888; Mon, 12 Mar 2018 02:30:15 -0700 (PDT) Received: from localhost.localdomain (mail.codeblue.com. [65.183.183.198]) by smtp.gmail.com with ESMTPSA id u77sm3161977ita.30.2018.03.12.02.30.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 02:30:15 -0700 (PDT) From: Adam Duskett To: buildroot@buildroot.org Date: Mon, 12 Mar 2018 05:29:47 -0400 Message-Id: <20180312092953.24258-1-aduskett@gmail.com> X-Mailer: git-send-email 2.14.3 Subject: [Buildroot] [PATCH v4 1/7] libpjsip: Add Alsa option X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is the first patch in a series that will enable audio support for libpjsip. This patch does the following: - Turn libpjsip into a menuconfig option - Add a option for alsa support Signed-off-by: Adam Duskett --- Changes v1 -> v2: - Remove the option to enable or disable alsa support in favor of just depending on alsa-lib if it's selected by the user. Changes v2 -> v3: - Make this patch the start of the series. - Re-add the option to enable or disable support (Thomas) Changes v3 -> v4: - None package/libpjsip/Config.in | 12 +++++++++++- package/libpjsip/libpjsip.mk | 8 +++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/package/libpjsip/Config.in b/package/libpjsip/Config.in index 727d2ec3d0..0e03ebf7a3 100644 --- a/package/libpjsip/Config.in +++ b/package/libpjsip/Config.in @@ -1,4 +1,4 @@ -config BR2_PACKAGE_LIBPJSIP +menuconfig BR2_PACKAGE_LIBPJSIP bool "libpjsip" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS @@ -10,5 +10,15 @@ config BR2_PACKAGE_LIBPJSIP http://www.pjsip.org +if BR2_PACKAGE_LIBPJSIP + +comment "sound" + +config BR2_PACKAGE_LIBPJSIP_ALSA + bool "alsa support" + select BR2_PACKAGE_ALSA_LIB + +endif #BR2_PACKAGE_LIBPJSIP + comment "libpjsip needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/libpjsip/libpjsip.mk b/package/libpjsip/libpjsip.mk index 53b654d072..a584e8c73a 100644 --- a/package/libpjsip/libpjsip.mk +++ b/package/libpjsip/libpjsip.mk @@ -25,7 +25,6 @@ LIBPJSIP_CONF_ENV = \ CFLAGS="$(LIBPJSIP_CFLAGS)" LIBPJSIP_CONF_OPTS = \ - --disable-sound \ --disable-gsm-codec \ --disable-speex-codec \ --disable-speex-aec \ @@ -67,4 +66,11 @@ ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y) LIBPJSIP_DEPENDENCIES += util-linux endif +ifeq ($(BR2_PACKAGE_LIBPJSIP_ALSA),y) +LIBPJSIP_DEPENDENCIES += alsa-lib +LIBPJSIP_CONF_OPTS += --enable-sound +else +LIBPJSIP_CONF_OPTS += --disable-sound +endif + $(eval $(autotools-package))