Skip to content
Snippets Groups Projects
Makefile 759 B
Newer Older
  • Learn to ignore specific revisions
  • PKG_NAME:=gluon-autoupdater
    
    PKG_CONFIG_DEPENDS := CONFIG_GLUON_BRANCH
    
    include ../gluon.mk
    
    define Package/gluon-autoupdater
      SECTION:=gluon
      CATEGORY:=Gluon
    
      DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
    
      TITLE:=Automatically update firmware
    endef
    
    
    define Package/gluon-autoupdater/config
    config GLUON_BRANCH
    	string "Gluon autoupdater branch"
    	depends on PACKAGE_gluon-autoupdater
    	default ""
    endef
    
    
    define Package/gluon-autoupdater/install
    
    ifneq ($(CONFIG_GLUON_BRANCH),"")
    	$(INSTALL_DIR) $(1)/lib/gluon/autoupdater
    	echo '$(call qstrip,$(CONFIG_GLUON_BRANCH))' > $(1)/lib/gluon/autoupdater/default_branch
    endif
    
    $(eval $(call BuildPackageGluon,gluon-autoupdater))