contrib: fix build without flock

Change-Id: I274ed5b9b6f97b06e7a355b941f81f86c7816c24
This commit is contained in:
Adrien Béraud
2021-11-30 13:53:00 -05:00
committed by Sébastien Blin
parent 3466f1a2af
commit 9c74ea2cbb

View File

@ -352,7 +352,7 @@ HOSTVARS := $(HOSTTOOLS) \
ifeq ($(DISABLE_CONTRIB_DOWNLOADS),TRUE)
download_git = $(error Trying to clone $(1) but DISABLE_CONTRIB_DOWNLOADS is TRUE, aborting.)
else
download_git = flock "$@.lock" sh -c "\
download_git = $(FLOCK_PREFIX) sh -c "\
rm -Rf '$(@:.tar.xz=)' && \
$(GIT) clone $(2:%=--branch '%') '$(1)' '$(@:.tar.xz=)' && \
(cd '$(@:.tar.xz=)' && $(GIT) checkout $(3:%= '%')) && \