config.mk: Check for -fstack-usage support
Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
6f4acc179c
commit
4a30f1e874
2
Makefile
2
Makefile
|
@ -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) \
|
||||||
$(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 :=
|
||||||
|
|
Loading…
Reference in New Issue