summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorIlya Yanok <yanok@emcraft.com>2011-02-08 21:26:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-09 11:25:04 +0000
commitd0eb6794d964aa5ac938533a222c39bef09fd945 (patch)
treea1d5fb133eedbe2e97c4613ed3ecfb44aacc58b8 /meta
parent8bf1bf21896781a03e8d3921d6b8654fd1c78eae (diff)
downloadopenembedded-core-d0eb6794d964aa5ac938533a222c39bef09fd945.tar.gz
openembedded-core-d0eb6794d964aa5ac938533a222c39bef09fd945.tar.bz2
openembedded-core-d0eb6794d964aa5ac938533a222c39bef09fd945.tar.xz
openembedded-core-d0eb6794d964aa5ac938533a222c39bef09fd945.zip
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-bsp/uboot/u-boot.inc7
1 files changed, 6 insertions, 1 deletions
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 () {