From: Ilya Yanok Date: Tue, 8 Feb 2011 20:26:38 +0000 (+0100) Subject: u-boot: compile with -O2 on PowerPC X-Git-Tag: 2011-1~2430 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=d0eb6794d964aa5ac938533a222c39bef09fd945;p=openembedded-core.git 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 --- diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc index 503d2c335b..3a53fbad4d 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 () {