summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/uboot
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/recipes-bsp/uboot
parent8bf1bf21896781a03e8d3921d6b8654fd1c78eae (diff)
downloadpoky-d0eb6794d964aa5ac938533a222c39bef09fd945.tar.gz
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/recipes-bsp/uboot')
-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 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 () {
23 unset CFLAGS 23 unset CFLAGS
24 unset CPPFLAGS 24 unset CPPFLAGS
25 oe_runmake ${UBOOT_MACHINE} 25 oe_runmake ${UBOOT_MACHINE}
26 oe_runmake all 26 # -Os is disabled on PowerPC
27 if [ ${TARGET_ARCH} == "powerpc" ] ; then
28 oe_runmake OPTFLAGS=-O2 all
29 else
30 oe_runmake all
31 fi
27} 32}
28 33
29do_deploy () { 34do_deploy () {