Makefile: Fix the clean target by re-ordering

The sstate cleaning requires a tmp directory. So don't delete it first.
This commit is contained in:
Holger Hans Peter Freyther 2017-08-06 23:24:23 +08:00
parent 6c0a4e0af0
commit b8c9e10c12
1 changed files with 1 additions and 1 deletions

View File

@ -129,8 +129,8 @@ build.%: | git/poky
$(Q)cd build.$(CUR_MACHINE) && ../scripts/upload-build.sh $(CUR_MACHINE) $(FEED_NAME)
%-clean: | build.$(subst -clean,,%) git/poky
$(Q)cd build.$(CUR_MACHINE) && rm -rf tmp
$(Q)cd build.$(CUR_MACHINE) && ../git/poky/scripts/sstate-cache-management.sh --cache-dir=sstate-cache -y -L --stamps-dir=tmp/stamps/
$(Q)cd build.$(CUR_MACHINE) && rm -rf tmp
# Create all build directories, build everything, upload everything, clean everything
setup-all: | $(foreach machine, $(MACHINES), $(machine)-setup)