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 v6 4/7] arch: toolchain: Introduce binary format FLAT types.
Date: Thu, 25 Apr 2013 16:27:53 +0200	[thread overview]
Message-ID: <20130425162753.72991330@skate> (raw)
In-Reply-To: <1366279592-9055-4-git-send-email-sonic.adi@gmail.com>

Dear Sonic Zhang,

On Thu, 18 Apr 2013 18:06:29 +0800, Sonic Zhang wrote:
> From: Sonic Zhang <sonic.zhang@analog.com>
> 
> Just introduce the symbol and options in arch generic Config.in.
> Add FLAT types specific compiling flags into package makefile.
> 
> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>

You can now add my:

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

on this one.

> diff --git a/package/Makefile.in b/package/Makefile.in
> index a8bf36b..dd3bc7d 100644
> --- a/package/Makefile.in
> +++ b/package/Makefile.in
> @@ -103,6 +103,17 @@ TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET
>  TARGET_CXXFLAGS = $(TARGET_CFLAGS)
>  TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
>  
> +ifeq ($(BR2_BINFMT_FLAT_SHARED),y)
> +TARGET_LDFLAGS += -mid-shared-library -mshared-library-id=0
> +TARGET_CFLAGS += -mid-shared-library -mshared-library-id=0
> +TARGET_CXXFLAGS += -mid-shared-library -mshared-library-id=0
> +endif
> +ifeq ($(BR2_BINFMT_FLAT_SEP_DATA),y)
> +TARGET_LDFLAGS += -msep-data
> +TARGET_CFLAGS += -msep-data
> +TARGET_CXXFLAGS += -msep-data
> +endif
> +

I had a discussion with Peter Korsgaard about this, and we've decided
to accept it as is, even though it should normally be part of the
external toolchain wrapper. But we haven't gotten to a nice and simple
solution for it, so let's do what you're proposing here.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2013-04-25 14:27 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18 10:06 [Buildroot] [PATCH v6 1/7] arch: toolchain: Introduce binary formats BINFMT_* Sonic Zhang
2013-04-18 10:06 ` [Buildroot] [PATCH v6 2/7] arch: Add blackfin CPU choice Sonic Zhang
2013-04-23  5:53   ` Sonic Zhang
2013-04-25 14:24   ` Thomas Petazzoni
2013-04-18 10:06 ` [Buildroot] [PATCH v6 3/7] arch: toolchain: Introduce target CPU revision Sonic Zhang
2013-04-23  5:53   ` Sonic Zhang
2013-04-25 14:25   ` Thomas Petazzoni
2013-04-18 10:06 ` [Buildroot] [PATCH v6 4/7] arch: toolchain: Introduce binary format FLAT types Sonic Zhang
2013-04-25 14:27   ` Thomas Petazzoni [this message]
2013-04-18 10:06 ` [Buildroot] [PATCH v6 5/7] package: Introduce package-specific BINFMT_FLAT options Sonic Zhang
2013-04-23  9:17   ` Sonic Zhang
2013-04-25 14:30   ` Thomas Petazzoni
2013-04-18 10:06 ` [Buildroot] [PATCH v6 6/7] arch: toolchain: Install blackfin FDPIC and FLAT libraries in external toolchain makefile Sonic Zhang
2013-04-26  3:21   ` Sonic Zhang
2013-05-02  7:36   ` Sonic Zhang
2013-05-02 10:01     ` Thomas Petazzoni
2013-05-02 10:11       ` Sonic Zhang
2013-05-03 18:46         ` Thomas Petazzoni
2013-05-06  6:36           ` Sonic Zhang
2013-04-18 10:06 ` [Buildroot] [PATCH v6 7/7] package: Introduce NOMMU symbol Sonic Zhang
2013-04-26  3:22   ` Sonic Zhang
2013-04-23  5:52 ` [Buildroot] [PATCH v6 1/7] arch: toolchain: Introduce binary formats BINFMT_* Sonic Zhang
2013-04-25 14:22 ` 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=20130425162753.72991330@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