Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] protobuf: fix build for some unsupported architectures
Date: Thu, 8 May 2014 15:50:05 +0300	[thread overview]
Message-ID: <20140508125005.GK3861@tarshish> (raw)
In-Reply-To: <9c3886fc2455083ce084000e1741ce4be02675e6.1399552091.git.baruch@tkos.co.il>

Hi list,

On Thu, May 08, 2014 at 03:28:11PM +0300, Baruch Siach wrote:
> Add patches for making use of generic gcc atomic operations for unknown
> architectures. Patches taken from
> http://code.google.com/p/protobuf/issues/detail?id=488 .
> 
> Disable build for architectures that are not supported.
> 
> Fixes:
> http://autobuild.buildroot.net/results/7e5/7e5791225334096206887de8a38fd947e1f8e9a2/
> http://autobuild.buildroot.net/results/cf1/cf147b9188d6787a6a1a6072bf9bc6f7ddf5e5ae/
> 
> Cc: Phil Eichinger <phil.eichinger@gmail.com>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> v2:
> 	List supported architectures as dependencies, as this list is much shorter
> 	than the list of unsupported archs.
> ---
>  package/protobuf/Config.in                         |   4 +
>  ...generic-GCC-support-for-atomic-operations.patch | 214 +++++++++++++++++++++
>  ...-02-Add-generic-gcc-header-to-Makefile.am.patch |  31 +++
>  package/protobuf/protobuf.mk                       |   2 +
>  4 files changed, 251 insertions(+)
>  create mode 100644 package/protobuf/protobuf-01-Add-generic-GCC-support-for-atomic-operations.patch
>  create mode 100644 package/protobuf/protobuf-02-Add-generic-gcc-header-to-Makefile.am.patch
> 
> diff --git a/package/protobuf/Config.in b/package/protobuf/Config.in
> index a4f542e0fce1..98e0d398e949 100644
> --- a/package/protobuf/Config.in
> +++ b/package/protobuf/Config.in
> @@ -2,6 +2,8 @@ config BR2_PACKAGE_PROTOBUF
>  	bool "protobuf"
>  	depends on BR2_INSTALL_LIBSTDCPP
>  	depends on BR2_TOOLCHAIN_HAS_THREADS
> +	depends on BR2_x86_64 || BR2_i386 || BR2_arm || BR2_aarch64 || \
> +	    BR2_mipsel || BR2_powerpc

Forgot to propagate dependencies, sorry. Will fix in v3.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2014-05-08 12:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-08 12:28 [Buildroot] [PATCH v2] protobuf: fix build for some unsupported architectures Baruch Siach
2014-05-08 12:50 ` Baruch Siach [this message]
2014-05-08 18:56 ` Thomas Petazzoni
2014-05-08 19:20   ` Baruch Siach
2014-05-09  6:48     ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140508125005.GK3861@tarshish \
    --to=baruch@tkos.co.il \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox