aboutsummaryrefslogtreecommitdiff
path: root/board/bf548-ezkit
diff options
context:
space:
mode:
authorMasahiro Yamada2014-03-05 16:59:37 +0900
committerTom Rini2014-03-07 10:59:06 -0500
commite91df49fbb56858003ebe61191ae07b223a7b866 (patch)
tree03f046a502e4d6d7bfe66afe7e07980adfa58a5b /board/bf548-ezkit
parent3775dcd9c4ad9d7f19f2ff14989f5180aaba3d64 (diff)
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 'board/bf548-ezkit')
-rw-r--r--board/bf548-ezkit/config.mk5
1 files changed, 0 insertions, 5 deletions
diff --git a/board/bf548-ezkit/config.mk b/board/bf548-ezkit/config.mk
index 8d2c60f308c..7bb8e9c9ee5 100644
--- a/board/bf548-ezkit/config.mk
+++ b/board/bf548-ezkit/config.mk
@@ -7,11 +7,6 @@
# SPDX-License-Identifier: GPL-2.0+
#
-# FIX ME
-ifneq ($(filter lib lib/lzma lib/zlib, $(obj)),)
-ccflags-y := -O2
-endif
-
# Set some default LDR flags based on boot mode.
LDR_FLAGS-BFIN_BOOT_PARA := --dma 6
LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1