gluon/package/gluon-autoupdater/Makefile

34 lines
759 B
Makefile
Raw Normal View History

include $(TOPDIR)/rules.mk
2013-09-29 22:12:45 +00:00
PKG_NAME:=gluon-autoupdater
PKG_VERSION:=4
2017-01-18 16:21:43 +00:00
PKG_CONFIG_DEPENDS := CONFIG_GLUON_BRANCH
include ../gluon.mk
2013-09-29 22:12:45 +00:00
define Package/gluon-autoupdater
SECTION:=gluon
CATEGORY:=Gluon
DEPENDS:=+gluon-core +libgluonutil +micrond +autoupdater
TITLE:=Automatically update firmware
endef
2017-01-18 16:21:43 +00:00
define Package/gluon-autoupdater/config
config GLUON_BRANCH
string "Gluon autoupdater branch"
depends on PACKAGE_gluon-autoupdater
default ""
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
ifneq ($(CONFIG_GLUON_BRANCH),"")
$(INSTALL_DIR) $(1)/lib/gluon/autoupdater
echo '$(call qstrip,$(CONFIG_GLUON_BRANCH))' > $(1)/lib/gluon/autoupdater/default_branch
endif
endef
$(eval $(call BuildPackageGluon,gluon-autoupdater))