diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2013-05-03 00:39:38 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-05-05 22:55:50 +0200 |
commit | 9edf482d6b210d16a22fdf561da2a2f0fb84824d (patch) | |
tree | 0878ec178a31a75e72e5933d9c14a6f86cecd21b /package | |
parent | 57c05432917de3b9aec293d713acafde01ac9b07 (diff) | |
download | buildroot-novena-9edf482d6b210d16a22fdf561da2a2f0fb84824d.tar.gz buildroot-novena-9edf482d6b210d16a22fdf561da2a2f0fb84824d.zip |
package: Introduce package-specific BINFMT_FLAT options.
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>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r-- | package/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in index dd3bc7d1a..a449089c1 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 |