Makefile 819 B

1234567891011121314151617181920212223242526272829303132333435
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-autoupdater
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=1.$(GLUON_CONFIG_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(INCLUDE_DIR)/package.mk
  7. define Package/gluon-autoupdater
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. DEPENDS:=+ecdsautils +gluon-cron +gluon-release
  11. TITLE:=Automatically update firmware
  12. endef
  13. define Build/Prepare
  14. mkdir -p $(PKG_BUILD_DIR)
  15. endef
  16. define Build/Configure
  17. endef
  18. define Build/Compile
  19. $(GLUON_CONFIGURE) invariant.pl > $(PKG_BUILD_DIR)/invariant.sh
  20. endef
  21. define Package/gluon-autoupdater/install
  22. $(CP) ./files/* $(1)/
  23. $(INSTALL_DIR) $(1)/lib/gluon/upgrade/autoupdater/invariant
  24. $(INSTALL_BIN) $(PKG_BUILD_DIR)/invariant.sh $(1)/lib/gluon/upgrade/autoupdater/invariant/010-autoupdater
  25. endef
  26. $(eval $(call BuildPackage,gluon-autoupdater))