From: Sonic Zhang <sonic.adi@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v7 5/7] package: Introduce package-specific BINFMT_FLAT options.
Date: Fri, 3 May 2013 18:39:38 +0800 [thread overview]
Message-ID: <1367577580-3518-5-git-send-email-sonic.adi@gmail.com> (raw)
In-Reply-To: <1367577580-3518-1-git-send-email-sonic.adi@gmail.com>
From: Sonic Zhang <sonic.zhang@analog.com>
Add new option <PKG>_FLAT_STACKSIZE. The document needs to be updated.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
v4-change:
- Use late binding in make to expand package specific flat stack size
to TARGET_LDFLAGS.
v2-changes:
- Fix typo error in macro BINFMT_FLAT
---
package/Makefile.in | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index dd3bc7d..a449089 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -103,6 +103,10 @@ TARGET_CFLAGS = $(TARGET_CPPFLAGS) $(TARGET_ABI) $(TARGET_OPTIMIZATION) $(TARGET
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
TARGET_LDFLAGS = $(call qstrip,$(BR2_TARGET_LDFLAGS))
+ifeq ($(BR2_BINFMT_FLAT),y)
+TARGET_LDFLAGS += $(if $($(PKG)_FLAT_STACKSIZE),-Wl$(comma)-elf2flt=-s$($(PKG)_FLAT_STACKSIZE))
+endif
+
ifeq ($(BR2_BINFMT_FLAT_SHARED),y)
TARGET_LDFLAGS += -mid-shared-library -mshared-library-id=0
TARGET_CFLAGS += -mid-shared-library -mshared-library-id=0
--
1.7.0.4
next prev parent reply other threads:[~2013-05-03 10:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-03 10:39 [Buildroot] [PATCH v7 1/7] arch: toolchain: Introduce binary formats BINFMT_* Sonic Zhang
2013-05-03 10:39 ` [Buildroot] [PATCH v7 2/7] arch: Add blackfin CPU choice Sonic Zhang
2013-05-05 20:49 ` Peter Korsgaard
2013-05-03 10:39 ` [Buildroot] [PATCH v7 3/7] arch: toolchain: Introduce target CPU revision Sonic Zhang
2013-05-05 20:51 ` Peter Korsgaard
2013-05-03 10:39 ` [Buildroot] [PATCH v7 4/7] arch: toolchain: Introduce binary format FLAT types Sonic Zhang
2013-05-05 20:55 ` Peter Korsgaard
2013-05-03 10:39 ` Sonic Zhang [this message]
2013-05-05 20:56 ` [Buildroot] [PATCH v7 5/7] package: Introduce package-specific BINFMT_FLAT options Peter Korsgaard
2013-05-03 10:39 ` [Buildroot] [PATCH v7 6/7] arch: toolchain: Install blackfin FDPIC and FLAT libraries in external toolchain makefile Sonic Zhang
2013-05-03 18:48 ` Thomas Petazzoni
2013-05-06 7:35 ` Sonic Zhang
2013-05-03 10:39 ` [Buildroot] [PATCH v7 7/7] package: Introduce NOMMU symbol Sonic Zhang
2013-05-05 20:48 ` [Buildroot] [PATCH v7 1/7] arch: toolchain: Introduce binary formats BINFMT_* Peter Korsgaard
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=1367577580-3518-5-git-send-email-sonic.adi@gmail.com \
--to=sonic.adi@gmail.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