gluon/package/gluon-autoupdater/Makefile

31 lines
812 B
Makefile
Raw Permalink Normal View History

include $(TOPDIR)/rules.mk
2013-09-29 22:12:45 +00:00
PKG_NAME:=gluon-autoupdater
PKG_CONFIG_DEPENDS := CONFIG_GLUON_AUTOUPDATER_BRANCH CONFIG_GLUON_AUTOUPDATER_ENABLED
include ../gluon.mk
2013-09-29 22:12:45 +00:00
define Package/gluon-autoupdater
DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
TITLE:=Automatically update firmware
endef
2017-01-18 16:21:43 +00:00
define Package/gluon-autoupdater/config
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
$(Gluon/Build/Install)
2017-01-18 16:21:43 +00:00
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater
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
endef
$(eval $(call BuildPackageGluon,gluon-autoupdater))