From 86518bdf251bd8829357913228b91326c7c0d8e7 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Fri, 24 Sep 2021 07:25:17 -0300 Subject: [PATCH] tools: Trigger clean_bootloader on distclean for supported chips Signed-off-by: Gustavo Henrique Nihei --- 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 f242466e4d..9171e8e9a9 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 87f6325287..6ed821313a 100644 --- a/tools/Makefile.unix +++ b/tools/Makefile.unix @@ -591,6 +591,9 @@ subdir_distclean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_distclean) 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) diff --git a/tools/Makefile.win b/tools/Makefile.win index 9be0d72d02..3ff9bd2ad7 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -540,6 +540,9 @@ subdir_distclean: $(foreach SDIR, $(CLEANDIRS), $(SDIR)_distclean) 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)