Skip to content
Snippets Groups Projects
Select Git revision
  • 087f14be802e509f8b377d0166e2d9f23f9ed78f
  • 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

Makefile

Blame
  • Forked from firmware / FFS Gluon
    Source project has a limited visibility.
    • Matthias Schiffer's avatar
      912490c0
      Add GLUON_DEPRECATED flag · 912490c0
      Matthias Schiffer authored
      This new build flag is mandatory for now (it may default to 0 in a future
      Gluon version). It may be set to the following values:
      
      * 0 - Do not build any images for deprecated devices.
      * upgrade - Only build sysupgrade images for deprecated devices.
      * full - Build both sysupgrade and factory images for deprecated devices.
      
      "Other" images are handled like factory images, as they are also used for
      the initial installation of Gluon on a device.
      Add GLUON_DEPRECATED flag
      Matthias Schiffer authored
      This new build flag is mandatory for now (it may default to 0 in a future
      Gluon version). It may be set to the following values:
      
      * 0 - Do not build any images for deprecated devices.
      * upgrade - Only build sysupgrade images for deprecated devices.
      * full - Build both sysupgrade and factory images for deprecated devices.
      
      "Other" images are handled like factory images, as they are also used for
      the initial installation of Gluon on a device.
    Makefile 5.41 KiB
    all:
    
    LC_ALL:=C
    LANG:=C
    export LC_ALL LANG
    
    # check for spaces & resolve possibly relative paths
    define mkabspath
     ifneq (1,$(words [$($(1))]))
      $$(error $(1) must not contain spaces)
     endif
     override $(1) := $(abspath $($(1)))
    endef
    
    GLUON_SITEDIR ?= site
    $(eval $(call mkabspath,GLUON_SITEDIR))
    
    $(GLUON_SITEDIR)/site.mk:
    	$(error No site configuration was found. Please check out a site configuration to $(GLUON_SITEDIR))
    
    include $(GLUON_SITEDIR)/site.mk
    
    GLUON_RELEASE ?= $(error GLUON_RELEASE not set. GLUON_RELEASE can be set in site.mk or on the command line)
    
    GLUON_DEPRECATED ?= $(error GLUON_DEPRECATED not set. Please consult the documentation)
    
    # initialize (possibly already user set) directory variables
    GLUON_TMPDIR ?= tmp
    GLUON_OUTPUTDIR ?= output
    GLUON_IMAGEDIR ?= $(GLUON_OUTPUTDIR)/images
    GLUON_PACKAGEDIR ?= $(GLUON_OUTPUTDIR)/packages
    GLUON_TARGETSDIR ?= targets
    GLUON_PATCHESDIR ?= patches
    
    $(eval $(call mkabspath,GLUON_TMPDIR))
    $(eval $(call mkabspath,GLUON_OUTPUTDIR))
    $(eval $(call mkabspath,GLUON_IMAGEDIR))
    $(eval $(call mkabspath,GLUON_PACKAGEDIR))
    $(eval $(call mkabspath,GLUON_TARGETSDIR))
    $(eval $(call mkabspath,GLUON_PATCHESDIR))
    
    GLUON_MULTIDOMAIN ?= 0
    GLUON_WLAN_MESH ?= 11s
    GLUON_DEBUG ?= 0
    
    export GLUON_RELEASE GLUON_REGION GLUON_MULTIDOMAIN GLUON_WLAN_MESH GLUON_DEBUG GLUON_DEPRECATED GLUON_DEVICES \
    	 GLUON_TARGETSDIR GLUON_PATCHESDIR GLUON_TMPDIR GLUON_IMAGEDIR GLUON_PACKAGEDIR
    
    show-release:
    	@echo '$(GLUON_RELEASE)'
    
    
    update: FORCE
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/update.sh
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/patch.sh
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/feeds.sh
    
    update-patches: FORCE
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/update.sh
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/update-patches.sh
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/patch.sh
    
    update-feeds: FORCE
    	@GLUON_SITEDIR='$(GLUON_SITEDIR)' scripts/feeds.sh
    
    
    GLUON_TARGETS :=
    
    define GluonTarget
    gluon_target := $(1)$$(if $(2),-$(2))