]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
config.mk: Check for -fstack-usage support
authorTom Rini <trini@ti.com>
Mon, 20 Feb 2012 13:50:10 +0000 (13:50 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 26 Mar 2012 21:09:24 +0000 (23:09 +0200)
Acked-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Tom Rini <trini@ti.com>
Makefile
config.mk

index 144613184b660041823b2062b113faae6cd32a5a..08921a5c0a56dec07fd78653dc10a23aaa25f392 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -747,7 +747,7 @@ clean:
        @rm -f $(obj)MLO
        @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
        @find $(OBJTREE) -type f \
-               \( -name 'core' -o -name '*.bak' -o -name '*~' \
+               \( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \
                -o -name '*.o'  -o -name '*.a' -o -name '*.exe' \) -print \
                | xargs rm -f
 
index 596ba935926f6e2eb76b16ea280391012c24eacf..fa33e628513ce78c097f33821f77794a569c74d4 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -232,6 +232,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \
               $(call cc-option,-Wno-format-security)
 CFLAGS += $(CFLAGS_WARN)
 
+# Report stack usage if supported
+CFLAGS_STACK := $(call cc-option,-fstack-usage)
+CFLAGS += $(CFLAGS_STACK)
+
 # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
 # option to the assembler.
 AFLAGS_DEBUG :=