aboutsummaryrefslogtreecommitdiffstats
path: root/build/f_isoroot/f_onosfwpluginbuild/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'build/f_isoroot/f_onosfwpluginbuild/Makefile')
-rw-r--r--build/f_isoroot/f_onosfwpluginbuild/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/f_isoroot/f_onosfwpluginbuild/Makefile b/build/f_isoroot/f_onosfwpluginbuild/Makefile
index 8e8ce39ae..0cf290c1c 100644
--- a/build/f_isoroot/f_onosfwpluginbuild/Makefile
+++ b/build/f_isoroot/f_onosfwpluginbuild/Makefile
@@ -59,7 +59,11 @@ release:.onosbuild
# - The SHA1 hash of the HEAD on the plugin repo's $(ONOS_BRANCH)
# - The contents of this Makefile
.cacheid:
- @git ls-remote --heads $(ONOS_REPO) | grep $(ONOS_BRANCH) | awk {'print $$1'} > .cachedata
+ @if [ ! -z $(ONOS_CHANGE) ]; then \
+ $(CACHETOOL) getcommitid $(ONOS_REPO) $(ONOS_CHANGE) > .cachedata; \
+ else \
+ $(CACHETOOL) getcommitid $(ONOS_REPO) $(ONOS_BRANCH) > .cachedata; \
+ fi
@sha1sum Makefile | awk {'print $$1'} >> .cachedata
@sha1sum config.mk | awk {'print $$1'} >> .cachedata
@cat .cachedata | $(CACHETOOL) getid > .cacheid