Skip to content
Snippets Groups Projects
Select Git revision
  • 7dce74c0f9af63307f6d6d1285b06da711ff8816
  • v2018.2.x default
  • experimental
  • master
  • v2021.1.2-ffs
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • v2020.2.3-ffs
  • nrbffs/fastd-remove-delay
  • v2020.2.2-ffs
  • v2020.2.1-ffs
  • v2020.2-ffs
  • v2020.2.x
  • v2020.1.3-ffs
  • v2020.1.1-ffs
  • v2020.1-ffs
  • v2019.1.2-ffs
  • v2019.1.1-ffs
  • nrb/test-radv-filter
  • v2019.1-ffs
  • nrbffs/netgear-ex6120
  • v2021.1.2-ffs0.2
  • v2021.1.2-ffs0.1
  • v2021.1.1-ffs0.4
  • v2021.1.1-ffs0.3
  • v2021.1.1-ffs0.2
  • v2021.1.1-ffs0.1
  • v2021.1-ffs0.1
  • v2020.2.3-ffs0.3
  • v2020.2.3-ffs0.2
  • v2020.2.3-ffs0.1
  • v2020.2.2-ffs0.1
  • v2020.2.1-ffs0.1
  • v2020.2-ffs0.1
  • v2020.2
  • v2020.2.x-ffs0.1
  • v2020.1.3-ffs0.1
  • v2020.1.1-ffs0.1
  • v2020.1-ffs0.1
  • v2019.1.2-ffs0.1
  • v2019.1.1-ffs0.1
42 results

0026-rules.mk-make-the-locked-template-available-even-if-flock-has-not-been-built-yet-fall-back-to-unlocked-shell-command.patch

Blame
  • Forked from firmware / FFS Gluon
    3522 commits behind the upstream repository.
    user avatar
    Matthias Schiffer authored
    7dce74c0
    History
    0026-rules.mk-make-the-locked-template-available-even-if-flock-has-not-been-built-yet-fall-back-to-unlocked-shell-command.patch 969 B
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Sun, 24 Apr 2016 08:45:44 +0200
    Subject: rules.mk: make the locked template available even if flock has not been built yet (fall back to unlocked shell command)
    
    Signed-off-by: Felix Fietkau <nbd@openwrt.org>
    
    Backport of r48414
    
    diff --git a/rules.mk b/rules.mk
    index 9d0134d2b26a52b74d30546cc3d51f7e71d1bc75..ece502609bd08af21be782a706f0bf6599895568 100644
    --- a/rules.mk
    +++ b/rules.mk
    @@ -310,12 +310,16 @@ endef
     # Execute commands under flock
     # $(1) => The shell expression.
     # $(2) => The lock name. If not given, the global lock will be used.
    -define locked
    +ifneq ($(wildcard $(STAGING_DIR_HOST)/bin/flock),)
    +  define locked
     	SHELL= \
    -	$(STAGING_DIR_HOST)/bin/flock \
    +	flock \
     		$(TMP_DIR)/.$(if $(2),$(strip $(2)),global).flock \
     		-c '$(subst ','\'',$(1))'
    -endef
    +  endef
    +else
    +  locked=$(1)
    +endif
     
     # Recursively copy paths into another directory, purge dangling
     # symlinks before.