diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-03-05 16:59:37 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-07 10:59:06 -0500 |
commit | e91df49fbb56858003ebe61191ae07b223a7b866 (patch) | |
tree | 03f046a502e4d6d7bfe66afe7e07980adfa58a5b /include/configs/bf548-ezkit.h | |
parent | 3775dcd9c4ad9d7f19f2ff14989f5180aaba3d64 (diff) | |
download | u-boot-imx-e91df49fbb56858003ebe61191ae07b223a7b866.zip u-boot-imx-e91df49fbb56858003ebe61191ae07b223a7b866.tar.gz u-boot-imx-e91df49fbb56858003ebe61191ae07b223a7b866.tar.bz2 |
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>
Diffstat (limited to 'include/configs/bf548-ezkit.h')
-rw-r--r-- | include/configs/bf548-ezkit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/bf548-ezkit.h b/include/configs/bf548-ezkit.h index da5f029..1a245a2 100644 --- a/include/configs/bf548-ezkit.h +++ b/include/configs/bf548-ezkit.h @@ -181,6 +181,7 @@ #define CONFIG_RTC_BFIN #define CONFIG_UART_CONSOLE 1 #define CONFIG_BFIN_SPI_IMG_SIZE 0x50000 +#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED #define CONFIG_ADI_GPIO2 |