kconfig: move CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED to Kconfig

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>
master
Masahiro Yamada 10 years ago committed by Tom Rini
parent ed36323f6d
commit b0928da648
  1. 1
      configs/bct-brettl2_defconfig
  2. 1
      configs/bf518f-ezbrd_defconfig
  3. 1
      configs/bf526-ezbrd_defconfig
  4. 1
      configs/bf527-ad7160-eval_defconfig
  5. 1
      configs/bf527-ezkit-v2_defconfig
  6. 1
      configs/bf527-ezkit_defconfig
  7. 1
      configs/bf527-sdp_defconfig
  8. 1
      configs/bf533-ezkit_defconfig
  9. 1
      configs/bf533-stamp_defconfig
  10. 1
      configs/bf537-stamp_defconfig
  11. 1
      configs/bf538f-ezkit_defconfig
  12. 1
      configs/bf548-ezkit_defconfig
  13. 1
      configs/bf561-acvilon_defconfig
  14. 1
      configs/bf561-ezkit_defconfig
  15. 1
      configs/br4_defconfig
  16. 1
      configs/cm-bf527_defconfig
  17. 1
      configs/cm-bf533_defconfig
  18. 1
      configs/cm-bf537e_defconfig
  19. 1
      configs/cm-bf537u_defconfig
  20. 1
      configs/cm-bf548_defconfig
  21. 1
      configs/cm-bf561_defconfig
  22. 1
      configs/ip04_defconfig
  23. 1
      configs/pr1_defconfig
  24. 1
      configs/tcm-bf518_defconfig
  25. 1
      configs/tcm-bf537_defconfig
  26. 1
      include/configs/bct-brettl2.h
  27. 1
      include/configs/bf518f-ezbrd.h
  28. 1
      include/configs/bf526-ezbrd.h
  29. 1
      include/configs/bf527-ad7160-eval.h
  30. 1
      include/configs/bf527-ezkit.h
  31. 1
      include/configs/bf527-sdp.h
  32. 1
      include/configs/bf533-ezkit.h
  33. 1
      include/configs/bf533-stamp.h
  34. 1
      include/configs/bf537-stamp.h
  35. 1
      include/configs/bf538f-ezkit.h
  36. 1
      include/configs/bf548-ezkit.h
  37. 1
      include/configs/bf561-acvilon.h
  38. 1
      include/configs/bf561-ezkit.h
  39. 1
      include/configs/br4.h
  40. 1
      include/configs/cm-bf527.h
  41. 1
      include/configs/cm-bf533.h
  42. 1
      include/configs/cm-bf537e.h
  43. 1
      include/configs/cm-bf537u.h
  44. 1
      include/configs/cm-bf548.h
  45. 1
      include/configs/cm-bf561.h
  46. 1
      include/configs/ip04.h
  47. 1
      include/configs/pr1.h
  48. 1
      include/configs/tcm-bf518.h
  49. 1
      include/configs/tcm-bf537.h
  50. 8
      lib/Kconfig

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BCT_BRETTL2=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF518F_EZBRD=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF526_EZBRD=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF527_AD7160_EVAL=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -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

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF527_EZKIT=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF527_SDP=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF533_EZKIT=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF533_STAMP=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF537_STAMP=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF538F_EZKIT=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF548_EZKIT=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF561_ACVILON=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BF561_EZKIT=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_BR4=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF527=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF533=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF537E=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF537U=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF548=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_CM_BF561=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_IP04=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_PR1=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_TCM_BF518=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -1,2 +1,3 @@
CONFIG_BLACKFIN=y
CONFIG_TARGET_TCM_BF537=y
CONFIG_CC_OPTIMIZE_LIBS_FOR_SPEED=y

@ -137,7 +137,6 @@
#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

@ -155,7 +155,6 @@
#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

@ -153,7 +153,6 @@
#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 */

@ -136,7 +136,6 @@
*/
#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

@ -179,7 +179,6 @@
#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

@ -112,7 +112,6 @@
*/
#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

@ -110,7 +110,6 @@
#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

@ -186,7 +186,6 @@
*/
#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

@ -254,7 +254,6 @@
#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

@ -135,7 +135,6 @@
*/
#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

@ -181,7 +181,6 @@
#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

@ -160,7 +160,6 @@
#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

@ -102,7 +102,6 @@
* 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

@ -135,7 +135,6 @@
#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

@ -128,7 +128,6 @@
#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

@ -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

@ -146,7 +146,6 @@
"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

@ -143,7 +143,6 @@
"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

@ -117,7 +117,6 @@
#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

@ -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

@ -133,7 +133,6 @@
#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 */

@ -135,7 +135,6 @@
#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

@ -116,7 +116,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

@ -145,7 +145,6 @@
"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

@ -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

Loading…
Cancel
Save