mirror of
git://git.yoctoproject.org/poky
synced 2026-08-12 12:58:43 +00:00
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>
This commit is contained in:
parent
8bf1bf2189
commit
d0eb6794d9
@ -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 () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user