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 <yanok@emcraft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ilya Yanok authored and Richard Purdie committed 2011-02-09 11:25:04 +00:00
1 parent 8bf1bf2189
commit d0eb6794d9
1 file changed
+6 -1
+6 -1
View 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 () {