summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-04-07 13:27:51 +0200
committerAlexander Larsson <alexl@redhat.com>2016-04-07 13:27:51 +0200
commit845f1531ee16622ec3f16d0b3b11e65897a30030 (patch)
tree6a95425bdaa7ef7e2456b6c8e4719b233a563f7f
parentf22fae41ff97ab866a23d23a8bffa00ff7588b19 (diff)
Remove old images before build
Otherwise these pile up forever. We store rpms and ostree repo between builds anyway
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8a1eafd..f05c1d2 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,8 @@ all: ${FILE_REF_PLATFORM} ${FILE_REF_SDK}
COMMIT_ARGS=--generate-sizes --repo=repo --owner-uid=0 --owner-gid=0 --no-xattrs
${IMAGES} allimages:
+ rm -f ${IMAGEDIR}/freedesktop-contents-*.tar.gz # Remove all old images to make space
+ rm -rf build/*/tmp-glibc/deploy/images/*/freedesktop-contents-*.tar.gz
git submodule update --init
mkdir -p build/${ARCH}
./freedesktop-sdk-build-yocto ${srcdir}/ ${builddir}/build/ ${ARCH} ${HASH}