]> code.ossystems Code Review - openembedded-core.git/commitdiff
u-boot: compile with -O2 on PowerPC
authorIlya Yanok <yanok@emcraft.com>
Tue, 8 Feb 2011 20:26:38 +0000 (21:26 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Feb 2011 11:25:04 +0000 (11:25 +0000)
gcc on PowerPC is currently compiled with -Os optimization disabled so
we have to use -O2 on PowerPC instead.

Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-bsp/uboot/u-boot.inc

index 503d2c335b239b4fcfa80f9fc512771e6caf25c4..3a53fbad4d3f80816648679b3b97726b080ba7cf 100644 (file)
@@ -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 () {