Skip to content
Snippets Groups Projects
Commit 4a30f1e8 authored by Tom Rini's avatar Tom Rini Committed by Albert ARIBAUD
Browse files

config.mk: Check for -fstack-usage support


Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 6f4acc17
No related branches found
No related tags found
No related merge requests found
...@@ -747,7 +747,7 @@ clean: ...@@ -747,7 +747,7 @@ clean:
@rm -f $(obj)MLO @rm -f $(obj)MLO
@rm -f $(TIMESTAMP_FILE) $(VERSION_FILE) @rm -f $(TIMESTAMP_FILE) $(VERSION_FILE)
@find $(OBJTREE) -type f \ @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 \ -o -name '*.o' -o -name '*.a' -o -name '*.exe' \) -print \
| xargs rm -f | xargs rm -f
......
...@@ -232,6 +232,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \ ...@@ -232,6 +232,10 @@ CFLAGS_WARN := $(call cc-option,-Wno-format-nonliteral) \
$(call cc-option,-Wno-format-security) $(call cc-option,-Wno-format-security)
CFLAGS += $(CFLAGS_WARN) 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> # $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
# option to the assembler. # option to the assembler.
AFLAGS_DEBUG := AFLAGS_DEBUG :=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment