]> git.dujemihanovic.xyz Git - u-boot.git/commit
kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Wed, 5 Mar 2014 07:59:37 +0000 (16:59 +0900)
committerTom Rini <trini@ti.com>
Fri, 7 Mar 2014 15:59:06 +0000 (10:59 -0500)
commite91df49fbb56858003ebe61191ae07b223a7b866
tree03f046a502e4d6d7bfe66afe7e07980adfa58a5b
parent3775dcd9c4ad9d7f19f2ff14989f5180aaba3d64
kbuild, blackfin: Add CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED

Many (but not all) of Blackfin boards give -O2 option
to compile under lib/ directory.
That means lib/ should be speed-optimized,
whereas other parts should be size-optimized.

We want to keep the same behavior,
but do not want to parse board/*/config.mk again and again.
We've got no choice but to invent a new method.

CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED, if it is enabled,
gives -O2 flag only for building under lib/ directory.

Dirty codes which I had marked as "FIX ME"
in board/${BOARD}/config.mk have been deleted.
Instead, CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED has been
defined in include/configs/${BOARD}.h.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Sonic Zhang <sonic.zhang@analog.com>
49 files changed:
board/bct-brettl2/config.mk [deleted file]
board/bf518f-ezbrd/config.mk [deleted file]
board/bf526-ezbrd/config.mk [deleted file]
board/bf527-ad7160-eval/config.mk [deleted file]
board/bf527-ezkit/config.mk [deleted file]
board/bf527-sdp/config.mk
board/bf533-ezkit/config.mk
board/bf533-stamp/config.mk
board/bf537-stamp/config.mk
board/bf538f-ezkit/config.mk
board/bf548-ezkit/config.mk
board/bf561-acvilon/config.mk
board/bf561-ezkit/config.mk
board/br4/config.mk [deleted file]
board/cm-bf527/config.mk [deleted file]
board/cm-bf533/config.mk
board/cm-bf537e/config.mk
board/cm-bf537u/config.mk
board/cm-bf548/config.mk
board/cm-bf561/config.mk
board/ip04/config.mk
board/pr1/config.mk [deleted file]
board/tcm-bf518/config.mk [deleted file]
board/tcm-bf537/config.mk
include/configs/bct-brettl2.h
include/configs/bf518f-ezbrd.h
include/configs/bf526-ezbrd.h
include/configs/bf527-ad7160-eval.h
include/configs/bf527-ezkit.h
include/configs/bf527-sdp.h
include/configs/bf533-ezkit.h
include/configs/bf533-stamp.h
include/configs/bf537-stamp.h
include/configs/bf538f-ezkit.h
include/configs/bf548-ezkit.h
include/configs/bf561-acvilon.h
include/configs/bf561-ezkit.h
include/configs/br4.h
include/configs/cm-bf527.h
include/configs/cm-bf533.h
include/configs/cm-bf537e.h
include/configs/cm-bf537u.h
include/configs/cm-bf548.h
include/configs/cm-bf561.h
include/configs/ip04.h
include/configs/pr1.h
include/configs/tcm-bf518.h
include/configs/tcm-bf537.h
lib/Makefile