From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Fri, 27 Sep 2013 11:09:02 +0900 Subject: [U-Boot] [PATCH] config.mk: enable -fstack-usage only when it is desired In-Reply-To: <5244200E.8040109@ti.com> References: <1380161866-12232-1-git-send-email-yamada.m@jp.panasonic.com> <5244200E.8040109@ti.com> Message-ID: <20130927110901.5405.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Tom. > The problem here is that except for whatever arches don't support > - -fstack-usage, we always want to generate this information, to assist in > debugging stack usage problems (which can be a real problem within SPL > for example). How about ifneq($(CONFIG_M68K)$(CONFIG_...),y) ... endif > around it? OK. This works. But I'm kind of afraid ifneq($(CONFIG_M68K)$(CONFIG_...),y) ... endif might be too arch-specific to be written in the top config.mk. Instead, we can add CONFIG_CC_STACKUSAGE=y to arch/{arm, powerpc, x86, microblaze ...}/config.mk Best Regards Masahiro Yamada