diff options
author | Sean Anderson | 2022-02-22 12:19:24 -0500 |
---|---|---|
committer | Tom Rini | 2022-03-25 13:35:50 -0400 |
commit | f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9 (patch) | |
tree | bb97c57132c800e893a355955c57aa13b946e68d /Makefile | |
parent | e47bbf7e0e160ad8a52927cf3411673413138285 (diff) |
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 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -683,7 +683,9 @@ endif ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE KBUILD_CFLAGS += -Os -else +endif + +ifdef CONFIG_CC_OPTIMIZE_FOR_SPEED KBUILD_CFLAGS += -O2 endif |