]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
google-breakpad: take into account host architecture dependencies
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 26 Nov 2017 14:40:19 +0000 (15:40 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Nov 2017 20:33:37 +0000 (21:33 +0100)
Building the target google-breakpad requires building the host variant
of google-breakpad. Just like the target google-breakpad only supports
a limited number of architectures, it is the same for the host
google-breakpad.

We therefore introduce a
BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS option that is used
where necessary to prevent the user from choosing Google Breakpad when
building on unsupported host platforms.

Fixes:

  http://autobuild.buildroot.net/results/c7c04483508f9e4d629efa54571afeb1feaa5f73/
  (build on a powerpc64le machine)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Config.in
package/Config.in.host
package/google-breakpad/Config.in
package/google-breakpad/Config.in.host [new file with mode: 0644]

index 75e56048317f86fdb7a1e7e29da7c0976f635b45..62d67ce95772bd7853df008d65e491c0fb43aa98 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -539,6 +539,7 @@ config BR2_GOOGLE_BREAKPAD_ENABLE
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
        depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
+       depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
        help
          This option will enable the use of google breakpad, a library
          and tool suite that allows you to distribute an application to
index 59be6661433007a8e03e3d436cc5d636d8c26dd9..48b6f8c7a82f3f30588378fbda2142e55b840866 100644 (file)
@@ -20,6 +20,7 @@ menu "Host utilities"
        source "package/genpart/Config.in.host"
        source "package/go/Config.in.host"
        source "package/go-bootstrap/Config.in.host"
+       source "package/google-breakpad/Config.in.host"
        source "package/gptfdisk/Config.in.host"
        source "package/imx-usb-loader/Config.in.host"
        source "package/jq/Config.in.host"
index e0e91068bea044f91dd9562ca9dc31aa82f7bdab..91ec9ce30995a7b677ce4db3fb9e4d510b96f41c 100644 (file)
@@ -12,6 +12,7 @@ config BR2_PACKAGE_GOOGLE_BREAKPAD
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on (BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC)
        depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
+       depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
        select BR2_PACKAGE_LINUX_SYSCALL_SUPPORT
        help
          Google-Breakpad is a library and tool suite that allows you
@@ -36,6 +37,7 @@ config BR2_PACKAGE_GOOGLE_BREAKPAD
 
 comment "google-breakpad requires a glibc or uClibc toolchain w/ wchar, thread, C++, gcc >= 4.8"
        depends on BR2_PACKAGE_GOOGLE_BREAKPAD_ARCH_SUPPORTS
+       depends on BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
                !BR2_TOOLCHAIN_HAS_THREADS || \
                !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC) || \
diff --git a/package/google-breakpad/Config.in.host b/package/google-breakpad/Config.in.host
new file mode 100644 (file)
index 0000000..28d3047
--- /dev/null
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
+       bool
+       default y if BR2_HOSTARCH = "x86_64"
+       default y if BR2_HOSTARCH = "x86"
+       default y if BR2_HOSTARCH = "arm"
+       default y if BR2_HOSTARCH = "aarch64"
+       default y if BR2_HOSTARCH = "mips"
+       default y if BR2_HOSTARCH = "mipsel"