aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 () {
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 () {