diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-bsp/uboot/u-boot.inc | 9 |
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 | |||
12 | PARALLEL_MAKE="" | 12 | PARALLEL_MAKE="" |
13 | 13 | ||
14 | # GCC 4.5.1 builds unusable binaries using -Os, remove it from OPTFLAGS | 14 | # GCC 4.5.1 builds unusable binaries using -Os, remove it from OPTFLAGS |
15 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS=''" | 15 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} OPTFLAGS='-O2'" |
16 | 16 | ||
17 | UBOOT_MACHINE ?= "${MACHINE}_config" | 17 | UBOOT_MACHINE ?= "${MACHINE}_config" |
18 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" | 18 | UBOOT_IMAGE ?= "u-boot-${MACHINE}-${PV}-${PR}.bin" |
@@ -23,12 +23,7 @@ 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 | # -Os is disabled on PowerPC | 26 | oe_runmake all |
27 | if [ ${TARGET_ARCH} == "powerpc" ] ; then | ||
28 | oe_runmake OPTFLAGS=-O2 all | ||
29 | else | ||
30 | oe_runmake all | ||
31 | fi | ||
32 | } | 27 | } |
33 | 28 | ||
34 | do_deploy () { | 29 | do_deploy () { |