hw: remove bootstrap in clean rules

Ref #2091
This commit is contained in:
Stefan Kalkowski 2017-09-08 17:25:32 +02:00 committed by Christian Helmuth
parent 0da420c104
commit 362337a9e8
1 changed files with 5 additions and 2 deletions

View File

@ -9,9 +9,12 @@ ifneq ($(INSTALL_DIR),)
ifneq ($(DEBUG_DIR),)
$(TARGET): $(INSTALL_DIR)/$(BOOTSTRAP_OBJ)
$(INSTALL_DIR)/$(BOOTSTRAP_OBJ) : $(DEBUG_DIR)/$(BOOTSTRAP_OBJ)
$(BOOTSTRAP_OBJ).stripped: $(BOOTSTRAP_OBJ)
$(VERBOSE)$(STRIP) --strip-debug -o $@ $<
$(INSTALL_DIR)/$(BOOTSTRAP_OBJ) : $(BOOTSTRAP_OBJ).stripped
$(VERBOSE)ln -sf $(CURDIR)/$< $@
$(DEBUG_DIR)/$(BOOTSTRAP_OBJ) : $(BOOTSTRAP_OBJ)
$(VERBOSE)ln -sf $(CURDIR)/$(BOOTSTRAP_OBJ) $(DEBUG_DIR)/$(BOOTSTRAP_OBJ)
endif
@ -22,4 +25,4 @@ $(BOOTSTRAP_OBJ):
$(VERBOSE)$(LD) $(LD_MARCH) -u _start --whole-archive -r $(LINK_ITEMS) $(LIBCXX_GCC) -o $@
clean cleanall:
$(VERBOSE)rm -f $(BOOTSTRAP_OBJ)
$(VERBOSE)rm -f $(BOOTSTRAP_OBJ) $(BOOTSTRAP_OBJ).stripped