Signed-off-by: Tom Rini <tr...@ti.com>
---
 arch/arm/config.mk |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 45f9dca..caf6adb 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -53,7 +53,11 @@ PF_CPPFLAGS_ABI := $(call cc-option,\
                                )\
                        ) $(call cc-option,-mno-thumb-interwork,)\
                )
-PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI)
+
+# Report stack usage if supported
+PF_CPPFLAGS_STACK := $(call cc-option,-fstack-usage,)
+
+PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI) $(PF_CPPFLAGS_STACK)
 
 # For EABI, make sure to provide raise()
 ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
-- 
1.7.0.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to