kconfig: move CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED to Kconfig
authorMasahiro Yamada <yamada.m@jp.panasonic.com>
Tue, 16 Sep 2014 07:32:59 +0000 (16:32 +0900)
committerTom Rini <trini@ti.com>
Wed, 24 Sep 2014 22:30:28 +0000 (18:30 -0400)
If this option is enabled, the objects under lib/ directory
are compiled with speed optimization, not size optimization.
(Currently, only used by some Blackfin boards.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
50 files changed:
configs/bct-brettl2_defconfig
configs/bf518f-ezbrd_defconfig
configs/bf526-ezbrd_defconfig
configs/bf527-ad7160-eval_defconfig
configs/bf527-ezkit-v2_defconfig
configs/bf527-ezkit_defconfig
configs/bf527-sdp_defconfig
configs/bf533-ezkit_defconfig
configs/bf533-stamp_defconfig
configs/bf537-stamp_defconfig
configs/bf538f-ezkit_defconfig
configs/bf548-ezkit_defconfig
configs/bf561-acvilon_defconfig
configs/bf561-ezkit_defconfig
configs/br4_defconfig
configs/cm-bf527_defconfig
configs/cm-bf533_defconfig
configs/cm-bf537e_defconfig
configs/cm-bf537u_defconfig
configs/cm-bf548_defconfig
configs/cm-bf561_defconfig
configs/ip04_defconfig
configs/pr1_defconfig
configs/tcm-bf518_defconfig
configs/tcm-bf537_defconfig
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/Kconfig

index 367630647e7b5b18219b417f6302287fba5438d4..26b145d30a1247153c2432685ae8ae27d1014c4c 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BCT_BRETTL2=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index a93eed0882285538542b90167893f0ad5f5a4f93..fb35ad023dbba91dbd1ccbf8bb3c4ff5248313fe 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF518F_EZBRD=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 4a452235ac3827f5a0cfebf19dcdad8a663cedeb..da06d3ad6eea05f0a07955036ca858886290f65b 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF526_EZBRD=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index d9db715f146efc2b3f24faf5c1c34384b3a0fef5..47f53c9d8169cca82a020dee58f75b7c6dad59e9 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF527_AD7160_EVAL=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index aedbb9649a68e1d205f6d428f856dab508d6117c..e250e10354b6ee3977dfbdb48e4f742f7e64eaea 100644 (file)
@@ -1,3 +1,4 @@
 CONFIG_SYS_EXTRA_OPTIONS="BF527_EZKIT_REV_2_1"
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF527_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 3ed77a66b0736ecdbb7c3eb6b5c952515561281a..69f6ef781b9cbabe6ffeaeba8193caa6285eb050 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF527_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 0f8c28c339ea2b555141febf58ea031b99b53d8b..57f47e9fc8ec342b12d6e7713df7d8a1d649b01e 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF527_SDP=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 217d4c30a01a3f700fc8b2369aca5583ca1bd5f2..57f8da14758caa40e47779cea8d276cfc54cafc0 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF533_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index a99b3c75ff46745c87a019a5efc3aec8de4f5596..1bcf3d319aedda099bf0a213f0e472697ff412b2 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF533_STAMP=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index d9daf7e309ef5f44e02f6d2d51d67da98632be7c..9b9a92f13fa79591f6f14e8a489ae8969900d8cf 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF537_STAMP=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 0507cb2b912702d91e52b9eb0151e3d53b5cd008..1892151db0c2b37a65a4fcb6fe0df37755dea1a9 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF538F_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 7bb4064ad7ead5b718c7059256b39b00dd5b0db1..52369849aad0ea4ae3a41d0e3101b64020a78158 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF548_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index ba8a418928d16d8093de91e7b9c23982af041ecd..098f31fb55982b4d78c485e348fd4a272c169e3d 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF561_ACVILON=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 7ceb1d9f4a8529b7323623f8fb7e4ee383ad0131..5665288316259495008f3d54d447ad18b0dd6650 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BF561_EZKIT=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 9d91933218088a24ed22ab91a0c8e8941e51fc10..5655d54b0419b3f391c35189ef398dce4d44c8c2 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_BR4=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index cb5110c7b1fd4a8381ebf3d152d8ea2a1230a9f9..a6830b54fd396b019dd884bdb200d147d379caea 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF527=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index aa38d0ed69185f3905dd5b7361b9116df59211bb..b9508ae2975747a8ee7b090f4dd20cd82cb17fff 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF533=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index b9deaae3bfdef402b9caad21726f97fe642a2188..a44eab7f0da6b1e82b53b2e7f7e2d08a0b61a841 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF537E=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 16f7ae17a2a2afa580cb3064e1a8332823701e23..29c33b95144aa403569afd40a50075478e13559a 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF537U=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index e60306a1eaa3a03236fe8135c2ccfce59406cf6d..525f2e7f373d2305b8e3dd491cc4bafc53ce7412 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF548=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 1b9301cb9ecfcf7b1997910a7709b3f93036c647..062bfeb6dc6844e1fe8b3673c9f76e993c5daebf 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_CM_BF561=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index 4f9895aa770f8e8ce2699a148b0c190ce07fb981..ba737aedfbe46cd0e2d4db912de04858699cc1ff 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_IP04=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index a8784c11df30e80eef2c23f69404d2fa16c0d163..793a4e83768d5aa02bef07946613f5d5c9a8c5b0 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_PR1=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index a9d5da01fa731261f9c7ea2f17e7c660ffc33fad..0c9ae4d57e7917a55869dc997ff421804e8fcbf2 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_TCM_BF518=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index fe9de13f367cb5296ba2f49df6a5bdecf6068e22..6d604b6c9e4af2cec8f25ae9b61a2f2560afd089 100644 (file)
@@ -1,2 +1,3 @@
 CONFIG_BLACKFIN=y
 CONFIG_TARGET_TCM_BF537=y
+CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y
index c1eda96385188614b429707e8cd82564f5f87bba..d0828d5f5c107b9bb1aa943f45f80706e333c20a 100644 (file)
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 #define CONFIG_SYS_HUSH_PARSER
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 9e374c4024498a034e2e88b52b9bcf1c28e3f8e8..20f6ed1992f82055736ba4a1f0ecdd7a4986bee3 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 972eca9c1742a79bf5eeff82507db1e70b815e51..c33d035022843fd3fa5072bd4ace9e5bde7f4dbe 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    1
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /* define to enable run status via led */
 /* #define CONFIG_STATUS_LED */
index c0dfe2685bfa5436d83928e36092a400d2b8ef5a..b497f26773808ee598f40b5589e0cd75be69cecd 100644 (file)
  */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 92c183e27c25cf47382f427c8ee7c235dd261255..0bca53f2a69c7427e2068b5051ea950ff8b40263 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    1
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 458868af7269fafbc028463aec794e801824e608..9d43b811e3e9e0fac993ee5fafa8956e10e3d4f2 100644 (file)
  */
 #define CONFIG_MISC_INIT_R
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index b50352823e75dcc60f2eaa386384c37653e16049..0fda967ac24ac2b183cbdec0e87ae3ed48dbf8d4 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 3d36d84c7cb0c26b2d12e0a7881c2aa1a42a686e..ae4d83a8f1430265f4d2ed6e0c5b8ad5214d02f4 100644 (file)
  */
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /* FLASH/ETHERNET uses the same async bank */
 #define SHARED_RESOURCES       1
index a302f839a1ec239b9d96e83d4a5b26374a717f91..29f9316067dda1b205d8dc7ac9b0eb04440e5806 100644 (file)
 #define CONFIG_MISC_INIT_R
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /* Define if want to do post memory test */
 #undef CONFIG_POST
index 32df5ec8f09757437338539637449759f8a4f419..a65528246d68b15fbbd2c25471f22424cbc698bb 100644 (file)
  */
 #define CONFIG_RTC_BFIN
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 1a245a2b81818d9272b18403ec61f974fecc0e40..da5f0294351c0c5f3288d9fc935d17e395ba1af5 100644 (file)
 #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
 
index 3db917e37bc296fee647aafffa215d9324e140a4..6871d8c422265308d6955c51ac5779de9525efd0 100644 (file)
 #define CONFIG_UART_CONSOLE                    0
 #define CONFIG_BAUDRATE                                57600
 #define CONFIG_SYS_PROMPT "Acvilon> "
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 0a309d926944e101e5e7e604a67d06e30867e21a..fb6f94873af222f5e4d25a4790bf647ff0c42e0a 100644 (file)
  * Misc Settings
  */
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Run core 1 from L1 SRAM start address when init uboot on core 0
index f8d3158d47500cb924552fae98661b2381b98319..3f240085e3f22b3b7d3d70fb963c7afad84b18e8 100644 (file)
 #define CONFIG_BOOTCOMMAND     "run nandboot"
 #define CONFIG_BOOTDELAY       2
 #define CONFIG_LOADADDR                0x2000000
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 8d3ae49913ed365824d669b8ccbaad3a0f5fa42e..f5351ad2643d5c37855d48ab0b42a2aa6e1e77c6 100644 (file)
 #define FLASHBOOT_ENV_SETTINGS \
        "flashboot=flread 20040000 1000000 300000;" \
        "bootm 0x1000000\0"
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 8bd499a7d2ce2eec36fa13275ffe1717d981e692..485f01a01c04f6f76bdd2e7e39d6cf6eb06679d1 100644 (file)
@@ -97,7 +97,6 @@
 #define CONFIG_UART_CONSOLE    0
 #define CONFIG_BOOTCOMMAND     "run flashboot"
 #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 47967d7120306e9ba34682d0fe70d6aa21366f8a..1729b44a1bf308d92baa33782f4a11532f30564d 100644 (file)
        "flashboot=flread 20040000 1000000 3c0000;" \
        "bootm 0x1000000\0"
 #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 88c99821b1e4d3cf662e402d655bea8df1d5e8b2..272aa744a95cc9065d23eac4cf2d2760f77fc09d 100644 (file)
        "flashboot=flread 20040000 1000000 300000;" \
        "bootm 0x1000000\0"
 #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 346e27f3ebd83a6722b09fccc563ceb0e03aefa3..7f27eda416da7ecf3e4a8de60434f798cab8bf0f 100644 (file)
 #define CONFIG_UART_CONSOLE    1
 #define CONFIG_BOOTCOMMAND     "run flashboot"
 #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 #define CONFIG_ADI_GPIO2
 
index 5265e5f6ef0682cb6fa31aa6b20c5e6a9c227cf1..96910a7afd27cab60ddbc1241277b20c01a32088 100644 (file)
@@ -99,7 +99,6 @@
 #define CONFIG_UART_CONSOLE    0
 #define CONFIG_BOOTCOMMAND     "run flashboot"
 #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 3767502faa59dfa4c18d234a10d38e0d2f24cad5..ec510bdac421757a54086fc1e6892ca166d31212 100644 (file)
 #define CONFIG_BAUDRATE                115200
 #define CONFIG_MISC_INIT_R     /* needed for MAC address */
 #define CONFIG_UART_CONSOLE    0
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 #undef CONFIG_SHOW_BOOT_PROGRESS
 /* Enable this if bootretry required; currently it's disabled */
index e96ed4b4f281ef44ed972a73d4d214e7a7507fb3..0f57e868a5d6d94c0364096204960d99f781c3c8 100644 (file)
 #define CONFIG_BOOTCOMMAND     "run nandboot"
 #define CONFIG_BOOTDELAY       2
 #define CONFIG_LOADADDR                0x2000000
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index a77ba697d0fbe83b0dfd636dd325508afc54e5f6..66730267a33432c10f08321c2a4cfb26781e0b0d 100644 (file)
 #define CONFIG_UART_CONSOLE    0
 #define CONFIG_BOOTCOMMAND     "run flashboot"
 #define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index c4c1c579bc102b0815aa5fe99c7500aa7f26e5ef..999834351f3404ab3d0b4a8801163fe9509a7fa4 100644 (file)
        "flashboot=flread 20040000 1000000 300000;" \
        "bootm 0x1000000\0"
 #define CONFIG_BOARD_SIZE_LIMIT $$((384 * 1024))
-#define CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED
 
 /*
  * Pull in common ADI header for remaining command/environment setup
index 9724eb88cb0b983f407f41a47184a701c62662e2..88e5da72ecc6ffe619a337b981dcb6c6af206c9a 100644 (file)
@@ -1,3 +1,11 @@
 menu "Library routines"
 
+config CC_OPTIMIZE_LIBS_FOR_SPEED
+       bool "Optimize libraries for speed"
+       help
+         Enabling this option will pass "-O2" to gcc when compiling
+         under "lib" directory.
+
+         If unsure, say N.
+
 endmenu