From 9edf482d6b210d16a22fdf561da2a2f0fb84824d Mon Sep 17 00:00:00 2001 From: Sonic Zhang Date: Fri, 3 May 2013 00:39:38 +0000 Subject: [PATCH] package: Introduce package-specific BINFMT_FLAT options. Add new option _FLAT_STACKSIZE. The document needs to be updated. Signed-off-by: Sonic Zhang Acked-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index dd3bc7d1a5..a449089c1f 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 -- 2.30.2