]> granicus.if.org Git - esp-idf/commitdiff
Revert "bootloader: Add option to build with Link Time Optimisation enabled"
authorIvan Grokhotkov <ivan@espressif.com>
Sun, 23 Jul 2017 21:14:31 +0000 (05:14 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Sun, 23 Jul 2017 21:14:31 +0000 (05:14 +0800)
This reverts commit d1b66a08c1d9838b139e9fef6cc2d38e5d5ee57d.

components/bootloader/Kconfig.projbuild
components/bootloader/subproject/main/Makefile.projbuild
make/project.mk

index b4f2c904ac541918f5d7fc030d7fc7236f1674f5..5af223c0ad4503198f4ae9fec30dce94f6e411cd 100644 (file)
@@ -43,16 +43,7 @@ config BOOTLOADER_SPI_WP_PIN
 
         The default value (GPIO 7) is correct for WP pin on ESP32-D2WD integrated flash.
 
-config BOOTLOADER_LTO
-       bool "Build bootloader with Link Time Optimisation"
-       default n
-       help
-           Setting this option enables gcc Link Time Optimisation for the bootloader build & link pass.
-
-           This gives a smaller bootloader binary (can be useful if secure boot & flash encryption & logging are all enabled), and can
-           give faster boot times, but it makes the bootloader harder to debug.
-
-endmenu  # Bootloader config
+endmenu  # Bootloader
 
 
 menu "Security features"
@@ -226,7 +217,7 @@ config FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_CACHE
 config SECURE_BOOT_TEST_MODE
        bool "Secure boot test mode: don't permanently set any efuses"
        depends on SECURE_BOOT_INSECURE
-       default n
+       default N
        help
           If this option is set, all permanent secure boot changes (via Efuse) are disabled.
 
index afd5282d83bea689cec00e8d164e4155d317bf48..c368c68416c7014b5091eaedb3b7e96d81a9b9f4 100644 (file)
@@ -2,8 +2,3 @@
 # paths can be added at this level (we need binary librtc to be
 # available to link bootloader).
 COMPONENT_SUBMODULES += $(IDF_PATH)/components/esp32/lib
-
-ifdef CONFIG_BOOTLOADER_LTO
-CFLAGS += -flto
-EXTRA_LDFLAGS += -Wl,-flto
-endif
index ad7a055071e0cb112246483d154a702bbac85ca1..f6c958f2f6f366e87ae52a10601041575de552e6 100644 (file)
@@ -290,7 +290,7 @@ export HOSTCC HOSTLD HOSTAR HOSTOBJCOPY SIZE
 CC := $(call dequote,$(CONFIG_TOOLPREFIX))gcc
 CXX := $(call dequote,$(CONFIG_TOOLPREFIX))c++
 LD := $(call dequote,$(CONFIG_TOOLPREFIX))ld
-AR := $(call dequote,$(CONFIG_TOOLPREFIX))gcc-ar
+AR := $(call dequote,$(CONFIG_TOOLPREFIX))ar
 OBJCOPY := $(call dequote,$(CONFIG_TOOLPREFIX))objcopy
 SIZE := $(call dequote,$(CONFIG_TOOLPREFIX))size
 export CC CXX LD AR OBJCOPY SIZE