From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 7 Mar 2014 17:29:11 -0500 Subject: [U-Boot] [U-Boot, v3, 1/4] kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED In-Reply-To: <1394006380-14192-2-git-send-email-yamada.m@jp.panasonic.com> References: <1394006380-14192-2-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20140307222911.GQ16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Mar 05, 2014 at 04:59:37PM +0900, Masahiro Yamada wrote: > Many (but not all) of Blackfin boards give -O2 option > to compile under lib/ directory. > That means lib/ should be speed-optimized, > whereas other parts should be size-optimized. > > We want to keep the same behavior, > but do not want to parse board/*/config.mk again and again. > We've got no choice but to invent a new method. > > CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED, if it is enabled, > gives -O2 flag only for building under lib/ directory. > > Dirty codes which I had marked as "FIX ME" > in board/${BOARD}/config.mk have been deleted. > Instead, CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED has been > defined in include/configs/${BOARD}.h. > > Signed-off-by: Masahiro Yamada > Cc: Sonic Zhang Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: