diff options
author | Stefan K. Berg <stefan.k.berg@ericsson.com> | 2016-01-23 20:56:48 +0100 |
---|---|---|
committer | Stefan Berg <sfb@consultron.com> | 2016-01-29 14:25:47 +0100 |
commit | 36895dd570e1c602ea3171fa4c8bb77b19bc91d4 (patch) | |
tree | d18e310cec7849e03069c9de99d26f64447587fc /build/f_isoroot/f_qemupluginbuild | |
parent | 19f52239658b8e8b905acf4e8613db51f8d03e02 (diff) |
Cache as we go instead of in the end
In order to speed up the build process when building with the cache
enabled, cache immediately following the build of a sub artifact
instead of at the end.
Should the build fail, we don't need to rebuild those parts that
already were successful in the last build.
Change-Id: I23b59f7ba4a04272aea855cf451793158fe12241
Signed-off-by: Stefan K. Berg <stefan.k.berg@ericsson.com>
(cherry picked from commit d2c5a1dde91d10b4f3f9f5ac0b1570527247e03c)
Diffstat (limited to 'build/f_isoroot/f_qemupluginbuild')
-rw-r--r-- | build/f_isoroot/f_qemupluginbuild/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/f_isoroot/f_qemupluginbuild/Makefile b/build/f_isoroot/f_qemupluginbuild/Makefile index 126e20549..0f245aec3 100644 --- a/build/f_isoroot/f_qemupluginbuild/Makefile +++ b/build/f_isoroot/f_qemupluginbuild/Makefile @@ -50,6 +50,9 @@ release:.qemubuild $(REPOINFO) -r . > gitinfo_qemu-plugin.txt @rm -rf fuel-plugin-qemu @touch .qemubuild + # Store artifact in cache straight away if caching is enabled + # (no .cacheid will be present unless this is a cached build) + test -f .cacheid && $(MAKE) -f Makefile put-cache || exit 0 ############################################################################# # Cache operations - only used when building through ci/build.sh |