summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-bsp/uboot/u-boot.inc9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-bsp/uboot/u-boot.inc b/meta/recipes-bsp/uboot/u-boot.inc
index 3a53fbad4d..f60667ee6b 100644
--- a/meta/recipes-bsp/uboot/u-boot.inc
+++ b/meta/recipes-bsp/uboot/u-boot.inc
@@ -12,7 +12,7 @@ inherit deploy
PARALLEL_MAKE=""
# GCC 4.5.1 builds unusable binaries using -Os, remove it from OPTFLAGS
-EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''"
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'"
UBOOT_MACHINE ?= "${MACHINE}_config"
UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin"
@@ -23,12 +23,7 @@ do_compile () {
unset CFLAGS
unset CPPFLAGS
oe_runmake ${UBOOT_MACHINE}
- # -Os is disabled on PowerPC
- if [ ${TARGET_ARCH} == "powerpc" ] ; then
- oe_runmake OPTFLAGS=-O2 all
- else
- oe_runmake all
- fi
+ oe_runmake all
}
do_deploy () {