package/google-breakpad: add option to build target tools

These tools are required for debug scenarios where the debug
happens in-target.

Signed-off-by: Nuno Gonçalves <nunojpg@gmail.com>
[Arnout: install to target in case this option is selected]
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Nuno Gonçalves 2022-05-04 23:21:06 +01:00 committed by Arnout Vandecappelle
parent b153345bec
commit 123cb73046
2 changed files with 14 additions and 3 deletions

View File

@ -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

View File

@ -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 \