From 123cb730461a6af6cd30566326624f7422d4bad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20Gon=C3=A7alves?= Date: Wed, 4 May 2022 23:21:06 +0100 Subject: [PATCH] package/google-breakpad: add option to build target tools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These tools are required for debug scenarios where the debug happens in-target. Signed-off-by: Nuno Gonçalves [Arnout: install to target in case this option is selected] Signed-off-by: Arnout Vandecappelle --- package/google-breakpad/Config.in | 10 ++++++++++ package/google-breakpad/google-breakpad.mk | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/package/google-breakpad/Config.in b/package/google-breakpad/Config.in index 07c49996dd..4320ad64aa 100644 --- a/package/google-breakpad/Config.in +++ b/package/google-breakpad/Config.in @@ -41,3 +41,13 @@ comment "google-breakpad requires a glibc or uClibc toolchain w/ wchar, thread, !BR2_TOOLCHAIN_HAS_THREADS || \ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC) || \ !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 + +if BR2_PACKAGE_GOOGLE_BREAKPAD + +config BR2_PACKAGE_GOOGLE_BREAKPAD_TOOLS + bool "Build target tools" + help + Build processor and tools for target: dump_syms, + minidump_stackwalk and microdump_stackwalk. + +endif diff --git a/package/google-breakpad/google-breakpad.mk b/package/google-breakpad/google-breakpad.mk index cafe1359f3..132323363b 100644 --- a/package/google-breakpad/google-breakpad.mk +++ b/package/google-breakpad/google-breakpad.mk @@ -7,9 +7,6 @@ GOOGLE_BREAKPAD_VERSION = c85eb4a59b618f3beaad5445ceb1f865ffa8efdf GOOGLE_BREAKPAD_SITE = https://chromium.googlesource.com/breakpad/breakpad GOOGLE_BREAKPAD_SITE_METHOD = git -GOOGLE_BREAKPAD_CONF_OPTS = --disable-processor --disable-tools -# Only a static library is installed -GOOGLE_BREAKPAD_INSTALL_TARGET = NO GOOGLE_BREAKPAD_INSTALL_STAGING = YES GOOGLE_BREAKPAD_LICENSE = BSD-3-Clause, MIT GOOGLE_BREAKPAD_LICENSE_FILES = LICENSE @@ -17,6 +14,10 @@ GOOGLE_BREAKPAD_DEPENDENCIES = host-google-breakpad linux-syscall-support HOST_GOOGLE_BREAKPAD_DEPENDENCIES = host-linux-syscall-support +ifeq ($(BR2_PACKAGE_GOOGLE_BREAKPAD_TOOLS),) +GOOGLE_BREAKPAD_INSTALL_TARGET = NO +endif + # Avoid using depot-tools to download this file. define HOST_GOOGLE_BREAKPAD_LSS $(INSTALL) -D -m 0644 \