2013-09-29 20:38:12 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
PKG_NAME:=gluon-autoupdater
|
2014-07-11 12:06:42 +00:00
|
|
|
PKG_VERSION:=4
|
2013-09-29 20:38:12 +00:00
|
|
|
|
2020-07-04 09:17:29 +00:00
|
|
|
PKG_CONFIG_DEPENDS := CONFIG_GLUON_AUTOUPDATER_BRANCH CONFIG_GLUON_AUTOUPDATER_ENABLED
|
2013-09-29 20:38:12 +00:00
|
|
|
|
2016-10-08 22:18:45 +00:00
|
|
|
include ../gluon.mk
|
2013-09-29 20:38:12 +00:00
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
define Package/gluon-autoupdater
|
2016-02-02 05:38:03 +00:00
|
|
|
DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
|
2013-09-29 20:38:12 +00:00
|
|
|
TITLE:=Automatically update firmware
|
|
|
|
endef
|
|
|
|
|
2017-01-18 16:21:43 +00:00
|
|
|
define Package/gluon-autoupdater/config
|
2020-07-04 09:17:29 +00:00
|
|
|
source "$(SOURCE)/Config.in"
|
2017-01-18 16:21:43 +00:00
|
|
|
endef
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
define Package/gluon-autoupdater/install
|
2018-03-08 18:49:41 +00:00
|
|
|
$(Gluon/Build/Install)
|
2016-02-02 05:38:03 +00:00
|
|
|
|
2017-01-18 16:21:43 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater
|
2020-07-04 09:17:29 +00:00
|
|
|
ifneq ($(CONFIG_GLUON_AUTOUPDATER_BRANCH),"")
|
|
|
|
echo '$(call qstrip,$(CONFIG_GLUON_AUTOUPDATER_BRANCH))' > $(1)/lib/gluon/autoupdater/default_branch
|
|
|
|
endif
|
|
|
|
ifneq ($(CONFIG_GLUON_AUTOUPDATER_ENABLED),)
|
|
|
|
touch $(1)/lib/gluon/autoupdater/default_enabled
|
|
|
|
endif
|
2013-09-29 20:38:12 +00:00
|
|
|
endef
|
|
|
|
|
2018-03-08 18:49:41 +00:00
|
|
|
$(eval $(call BuildPackageGluon,gluon-autoupdater))
|