summaryrefslogtreecommitdiffstats
path: root/build/f_isoroot/f_qemupluginbuild/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/f_isoroot/f_qemupluginbuild/Makefile')
-rw-r--r--build/f_isoroot/f_qemupluginbuild/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/f_isoroot/f_qemupluginbuild/Makefile b/build/f_isoroot/f_qemupluginbuild/Makefile
index 4e8d9e9f6..19a233731 100644
--- a/build/f_isoroot/f_qemupluginbuild/Makefile
+++ b/build/f_isoroot/f_qemupluginbuild/Makefile
@@ -60,7 +60,11 @@ release:.qemubuild
# - The SHA1 hash of the HEAD on the plugin repo's $(QEMU_BRANCH)
# - The contents of this Makefile
.cacheid:
- @git ls-remote --heads $(QEMU_REPO) | grep $(QEMU_BRANCH) | awk {'print $$1'} > .cachedata
+ @if [ ! -z $(QEMU_CHANGE) ]; then \
+ $(CACHETOOL) getcommitid $(QEMU_REPO) $(QEMU_CHANGE) > .cachedata; \
+ else \
+ $(CACHETOOL) getcommitid $(QEMU_REPO) $(QEMU_BRANCH) > .cachedata; \
+ fi
@sha1sum Makefile | awk {'print $$1'} >> .cachedata
@sha1sum config.mk | awk {'print $$1'} >> .cachedata
@cat .cachedata | $(CACHETOOL) getid > .cacheid