[build] Fix cleaning SONIC_PYTHON_STDEB_DEBS (#3343)
* slave.mk * .gitignore The SONIC_PYTHON_STDEB_DEBS group is part of SONIC_CLEAN_DEBS for cleaning with 'make clean', but this group is overlooked since they reside in PYTHON_DEBS_PATH, not DEBS_PATH. This fix creates a separate clean rule for SONIC_PYTHON_STDEB_DEBS. Also noticed the .arch file showing up on 'git status' so added it to .gitignore. Signed-off-by: Greg Paussa <greg.paussa@broadcom.com>
This commit is contained in:
parent
b2db3971cf
commit
f65c7969b6
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,6 +2,7 @@
|
||||
.DS_Store
|
||||
|
||||
# Build system related
|
||||
.arch
|
||||
.platform
|
||||
.screen
|
||||
|
||||
|
12
slave.mk
12
slave.mk
@ -703,7 +703,6 @@ SONIC_CLEAN_DEBS = $(addsuffix -clean,$(addprefix $(DEBS_PATH)/, \
|
||||
$(SONIC_COPY_DEBS) \
|
||||
$(SONIC_MAKE_DEBS) \
|
||||
$(SONIC_DPKG_DEBS) \
|
||||
$(SONIC_PYTHON_STDEB_DEBS) \
|
||||
$(SONIC_DERIVED_DEBS) \
|
||||
$(SONIC_EXTRA_DEBS)))
|
||||
|
||||
@ -728,15 +727,20 @@ SONIC_CLEAN_TARGETS += $(addsuffix -clean,$(addprefix $(TARGET_PATH)/, \
|
||||
$(SONIC_CLEAN_TARGETS) : $(TARGET_PATH)/%-clean : .platform
|
||||
@rm -f $(TARGET_PATH)/$*
|
||||
|
||||
SONIC_CLEAN_STDEB_DEBS = $(addsuffix -clean,$(addprefix $(PYTHON_DEBS_PATH)/, \
|
||||
$(SONIC_PYTHON_STDEB_DEBS)))
|
||||
$(SONIC_CLEAN_STDEB_DEBS) : $(PYTHON_DEBS_PATH)/%-clean : .platform
|
||||
@rm -f $(PYTHON_DEBS_PATH)/$*
|
||||
|
||||
SONIC_CLEAN_WHEELS = $(addsuffix -clean,$(addprefix $(PYTHON_WHEELS_PATH)/, \
|
||||
$(SONIC_PYTHON_WHEELS)))
|
||||
$(SONIC_CLEAN_WHEELS) : $(PYTHON_WHEELS_PATH)/%-clean : .platform
|
||||
@rm -f $(PYTHON_WHEELS_PATH)/$*
|
||||
|
||||
clean-logs : .platform
|
||||
@rm -f $(TARGET_PATH)/*.log $(DEBS_PATH)/*.log $(FILES_PATH)/*.log $(PYTHON_WHEELS_PATH)/*.log
|
||||
@rm -f $(TARGET_PATH)/*.log $(DEBS_PATH)/*.log $(FILES_PATH)/*.log $(PYTHON_DEBS_PATH)/*.log $(PYTHON_WHEELS_PATH)/*.log
|
||||
|
||||
clean : .platform clean-logs $$(SONIC_CLEAN_DEBS) $$(SONIC_CLEAN_FILES) $$(SONIC_CLEAN_TARGETS) $$(SONIC_CLEAN_WHEELS)
|
||||
clean : .platform clean-logs $$(SONIC_CLEAN_DEBS) $$(SONIC_CLEAN_FILES) $$(SONIC_CLEAN_TARGETS) $$(SONIC_CLEAN_STDEB_DEBS) $$(SONIC_CLEAN_WHEELS)
|
||||
|
||||
###############################################################################
|
||||
## all
|
||||
@ -755,6 +759,6 @@ jessie : $$(addprefix $(TARGET_PATH)/,$$(SONIC_JESSIE_DOCKERS_FOR_INSTALLERS))
|
||||
## Standard targets
|
||||
###############################################################################
|
||||
|
||||
.PHONY : $(SONIC_CLEAN_DEBS) $(SONIC_CLEAN_FILES) $(SONIC_CLEAN_TARGETS) $(SONIC_CLEAN_WHEELS) $(SONIC_PHONY_TARGETS) clean distclean configure
|
||||
.PHONY : $(SONIC_CLEAN_DEBS) $(SONIC_CLEAN_FILES) $(SONIC_CLEAN_TARGETS) $(SONIC_CLEAN_STDEB_DEBS) $(SONIC_CLEAN_WHEELS) $(SONIC_PHONY_TARGETS) clean distclean configure
|
||||
|
||||
.INTERMEDIATE : $(SONIC_INSTALL_TARGETS) $(SONIC_INSTALL_WHEELS) $(DOCKER_LOAD_TARGETS) docker-start .platform
|
||||
|
Loading…
Reference in New Issue
Block a user