[U-Boot] [PATCH/next v3] allow boards to customize compiler options on a per-file/dir basis
Wolfgang Denk
wd at denx.de
Sun Jun 14 22:44:40 CEST 2009
Dear Mike Frysinger,
In message <1244986380-24157-1-git-send-email-vapier at gentoo.org> you 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 <vapier at gentoo.org>
> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
> ---
> v3
> - updated to apply to next after Jean's changes
>
> config.mk | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I'm a programmer: I don't buy software, I write it.
-- Tom Christiansen
More information about the U-Boot
mailing list