From patchwork Mon Oct 31 07:46:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Proulx X-Patchwork-Id: 689228 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t6mgD53mqz9t2F for ; Mon, 31 Oct 2016 18:47:52 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=i8ikN6yJ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 80BFD8B2B6; Mon, 31 Oct 2016 07:47:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rnxCjVvOGk3a; Mon, 31 Oct 2016 07:47:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 746668BFF1; Mon, 31 Oct 2016 07:47:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 4848C1C13A4 for ; Mon, 31 Oct 2016 07:46:40 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 444748AFDC for ; Mon, 31 Oct 2016 07:46:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4e7fWjASJ0P for ; Mon, 31 Oct 2016 07:46:35 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 492A68AFA7 for ; Mon, 31 Oct 2016 07:46:35 +0000 (UTC) Received: by mail-oi0-f67.google.com with SMTP id v84so4228708oie.2 for ; Mon, 31 Oct 2016 00:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=9u5pHQOb4BWIGPLmUfCu0th56zLq9Mw79X0NwBWQgxA=; b=i8ikN6yJbphyX64N7KXkSIF9h/a/+LRcQAQNd7nP1y1YhqpejtNg/GMoLS4S3GyzLA KQJIrKPFYyWpmMiSd7u6NOsUgobLcTgP4nxkVGDWI7bFTFTiBSFhj1a7QS4b1xvu/ykA R2Yjg9KZ7fmhI5dfyurzm8fF6ndEZ2Cv8RcmBMwSM3/HqJ+CqJCKG5kqY/cAGNmx0A1y gNP5O7cDhWYMLcO98xvPnjM3afFqYRcwY6Wf5f8y9mCKVzLvDcF6C+rB+TtAqfATbpoK rMtCIEJpBD4oGZelhXSrbRxw5uSE5pu3yXFIAU4vty7gGtgi40cymQv8uEiEhQGO15DU xriQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=9u5pHQOb4BWIGPLmUfCu0th56zLq9Mw79X0NwBWQgxA=; b=CAAIdQVXjiM+gHbSYVGnZFqWVQJXHDBLaHdAESlvXaTS/09XV+QQeTulGhGxPcmtHd ThtUPJlH9bnyruV44tCMY/sWsKN6vEVgQoMcx1B8GtXMtbVK6liBcLajSwqI1jd6J8Dm Makpfy87mev6Q+gtIxWg4wNH4d1LnUw7G3ZL4CcHbjCnbrvMhzjAhldPnLSdwxxy/7m7 FrSBxAyNW2HyT9bMG0W6F4U3UnfRQHSbGpyKWi9l615pDjSc1dQaYY3uD0SD2pys70sr EueiQO/japmaASSoRYEO0z8hD5OFGxirAizs8cCmqs9W1szSfoLVDm3KfsIUePR/8rkZ sOnQ== X-Gm-Message-State: ABUngvdQJ8UpF0Dw+dZJToM7h08ILFY07sVqRuwfizTmSnT0kLtYjV4vUtKNfhlq/KqFag== X-Received: by 10.36.29.7 with SMTP id 7mr6932298itj.32.1477899994356; Mon, 31 Oct 2016 00:46:34 -0700 (PDT) Received: from localhost.localdomain (cable-192.222.227.121.electronicbox.net. [192.222.227.121]) by smtp.gmail.com with ESMTPSA id r11sm8078177itc.13.2016.10.31.00.46.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 00:46:33 -0700 (PDT) From: Philippe Proulx To: buildroot@buildroot.org Date: Mon, 31 Oct 2016 03:46:23 -0400 Message-Id: <20161031074624.7576-9-eeppeliteloop@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161031074624.7576-1-eeppeliteloop@gmail.com> References: <20161031074624.7576-1-eeppeliteloop@gmail.com> Subject: [Buildroot] [PATCH v3 8/9] lttng-babeltrace: add debug info support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Since Babeltrace 1.4, there is support for printing debug information along with compatible traces and event records. Babeltrace needs elfutils in this case. If elfutils can be built with the current configuration, the lttng-babeltrace package selects it and builds with support for debug information. Otherwise the menuconfig shows a comment which explains why debug information support cannot be built. Signed-off-by: Philippe Proulx Reviewed-by: "Yann E. MORIN" --- This is a new patch in v3. package/lttng-babeltrace/Config.in | 17 +++++++++++++++++ package/lttng-babeltrace/lttng-babeltrace.mk | 7 +++++++ 2 files changed, 24 insertions(+) -- 2.9.3 diff --git a/package/lttng-babeltrace/Config.in b/package/lttng-babeltrace/Config.in index 95b635d..55e2143 100644 --- a/package/lttng-babeltrace/Config.in +++ b/package/lttng-babeltrace/Config.in @@ -27,6 +27,23 @@ config BR2_PACKAGE_LTTNG_BABELTRACE http://diamon.org/babeltrace +if BR2_PACKAGE_LTTNG_BABELTRACE + +config BR2_PACKAGE_LTTNG_BABELTRACE_DEBUG_INFO + bool + default y + depends on !BR2_bfin # elfutils + depends on !BR2_STATIC_LIBS # elfutils + depends on BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC # elfutils + select BR2_PACKAGE_ELFUTILS + +comment "handling debug info in traces needs a glibc or uClibc toolchain w/ dynamic library" + depends on !BR2_bfin # elfutils + depends on BR2_STATIC_LIBS \ + || !(BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_GLIBC) + +endif + comment "lttng-babeltrace needs a toolchain w/ wchar, threads" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/lttng-babeltrace/lttng-babeltrace.mk b/package/lttng-babeltrace/lttng-babeltrace.mk index 30c5f6e..260a8ee 100644 --- a/package/lttng-babeltrace/lttng-babeltrace.mk +++ b/package/lttng-babeltrace/lttng-babeltrace.mk @@ -18,5 +18,12 @@ HOST_LTTNG_BABELTRACE_CONF_OPTS += --disable-debug-info # For 0001-configure.ac-remove-elfutils-version-test-for-Buildr.patch LTTNG_BABELTRACE_AUTORECONF = YES +ifeq ($(BR2_PACKAGE_LTTNG_BABELTRACE_DEBUG_INFO),y) +LTTNG_BABELTRACE_DEPENDENCIES += elfutils +LTTNG_BABELTRACE_CONF_OPTS += --enable-debug-info +else +LTTNG_BABELTRACE_CONF_OPTS += --disable-debug-info +endif + $(eval $(autotools-package)) $(eval $(host-autotools-package))