Makefile 928 B

123456789101112131415161718192021222324252627282930313233343536
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-autoupdater
  3. PKG_VERSION:=0.1
  4. PKG_RELEASE:=1.$(GLUON_CONFIG_VERSION)$(if $(GLUON_BRANCH),.$(GLUON_BRANCH))
  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:=+gluon-core +gluon-cron +ecdsautils +!BUSYBOX_CONFIG_SHA512SUM:coreutils-sha512sum
  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. endef
  20. define Package/gluon-autoupdater/install
  21. $(CP) ./files/* $(1)/
  22. $(INSTALL_DIR) $(1)/lib/gluon/upgrade/autoupdater/invariant
  23. GLUON_BRANCH='$(GLUON_BRANCH)' $(GLUON_CONFIGURE) invariant.pl > $(1)/lib/gluon/upgrade/autoupdater/invariant/010-autoupdater
  24. chmod +x $(1)/lib/gluon/upgrade/autoupdater/invariant/010-autoupdater
  25. endef
  26. $(eval $(call BuildPackage,gluon-autoupdater))