forked from nuttx/nuttx-update
arch/: Clean what was made during context
in distclean.
Cleaning during `clean_context` had the issue of remaking everything when `menuconfig` was issued. That's because `menuconfig` has a `clean_context` on its way. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
af1dceb3e3
commit
e85b119363
24 changed files with 36 additions and 72 deletions
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_ARMV7A),y) # ARMv7-A
|
||||
ARCH_SUBDIR = armv7-a
|
||||
|
@ -193,8 +193,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -206,7 +204,7 @@ ifneq ($(EXTRADELFILE),)
|
|||
endif
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -172,7 +172,7 @@ chip/$(NRFXLIB_UNPACK): $(NRFXLIB_TGZ)
|
|||
|
||||
context:: chip/$(NRFXLIB_UNPACK)
|
||||
|
||||
clean_context::
|
||||
distclean::
|
||||
$(call DELFILE, chip/$(NRFXLIB_TGZ))
|
||||
$(call DELDIR, chip/$(NRFXLIB_UNPACK))
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_FAMILY_AVR32),y)
|
||||
ARCH_SUBDIR = avr32
|
||||
|
@ -140,8 +140,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -149,7 +147,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_HC12),y)
|
||||
ARCH_SUBDIR = hc12
|
||||
|
@ -155,8 +155,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -164,7 +162,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_MIPS),y)
|
||||
ARCH_SUBDIR = mips32
|
||||
|
@ -138,8 +138,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -147,7 +145,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_CHIP_LM32),y)
|
||||
ARCH_SUBDIR = lm32
|
||||
|
@ -141,8 +141,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -150,7 +148,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_MOR1KX),y) # OpenRISC mor1kx
|
||||
ARCH_SUBDIR = mor1kx
|
||||
|
@ -181,8 +181,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -191,7 +189,7 @@ endif
|
|||
$(call DELFILE, $(BIN))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ARCH_SRCDIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src
|
||||
|
||||
|
@ -149,8 +149,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -158,7 +156,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_RV32I),y) # Base Integer support
|
||||
ARCH_SUBDIR = rv32i
|
||||
|
@ -182,8 +182,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -193,7 +191,7 @@ endif
|
|||
$(call DELFILE, $(HEAD_OBJ))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -100,7 +100,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP)
|
|||
|
||||
context:: chip/$(WIRELESS_DRV_UNPACK)
|
||||
|
||||
clean_context::
|
||||
distclean::
|
||||
$(call DELFILE, chip/$(WIRELESS_DRV_ZIP))
|
||||
$(call DELDIR, chip/$(WIRELESS_DRV_UNPACK))
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP)
|
|||
|
||||
context:: chip/$(WIRELESS_DRV_UNPACK)
|
||||
|
||||
clean_context::
|
||||
distclean::
|
||||
$(call DELFILE, chip/$(WIRELESS_DRV_ZIP))
|
||||
$(call DELDIR, chip/$(WIRELESS_DRV_UNPACK))
|
||||
|
||||
|
|
|
@ -339,8 +339,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if [ -e board/Makefile ]; then \
|
||||
$(MAKE) -C board clean ; \
|
||||
|
@ -351,7 +349,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if [ -e board/Makefile ]; then \
|
||||
$(MAKE) -C board distclean ; \
|
||||
fi
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_I486),y)
|
||||
ARCH_SUBDIR = i486
|
||||
|
@ -153,8 +153,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -162,7 +160,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_INTEL64),y)
|
||||
ARCH_SUBDIR = intel64
|
||||
|
@ -163,8 +163,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -172,7 +170,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
ifeq ($(CONFIG_ARCH_FAMILY_LX6),y)
|
||||
ARCH_SUBDIR = lx6
|
||||
|
@ -143,8 +143,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board clean
|
||||
|
@ -152,7 +150,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(BOARDMAKE),y)
|
||||
$(Q) $(MAKE) -C board distclean
|
||||
endif
|
||||
|
|
|
@ -223,7 +223,7 @@ chip/$(WIRELESS_DRV_UNPACK): $(WIRELESS_DRV_ZIP)
|
|||
|
||||
context:: chip/$(WIRELESS_DRV_UNPACK)
|
||||
|
||||
clean_context::
|
||||
distclean::
|
||||
$(call DELFILE, chip/$(WIRELESS_DRV_ZIP))
|
||||
$(call DELDIR, chip/$(WIRELESS_DRV_UNPACK))
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
############################################################################
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
COMPILER = ${shell basename "$(CC)"}
|
||||
ARCHSRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||
|
@ -140,8 +140,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
$(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board clean )
|
||||
|
@ -159,7 +157,7 @@ endif
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||
$(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board distclean )
|
||||
else
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# Makefile fragments
|
||||
|
||||
include $(TOPDIR)/Make.defs
|
||||
-include chip/Make.defs
|
||||
include chip/Make.defs
|
||||
|
||||
# Compiler-Dependent Make: SDCC, Clang, or ZiLOG ZDS-II
|
||||
|
||||
|
|
|
@ -115,8 +115,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if [ -e board$(DELIM)Makefile ]; then \
|
||||
$(MAKE) -C board clean ; \
|
||||
|
@ -125,7 +123,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if [ -e board$(DELIM)Makefile ]; then \
|
||||
$(MAKE) -C board distclean ; \
|
||||
fi
|
||||
|
|
|
@ -203,8 +203,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if [ -e board/Makefile ]; then \
|
||||
$(MAKE) -C board clean ; \
|
||||
|
@ -214,7 +212,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if [ -e board/Makefile ]; then \
|
||||
$(MAKE) -C board distclean ; \
|
||||
fi
|
||||
|
|
|
@ -195,8 +195,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if exist board\Makefile ( $(MAKE) -C board clean )
|
||||
$(call DELFILE, asm_mem.h)
|
||||
|
@ -204,7 +202,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if exist board\Makefile ( $(MAKE) -C board distclean )
|
||||
$(call DELFILE, Make.dep)
|
||||
$(call DELFILE, .depend)
|
||||
|
|
|
@ -144,8 +144,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if [ -e board$(DELIM)Makefile ]; then \
|
||||
$(MAKE) -C board clean ; \
|
||||
|
@ -157,7 +155,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if [ -e board$(DELIM)Makefile ]; then \
|
||||
$(MAKE) -C board distclean ; \
|
||||
fi
|
||||
|
|
|
@ -126,8 +126,6 @@ depend: .depend
|
|||
|
||||
context::
|
||||
|
||||
clean_context::
|
||||
|
||||
clean:
|
||||
$(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board clean )
|
||||
$(call DELFILE, nuttx.linkcmd)
|
||||
|
@ -137,7 +135,7 @@ clean:
|
|||
$(call DELFILE, libarch$(LIBEXT))
|
||||
$(call CLEAN)
|
||||
|
||||
distclean: clean
|
||||
distclean:: clean
|
||||
$(Q) if exist board$(DELIM)Makefile ( $(MAKE) -C board distclean )
|
||||
$(call DELFILE, Make.dep)
|
||||
$(call DELFILE, .depend)
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
# CONFIG_BUILD_KERNEL is selected, then applications are not build at all.
|
||||
|
||||
CLEANDIRS :=
|
||||
CCLEANDIRS := boards $(APPDIR) graphics $(ARCH_SRC)
|
||||
CCLEANDIRS := boards $(APPDIR) graphics
|
||||
KERNDEPDIRS :=
|
||||
USERDEPDIRS :=
|
||||
|
||||
|
|
Loading…
Reference in a new issue