You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/24 17:48:25 UTC

[incubator-nuttx] 01/02: tools: Trigger clean_bootloader on distclean for supported chips

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 86518bdf251bd8829357913228b91326c7c0d8e7
Author: Gustavo Henrique Nihei <gu...@espressif.com>
AuthorDate: Fri Sep 24 07:25:17 2021 -0300

    tools: Trigger clean_bootloader on distclean for supported chips
    
    Signed-off-by: Gustavo Henrique Nihei <gu...@espressif.com>
---
 arch/Kconfig        | 4 ++++
 tools/Makefile.unix | 3 +++
 tools/Makefile.win  | 3 +++
 3 files changed, 10 insertions(+)

diff --git a/arch/Kconfig b/arch/Kconfig
index f242466..9171e8e 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -348,6 +348,10 @@ config ARCH_HAVE_BACKTRACE
 	bool
 	default n
 
+config ARCH_HAVE_BOOTLOADER
+	bool
+	default n
+
 config ARCH_FPU
 	bool "FPU support"
 	default y
diff --git a/tools/Makefile.unix b/tools/Makefile.unix
index 87f6325..6ed8213 100644
--- a/tools/Makefile.unix
+++ b/tools/Makefile.unix
@@ -592,6 +592,9 @@ distclean: clean subdir_distclean
 ifeq ($(CONFIG_BUILD_2PASS),y)
 	$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) distclean
 endif
+ifeq ($(CONFIG_ARCH_HAVE_BOOTLOADER),y)
+	$(Q) $(MAKE) clean_bootloader
+endif
 	$(Q) $(MAKE) clean_context
 	$(call DELFILE, Make.defs)
 	$(call DELFILE, defconfig)
diff --git a/tools/Makefile.win b/tools/Makefile.win
index 9be0d72..3ff9bd2 100644
--- a/tools/Makefile.win
+++ b/tools/Makefile.win
@@ -541,6 +541,9 @@ distclean: clean subdir_distclean
 ifeq ($(CONFIG_BUILD_2PASS),y)
 	$(Q) $(MAKE) -C $(CONFIG_PASS1_BUILDIR) distclean
 endif
+ifeq ($(CONFIG_ARCH_HAVE_BOOTLOADER),y)
+	$(Q) $(MAKE) clean_bootloader
+endif
 	$(Q) $(MAKE) clean_context
 	$(call DELFILE, Make.defs)
 	$(call DELFILE, defconfig)