From c24703e2438e41735dad4b2b597193cce2f1da86 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 4 Sep 2018 17:17:41 -0600 Subject: [PATCH] Makefile: 'make distclean' should remvoe the exe subdirectory That target must return the directory back to the state is was in when freshly cloned. Appliation.mk: Add logic to strip unnecessary symbols after installing a module. But then I commented it out. Wouldn't we want to keep the symbols if we planned to debug the module? In apps/examples/elf, there is configuration option to determine if the symbols should be stripped or not. Perhaps that is needed here too? --- Application.mk | 1 + Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/Application.mk b/Application.mk index 6bf225eb1..44c2a1a5f 100644 --- a/Application.mk +++ b/Application.mk @@ -191,6 +191,7 @@ ifneq ($(PROGOBJ),) $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS) -o $(firstword $(PROGLIST)) $(Q) $(NM) -u $(firstword $(PROGLIST)) $(Q) install -m 0755 -D $(firstword $(PROGLIST)) $(BIN_DIR)/$(firstword $(PROGLIST)) +# $(Q) $(STRIP) $(BIN_DIR)/$(firstword $(PROGLIST) $(eval PROGLIST=$(filter-out $(firstword $(PROGLIST)),$(PROGLIST))) $(eval PROGOBJ=$(filter-out $(firstword $(PROGOBJ)),$(PROGOBJ))) endif diff --git a/Makefile b/Makefile index 09785e254..1ecd498a4 100644 --- a/Makefile +++ b/Makefile @@ -222,4 +222,5 @@ endif $(call DELFILE, $(BIN)) $(call DELFILE, Kconfig) $(call DELDIR, $(BIN_DIR)) + $(call DELDIR, $(EXE_DIR)) $(call CLEAN)