X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=rules.mk;h=d3521649a52da662301b3f29eafc6486fe60e3b5;hb=27a7d97c151caabf83780fdab06342d07ec6558f;hp=007e5bc9b2f8176ddfcfbd0b880baf9b8ef9664a;hpb=4af18f43633a19ceb38848901306dcf5f46074d5;p=openwrt.git diff --git a/rules.mk b/rules.mk index 007e5bc9b2..d3521649a5 100644 --- a/rules.mk +++ b/rules.mk @@ -252,11 +252,11 @@ endef # Execute commands under flock # $(1) => The shell expression. # $(2) => The lock name. If not given, the global lock will be used. -# $(3) => The filedescriptor used for the lock. Defaults to 1023. define locked - ( $(STAGING_DIR_HOST)/bin/flock -x $(if $(3),$(3),1023) && \ - $(1) \ - ) $(if $(3),$(strip $(3)),1023)>$(TMP_DIR)/.$(if $(2),$(strip $(2)),global).flock + SHELL= \ + $(STAGING_DIR_HOST)/bin/flock \ + $(TMP_DIR)/.$(if $(2),$(strip $(2)),global).flock \ + -c '$(subst ','\'',$(1))' endef # file extension