Skip to content
Snippets Groups Projects
Select Git revision
  • 1090ba73b35dce20703ff3f00ac04184b7247ca2
  • 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
41 results

0001-tools-Makefile-fix-host-tools-build-dependencies.patch

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    0001-tools-Makefile-fix-host-tools-build-dependencies.patch 2.18 KiB
    From: Matthias Schiffer <mschiffer@universe-factory.net>
    Date: Wed, 7 May 2014 22:57:10 +0200
    Subject: tools/Makefile: fix host tools build dependencies
    
    diff --git a/tools/Makefile b/tools/Makefile
    index 6658f8c..26a3fb1 100644
    --- a/tools/Makefile
    +++ b/tools/Makefile
    @@ -75,6 +75,7 @@ endif
     $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-)
     $(curdir)/builddirs-default := $(tools-y)
     
    +
     ifndef DUMP_TARGET_DB
     define PrepareStaging
     	@for dir in $(1); do ( \
    @@ -86,10 +87,16 @@ define PrepareStaging
     endef
     
     # preparatory work
    +ifneq ($(ARCH),)
    +staging_prepared = $(STAGING_DIR)/.prepared
    +
     $(STAGING_DIR)/.prepared: $(TMP_DIR)/.build
     	$(call PrepareStaging,$(STAGING_DIR))
     	mkdir -p $(BUILD_DIR)/stamp
     	touch $@
    +else
    +staging_prepared :=
    +endif
     
     $(STAGING_DIR_HOST)/.prepared: $(TMP_DIR)/.build
     	$(call PrepareStaging,$(STAGING_DIR_HOST))
    @@ -101,7 +108,7 @@ $(STAGING_DIR_HOST)/.prepared: $(TMP_DIR)/.build
     
     
     define PrepareCommand
    -$(STAGING_DIR_HOST)/bin/$(1): $(STAGING_DIR)/.prepared
    +$(STAGING_DIR_HOST)/bin/$(1): $(STAGING_DIR_HOST)/.prepared
     	@mkdir -p "$$(dir $$@)"; rm -f "$$@"
     	@export FILE="$$$$(which $(2) 2>/dev/null | grep -v 'not found' | head -n1)"; [ -n "$$$$FILE" ] || { \
     		echo "Command $(1) not found."; false; \
    @@ -110,7 +117,7 @@ $(STAGING_DIR_HOST)/bin/$(1): $(STAGING_DIR)/.prepared
     endef
     endif
     
    -$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR)/.prepared
    +$(STAGING_DIR_HOST)/bin/stat: $(STAGING_DIR_HOST)/.prepared
     	@rm -f $@
     	@if stat --version > /dev/null 2>&1; then \
     		ln -s `which stat` $@; \
    @@ -128,8 +135,8 @@ $(eval $(call PrepareCommand,seq,gseq seq))
     $(eval $(call PrepareCommand,python,python2 python))
     
     $(curdir)/cmddeps = $(patsubst %,$(STAGING_DIR_HOST)/bin/%,find md5sum cp stat seq python)
    -$(curdir)//prepare = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared $($(curdir)/cmddeps)
    -$(curdir)//compile = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared $($(curdir)/cmddeps)
    +$(curdir)//prepare = $(staging_prepared) $(STAGING_DIR_HOST)/.prepared $($(curdir)/cmddeps)
    +$(curdir)//compile = $(staging_prepared) $(STAGING_DIR_HOST)/.prepared $($(curdir)/cmddeps)
     
     # prerequisites for the individual targets
     $(curdir)/ := .config prereq