From patchwork Sat Jan 9 16:19:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea Ricchi X-Patchwork-Id: 1424127 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=oy5oDzkz; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DClXk2dp8z9sWC for ; Sun, 10 Jan 2021 03:19:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7FCBE869F5; Sat, 9 Jan 2021 16:19:15 +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 juPYX7A9TRX3; Sat, 9 Jan 2021 16:19:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 246B686277; Sat, 9 Jan 2021 16:19:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B2D231BF27C for ; Sat, 9 Jan 2021 16:19:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A97D9203C4 for ; Sat, 9 Jan 2021 16:19:12 +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 CsWeEF5mAnut for ; Sat, 9 Jan 2021 16:19:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by silver.osuosl.org (Postfix) with ESMTPS id 2056620131 for ; Sat, 9 Jan 2021 16:19:11 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id e25so11067687wme.0 for ; Sat, 09 Jan 2021 08:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=F7D1j1M308w7jMpSDFr9rxG1D310CLJDZN/crNWn0ks=; b=oy5oDzkzJI545F76d5KxiQMfFi0P2AB/BdYAljkFTdgSEWP1rl745VFODiSCJwk0Jy kY6FIOWa6f2/CKpFozs0TSyf+MnJ9/+Dr48fDLI5nAXOuixl7DS2sG00s4dILp1D30qF 8Hkcp/sMAv/XW3YX9OHTqKoh6waidjEjk7cKQ= 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:mime-version :content-transfer-encoding; bh=F7D1j1M308w7jMpSDFr9rxG1D310CLJDZN/crNWn0ks=; b=G+ng6k+s/mstxfPZeVHCdJBw+viXU5Udq046nS8WdXnN2XHlU6R8+NUlk8j+zTDi8w 9igWqZxD3s8SbEMDAIZU5VkDiFOsvYXSprOQ7BrAZi/abhqXrLF+tw03YcQSqf7VqeDT kEmcIaDktmgRUy22rTllBLhSUb+1Th/WZQF0jguBeY3z5VdNOX2DwkcEeUMxxc2v1Jch l8wQ++uZ28UhBTKPPO6+Pmx3WqF5S511K30uwaHUfCFOzx8XnbcuUdJb+Alstj0ezjQU gkbHFAVJiZq7YwKSaHORWjvzoEIaxWybLL5jpBwM8MzoAzEoORO6CosnRWQ4q5fCj7DL DL5Q== X-Gm-Message-State: AOAM530ekA1GYZjKqqz884FkRWVPgDmMVFxuad3e6u47FS3tWTlzx3Gb BlgPRMEBLY/OYie01/QQr9nSAo4dFRPPdkCS X-Google-Smtp-Source: ABdhPJwNHh/ivsJ24uPkeE3lA16gQ4fLQ1gpnpOlpJol3Dim/JA+d2qf9uj8AiBzfmTfZatzoQTVog== X-Received: by 2002:a7b:c2e8:: with SMTP id e8mr7689687wmk.103.1610209149192; Sat, 09 Jan 2021 08:19:09 -0800 (PST) Received: from pop-os.amarulasolutions.com (host-87-17-117-156.retail.telecomitalia.it. [87.17.117.156]) by smtp.gmail.com with ESMTPSA id y6sm16304177wmg.39.2021.01.09.08.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Jan 2021 08:19:08 -0800 (PST) From: Andrea Ricchi To: buildroot@buildroot.org Date: Sat, 9 Jan 2021 17:19:00 +0100 Message-Id: <20210109161900.51824-1-andrea.ricchi@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/uclibc: add backtrace support option X-BeenThere: buildroot@busybox.net 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: Andrea Ricchi Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add toolchain configuration to support execinfo.h and backtrace features. Signed-off-by: Andrea Ricchi --- package/uclibc/Config.in | 7 +++++++ package/uclibc/uclibc.mk | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in index e59fef3c69..fa3abc2f50 100644 --- a/package/uclibc/Config.in +++ b/package/uclibc/Config.in @@ -39,6 +39,13 @@ config BR2_TOOLCHAIN_BUILDROOT_LOCALE Enable this option if you want your toolchain to support localization and internationalization. +config BR2_TOOLCHAIN_BUILDROOT_BACKTRACE + bool "Enable backtrace support" + select BR2_USE_BACKTRACE + help + Enable this option if you want your toolchain to support + execinfo.h and backtrace features. + choice prompt "Thread library implementation" help diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index 53983e852d..b6f6c0f824 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -359,6 +359,16 @@ else UCLIBC_SHARED_LIBS_CONFIG = $(call KCONFIG_ENABLE_OPT,HAVE_SHARED) endif +# +# backtrace support +# + +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_BACKTRACE),y) +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_ENABLE_OPT,UCLIBC_HAS_BACKTRACE) +else +UCLIBC_BACKTRACE_CONFIG = $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_BACKTRACE) +endif + # # Commands # @@ -401,6 +411,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS $(UCLIBC_LOCALE_CONFIG) $(UCLIBC_WCHAR_CONFIG) $(UCLIBC_SHARED_LIBS_CONFIG) + $(UCLIBC_BACKTRACE_CONFIG) endef define UCLIBC_BUILD_CMDS