summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorStefan K. Berg <stefan.k.berg@ericsson.com>2016-01-18 13:51:24 +0100
committerStefan Berg <sfb@consultron.com>2016-01-29 13:59:45 +0100
commit54413253d4ad3f0f594997792a0f1dd3c1ba4788 (patch)
tree656b51107f95d40b20fe4b2bb6a77e17333bc828 /build
parent3b76cca93578c3822bd0910ab23aaccbff9015c8 (diff)
Correction of cache handling for ISO build
The cache id was not generated considering config.mk nor Makefile. Change-Id: I29ae0d60b89d4653cb38cffe83f666c5056daf63 Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com> (cherry picked from commit dc8eec07243d65c99be15bda2c112c35caa48c54)
Diffstat (limited to 'build')
-rw-r--r--build/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/build/Makefile b/build/Makefile
index d58f3ad76..e3b79c2b3 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -84,17 +84,17 @@ $(ISOCACHE):
# Setup cgroups for docker-in-docker
sudo /root/enable_dockerx2
# Patch for adding dosfstools, as Fuel 6.1 is running mkfs.vfat
- cd /tmp/fuel-main && patch -p0 < $(TOPDIR)/fuel-main_5.patch
- # Patch for changing the second layer Docker --bip address
- cd /tmp/fuel-main && patch -p0 < $(TOPDIR)/fuel-main_6.patch
+ cd /tmp/fuel-main && patch -f -p0 < $(TOPDIR)/fuel-main_5.patch
+ # Patch for using the Czech Fuel mirror
+ # cd /tmp/fuel-main && patch -p0 < $(TOPDIR)/fuel-main_7.patch
# Remove Docker optimizations, otherwise multistrap will fail during
# Fuel build.
sudo rm -f /etc/apt/apt.conf.d/docker*
#
# Need to replace the old Docker v. 1.5.0 with a later version to be
# able to access the Docker remote repository!
- cd /tmp/fuel-main && patch -p0 < $(TOPDIR)/fuel-main_docker_version.patch
- cd /tmp/fuel-main && patch -p0 < $(TOPDIR)/fuel-main_docker_dns.patch
+ cd /tmp/fuel-main && patch -f -p0 < $(TOPDIR)/fuel-main_docker_version.patch
+ # cd /tmp/fuel-main && patch -f -p0 < $(TOPDIR)/fuel-main_docker_dns.patch
#
cd /tmp/fuel-main && ./prepare-build-env.sh
cd /tmp/fuel-main && make repos
@@ -185,6 +185,9 @@ debug:
cd /tmp/fuel-main && make repos
$(REPOINFO) -r /tmp/fuel-main > .cachedata
sha1sum fuel-main*.patch >> .cachedata
+ sha1sum config.mk >> .cachedata
+ sha1sum Makefile >> .cachedata
+ $(CACHETOOL) getbiweek >> .cachedata
cat .cachedata | $(CACHETOOL) getid > .cacheid
# Not removing fuel-main as it is re-used in build