From d0eb6794d964aa5ac938533a222c39bef09fd945 Mon Sep 17 00:00:00 2001 From: Ilya Yanok Date: Tue, 8 Feb 2011 21:26:38 +0100 Subject: u-boot: compile with -O2 on PowerPC gcc on PowerPC is currently compiled with -Os optimization disabled so we have to use -O2 on PowerPC instead. Signed-off-by: Ilya Yanok Signed-off-by: Richard Purdie --- meta/recipes-bsp/uboot/u-boot.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc index 503d2c335..3a53fbad4 100644 --- a/meta/recipes-bsp/uboot/u-boot.inc +++ b/meta/recipes-bsp/uboot/u-boot.inc @@ -23,7 +23,12 @@ do_compile () { unset CFLAGS unset CPPFLAGS oe_runmake ${UBOOT_MACHINE} - oe_runmake all + # -Os is disabled on PowerPC + if [ ${TARGET_ARCH} == "powerpc" ] ; then + oe_runmake OPTFLAGS=-O2 all + else + oe_runmake all + fi } do_deploy () { -- cgit v1.2.3