From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masahiro Yamada Date: Fri, 13 Jun 2014 11:56:28 +0900 Subject: [U-Boot] [PATCH 1/4] Reactivate the tracing feature In-Reply-To: References: Message-ID: <20140613115628.C6FF.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 Hi Simon, On Wed, 11 Jun 2014 23:50:48 -0400 Simon Glass wrote: > Hi Masahiro, > > On 11 June 2014 23:42, Simon Glass wrote: > > Hi Masahiro, > > > > Yes I should remove this otherwise it will at best bloat the code for > > SPL. I think it is probably best just to revert that part of the > > Makefile. > > Although actually I'm not sure how to have different flags for > everything except SPL and examples/ - any clues? Me neither. But one possible solution is: Add the CONFIG_SPL_BUILD conditional to config.mk to disable it for SPL. ifeq ($(CONFIG_SPL_BUILD),) ifdef FTRACE CFLAGS += -finstrument-functions -DFTRACE endif endif exmpales/ seems having troubles with FTRACE. So, disable it when FTRACE=1 is defined. examples/Makefile is like this: ifndef FTRACE ifndef CONFIG_SANDBOX subdir-y += standalone subdir-$(CONFIG_API) += api endif endif BTW, can FTRACE build for all boards? I checked out v2014.01 (pre-kbuild) - make sandbox_config; make FTRACE=1 - make snow_config; make CROSS_COMPILE=arm-linux-gnueabi- FRACE=1 succeeded. But, - make omap3_beagle_config; make CROSS_COMPILE=arm-linux-gnueabi- FRACE=1 faied with lots of undefined reference errors to __cyg_profile_func_enter/_exit. I don't know why. Best Regards Masahiro Yamada