From 362337a9e8aabb58e931469c99caecdba072a956 Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Fri, 8 Sep 2017 17:25:32 +0200 Subject: [PATCH] hw: remove bootstrap in clean rules Ref #2091 --- repos/base-hw/src/bootstrap/hw/target.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/repos/base-hw/src/bootstrap/hw/target.mk b/repos/base-hw/src/bootstrap/hw/target.mk index 66b680ad84..6202efab28 100644 --- a/repos/base-hw/src/bootstrap/hw/target.mk +++ b/repos/base-hw/src/bootstrap/hw/target.mk @@ -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