]> granicus.if.org Git - esp-idf/commitdiff
Bootloader: Export IS_BOOTLOADER_BUILD during make process
authorAngus Gratton <angus@espressif.com>
Fri, 21 Oct 2016 06:44:34 +0000 (17:44 +1100)
committerAngus Gratton <angus@espressif.com>
Fri, 21 Oct 2016 06:50:37 +0000 (17:50 +1100)
components/bootloader/Makefile.projbuild
components/bootloader/src/Makefile

index 91be3a6d6e4682ca978dde993b1f08b04585ac86..50c95f9fec05d3ed7336eb3dde2abc71601bd0f1 100644 (file)
@@ -8,7 +8,7 @@
 # basically runs Make in the src/ directory but it needs to zero some variables
 # the ESP-IDF project.mk makefile exports first, to not let them interfere.
 #
-ifeq ("$(IS_BOOTLOADER_BUILD)","")
+ifndef IS_BOOTLOADER_BUILD
 
 BOOTLOADER_COMPONENT_PATH := $(COMPONENT_PATH)
 BOOTLOADER_BUILD_DIR=$(abspath $(BUILD_DIR_BASE)/bootloader)
index f30e314a5f8b28d1843ff58ef40416557203dbbc..ddf664d446474d98815a8c6afaea063ae2fbb9b1 100644 (file)
@@ -10,6 +10,7 @@ COMPONENTS := esptool_py bootloader log
 #
 # IS_BOOTLOADER_BUILD tells the component Makefile.projbuild to be a no-op
 IS_BOOTLOADER_BUILD := 1
+export IS_BOOTLOADER_BUILD
 
 #We cannot include the esp32 component directly but we need its includes. 
 #This is fixed by adding CFLAGS from Makefile.projbuild