diff options
author | Sean Anderson <sean.anderson@seco.com> | 2022-02-22 12:19:24 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-03-25 13:35:50 -0400 |
commit | f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9 (patch) | |
tree | bb97c57132c800e893a355955c57aa13b946e68d /Kconfig | |
parent | e47bbf7e0e160ad8a52927cf3411673413138285 (diff) | |
download | u-boot-f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9.zip u-boot-f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9.tar.gz u-boot-f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9.tar.bz2 |
Split CONFIG_CC_OPTIMIZE_FOR_SIZE into two configs
This adds a separate CONFIG_CC_OPTIMIZE_FOR_SPEED option in a choice,
in preparation for adding another optimization option. Also convert SH's
makefile to use this new option.
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -72,15 +72,26 @@ config CLANG_VERSION int default $(shell,$(srctree)/scripts/clang-version.sh $(CC)) +choice + prompt "Optimization level" + default CC_OPTIMIZE_FOR_SIZE + config CC_OPTIMIZE_FOR_SIZE bool "Optimize for size" - default y help - Enabling this option will pass "-Os" instead of "-O2" to gcc - resulting in a smaller U-Boot image. + Enabling this option will pass "-Os" to gcc, resulting in a smaller + U-Boot image. This option is enabled by default for U-Boot. +config CC_OPTIMIZE_FOR_SPEED + bool "Optimize for speed" + help + Enabling this option will pass "-O2" to gcc, resulting in a faster + U-Boot image. + +endchoice + config OPTIMIZE_INLINING bool "Allow compiler to uninline functions marked 'inline' in full U-Boot" help |