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?

This commit is contained in:
Gregory Nutt 2018-09-04 17:17:41 -06:00
parent 6f6bc758cc
commit c24703e243
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -222,4 +222,5 @@ endif
$(call DELFILE, $(BIN))
$(call DELFILE, Kconfig)
$(call DELDIR, $(BIN_DIR))
$(call DELDIR, $(EXE_DIR))
$(call CLEAN)