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 0f3b5cca28
commit e79c8f39aa
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) $(Q)cd build.$(CUR_MACHINE) && ../scripts/upload-build.sh $(CUR_MACHINE) $(FEED_NAME)
%-clean: | build.$(subst -clean,,%) git/poky %-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) && ../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 # Create all build directories, build everything, upload everything, clean everything
setup-all: | $(foreach machine, $(MACHINES), $(machine)-setup) setup-all: | $(foreach machine, $(MACHINES), $(machine)-setup)