summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2022-02-22 12:19:24 -0500
committerTom Rini <trini@konsulko.com>2022-03-25 13:35:50 -0400
commitf38cb2aca7ab95c4be53eb54497f91ba8a35e4a9 (patch)
treebb97c57132c800e893a355955c57aa13b946e68d /Makefile
parente47bbf7e0e160ad8a52927cf3411673413138285 (diff)
downloadu-boot-socfpga-f38cb2aca7ab95c4be53eb54497f91ba8a35e4a9.tar.gz
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--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06572ac07e..c04b58d46a 100644
--- a/Makefile
+++ b/Makefile
@@ -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