]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - Makefile
README.kconfig: document backward compatibility "make *_config"
[karo-tx-uboot.git] / Makefile
index 0fea5c2681b59fa311d86e0baec28da935a2e969..9646859083a4414ac50c1378726ecb8a51548228 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -529,7 +529,11 @@ else
 include/config/auto.conf: ;
 endif # $(dot-config)
 
-KBUILD_CFLAGS += -Os #-fomit-frame-pointer
+ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+KBUILD_CFLAGS  += -Os
+else
+KBUILD_CFLAGS  += -O2
+endif
 
 ifdef BUILD_TAG
 KBUILD_CFLAGS += -DBUILD_TAG='"$(BUILD_TAG)"'