Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] openpgm: disable on AVR32
Date: Wed, 6 Nov 2013 18:39:47 +0100	[thread overview]
Message-ID: <20131106183947.0b078df7@skate> (raw)
In-Reply-To: <CAAHaz6HvxQR0g9CpfvRTJN2FAoGmgR_z6uWVar93AXjENH-vbQ@mail.gmail.com>

Alexander, Simon,

On Wed, 6 Nov 2013 19:27:46 +0200, Alexander Lukichev wrote:
> Hi Simon, Thomas,

> In addition, the document http://www.atmel.com/Images/doc32074.pdf on page 8
> indeed claims to support 4-byte (int) versions of those functions, saying
> nothing
> about other data types.
> 
> I apologize both for the delay and for making other people wasting time on
> this.

Well, I believe your original patch remains almost good then: openpgm
cannot be built on avr32 because the AVR32 compiler doesn't provide the
required compiler intrinsics.

I think I would just turn the dependency from a !BR2_avr32 into
a !BR2_GCC_VERSION_4_2_2_AVR32_2_1_5, with a comment that explains that
it lacks some required intrinsics.

However, as Simon said, maybe it would anyway be useful to pass
-march=ap when building things, since that's the only AVR32 processor
variant that ever had Linux support. So something like the following
change would maybe be good to have. Simon, if you're interested in
picking this up, giving it a test and submitting it, it would be great!

diff --git a/arch/Config.in.avr32 b/arch/Config.in.avr32
index 199c150..8429589 100644
--- a/arch/Config.in.avr32
+++ b/arch/Config.in.avr32
@@ -3,3 +3,6 @@ config BR2_ARCH
 
 config BR2_ENDIAN
        default "BIG"
+
+config BR2_GCC_TARGET_ARCH
+       default "ap"


Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2013-11-06 17:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-01 18:12 [Buildroot] [PATCH v2 1/1] openpgm: disable on AVR32 Alexander Lukichev
2013-11-01 18:20 ` Thomas Petazzoni
2013-11-01 20:21   ` Alexander Lukichev
2013-11-02  7:16     ` Alexander Lukichev
2013-11-02  8:03     ` Simon Dawson
2013-11-02 11:26       ` Thomas Petazzoni
2013-11-02 16:51         ` Simon Dawson
2013-11-03 11:24           ` Alexander Lukichev
2013-11-06 17:27           ` Alexander Lukichev
2013-11-06 17:39             ` Thomas Petazzoni [this message]
2013-11-06 18:21               ` Alexander Lukichev
2013-11-06 18:29                 ` Thomas Petazzoni
2013-11-06 19:18               ` Simon Dawson

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=20131106183947.0b078df7@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --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