From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 9 Jun 2009 20:17:04 +0200 Subject: [U-Boot] [RFC/PATCH v2] allow boards to customize compiler options on a per-file/dir basis In-Reply-To: <1242630364-2510-1-git-send-email-vapier@gentoo.org> References: <1242629780-2081-1-git-send-email-vapier@gentoo.org> <1242630364-2510-1-git-send-email-vapier@gentoo.org> Message-ID: <20090609181704.GC7621@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03:06 Mon 18 May , Mike Frysinger wrote: > With our Blackfin boards, we like to build the compression routines with > -O2 as our tests show a pretty good size/speed tradeoff. For the rest of > U-Boot though, we want to stick with the default -Os as that is mostly > control code. So in our case, we would add a line like so to the board > specific config.mk file: > CFLAGS_lib_generic += -O2 > > Now all files under lib_generic/ will have -O2 appended to their build. > > Signed-off-by: Mike Frysinger > --- Acked-by: Jean-Christophe PLAGNIOL-VILLARD Best Regards, J.