2013-09-29 20:38:12 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
PKG_NAME:=gluon-autoupdater
|
2013-10-02 11:33:47 +00:00
|
|
|
PKG_VERSION:=0.1
|
2014-02-11 16:10:11 +00:00
|
|
|
PKG_RELEASE:=1.$(GLUON_CONFIG_VERSION)$(if $(GLUON_BRANCH),.$(GLUON_BRANCH))
|
2013-09-29 20:38:12 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
define Package/gluon-autoupdater
|
|
|
|
SECTION:=gluon
|
|
|
|
CATEGORY:=Gluon
|
2014-02-09 22:16:34 +00:00
|
|
|
DEPENDS:=+gluon-core +gluon-cron +ecdsautils +!BUSYBOX_CONFIG_SHA512SUM:coreutils-sha512sum
|
2013-09-29 20:38:12 +00:00
|
|
|
TITLE:=Automatically update firmware
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Prepare
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
define Package/gluon-autoupdater/install
|
2013-09-29 20:38:12 +00:00
|
|
|
$(CP) ./files/* $(1)/
|
2014-02-06 18:57:39 +00:00
|
|
|
|
2013-10-02 11:33:47 +00:00
|
|
|
$(INSTALL_DIR) $(1)/lib/gluon/upgrade/autoupdater/invariant
|
2014-02-11 16:10:11 +00:00
|
|
|
GLUON_BRANCH='$(GLUON_BRANCH)' $(GLUON_CONFIGURE) invariant.pl > $(1)/lib/gluon/upgrade/autoupdater/invariant/010-autoupdater
|
2014-02-06 18:57:39 +00:00
|
|
|
chmod +x $(1)/lib/gluon/upgrade/autoupdater/invariant/010-autoupdater
|
2013-09-29 20:38:12 +00:00
|
|
|
endef
|
|
|
|
|
2013-09-29 22:12:45 +00:00
|
|
|
$(eval $(call BuildPackage,gluon-autoupdater))
|