]> granicus.if.org Git - esp-idf/commitdiff
Makefile: bootloader-clean shouldn't clean config or partition table
authorAngus Gratton <angus@espressif.com>
Fri, 19 Aug 2016 04:16:06 +0000 (12:16 +0800)
committerAngus Gratton <angus@espressif.com>
Fri, 19 Aug 2016 06:04:51 +0000 (14:04 +0800)
Also don't build config for 'make help', and remove some redundant
clearing of variables.

components/bootloader/Makefile.projbuild
make/project_config.mk

index 18101b2a5157d8bd3c768b76b4225abacc21f409..63c77ed72f92ca3a2a9f634227275df4c19acc32 100644 (file)
@@ -17,21 +17,17 @@ BOOTLOADER_BIN=$(BOOTLOADER_BUILD_DIR)/bootloader.bin
 
 $(BOOTLOADER_BIN): $(COMPONENT_PATH)/src/sdkconfig
        $(Q) PROJECT_PATH= \
-       COMPONENT_LDFLAGS= \
-       COMPONENT_INCLUDES= \
        LDFLAGS= \
        CFLAGS= \
        BUILD_DIR_BASE=$(BOOTLOADER_BUILD_DIR) \
-       make -C $(BOOTLOADER_COMPONENT_PATH)/src MAKEFLAGS= V=$(V) TARGET_BIN_LAYOUT="$(BOOTLOADER_TARGET_BIN_LAYOUT)" $(BOOTLOADER_BIN)
+       $(MAKE) -C $(BOOTLOADER_COMPONENT_PATH)/src MAKEFLAGS= V=$(V) TARGET_BIN_LAYOUT="$(BOOTLOADER_TARGET_BIN_LAYOUT)" $(BOOTLOADER_BIN)
 
 bootloader-clean:
        $(Q) PROJECT_PATH= \
-       COMPONENT_LDFLAGS= \
-       COMPONENT_INCLUDES= \
        LDFLAGS= \
        CFLAGS= \
        BUILD_DIR_BASE=$(BOOTLOADER_BUILD_DIR) \
-       make -C $(BOOTLOADER_COMPONENT_PATH)/src clean MAKEFLAGS= V=$(V)
+       $(MAKE) -C $(BOOTLOADER_COMPONENT_PATH)/src app-clean MAKEFLAGS= V=$(V)
 
 clean: bootloader-clean
 
@@ -50,4 +46,4 @@ $(COMPONENT_PATH)/src/sdkconfig: $(PROJECT_PATH)/sdkconfig
 
 # bootloader-flash calls flash in the bootloader dummy project
 bootloader-flash: $(BOOTLOADER_BIN)
-       make -C $(BOOTLOADER_COMPONENT_PATH)/src flash MAKEFLAGS= V=$(V)
+       $(MAKE) -C $(BOOTLOADER_COMPONENT_PATH)/src flash MAKEFLAGS= V=$(V)
index 24fd7304e6e57e24040d410e31557483c77a7185..862ed760e693b716a41d3f28da4b1ea0eb3c653c 100644 (file)
@@ -31,7 +31,7 @@ endif
 
 # Work out of whether we have to build the Kconfig makefile
 # (auto.conf), or if we're in a situation where we don't need it
-NON_CONFIG_TARGETS := clean %-clean get_variable
+NON_CONFIG_TARGETS := clean %-clean get_variable help
 AUTO_CONF_REGEN_TARGET := $(PROJECT_PATH)/build/include/config/auto.conf
 
 # disable AUTO_CONF_REGEN_TARGET if all targets are non-config targets