diff --git a/configs/Board.mk b/configs/Board.mk index a04da66427..13226676b6 100644 --- a/configs/Board.mk +++ b/configs/Board.mk @@ -127,9 +127,11 @@ depend: .depend clean: $(call DELFILE, libboard$(LIBEXT)) $(call CLEAN) + $(EXTRA_CLEAN) distclean: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) + $(EXTRA_DISTCLEAN) -include Make.dep diff --git a/configs/esp32-core/src/Makefile b/configs/esp32-core/src/Makefile index a2f4f134f4..48b013f367 100644 --- a/configs/esp32-core/src/Makefile +++ b/configs/esp32-core/src/Makefile @@ -37,12 +37,16 @@ SCRIPTDIR = $(TOPDIR)$(DELIM)configs$(DELIM)$(CONFIG_ARCH_BOARD)$(DELIM)scripts CONFIGFILE = $(TOPDIR)$(DELIM)include$(DELIM)nuttx$(DELIM)config.h -SCRIPTIN = esp32.ld -SCRIPTOUT = esp32_out.ld ASRCS = CSRCS = +SCRIPTIN = esp32.ld +SCRIPTOUT = esp32_out.ld + +EXTRA_CLEAN = +EXTRA_DISTCLEAN = $(call DELFILE, $(SCRIPTOUT)) + include $(TOPDIR)/configs/Board.mk $(SCRIPTOUT): $(SCRIPTIN) $(CONFIGFILE)