From 023fb0e59d1f7b03014a7599a222d14b66f7c028 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 3 Aug 2017 19:07:28 +0800 Subject: [PATCH 1/2] Server side: Fix the script and generate the machine directory first --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 49a87e9..ad75a49 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,7 @@ ifndef WEB_FILES $(error "Please call with make make-server-structure WEB_FILES=...") endif $(Q)$(foreach machine, $(MACHINES), \ + mkdir $(WEB_FILES)/$(machine); \ mkdir $(WEB_FILES)/$(machine)/$(SYSMOCOM_RELEASE); \ mkdir $(WEB_FILES)/$(machine)/$(SYSMOCOM_RELEASE)-testing; \ mkdir $(WEB_FILES)/$(machine)/$(SYSMOCOM_RELEASE)-nightly; \ From 5930ffa23ab164b7420fd61788b7ba065c496a48 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 4 Aug 2017 18:35:50 +0800 Subject: [PATCH 2/2] Add missing clean target * Throw away the tmp/ directory as recent OpenEmbedded is really good with the sstate-cache and can rebuild it. This avoids having to try to clean the sysroot or remove unused entries from work/ * Clean the sstate cache in case there are old entries. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index ad75a49..c21fde3 100644 --- a/Makefile +++ b/Makefile @@ -128,6 +128,10 @@ build.%: | git/poky %-upload: | build.$(subst -upload,,%) 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/ + # Create all build directories, build everything, upload everything, clean everything setup-all: | $(foreach machine, $(MACHINES), $(machine)-setup)