Makefile 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2009 Jo-Philipp Wich <jow@openwrt.org>
  3. #
  4. # This is free software, licensed under the Apache 2.0 license.
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=remote-update
  8. PKG_RELEASE:=4
  9. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  10. include $(INCLUDE_DIR)/package.mk
  11. define Package/remote-update
  12. SECTION:=luci
  13. CATEGORY:=LuCI
  14. SUBMENU:=9. Freifunk
  15. TITLE:=Freifunk remote update utility.
  16. DEPENDS:=@TARGET_atheros||@TARGET_ar71xx||@TARGET_brcm_2_4
  17. endef
  18. define Package/remote-update/description
  19. The freifunk remote-update utility uses sysupgrade to reflash the currently
  20. running firmware while keeping most of the existing configuratio.
  21. endef
  22. define Build/Prepare
  23. mkdir -p $(PKG_BUILD_DIR)
  24. endef
  25. define Build/Configure
  26. endef
  27. define Build/Compile
  28. endef
  29. define Package/remote-update/install
  30. $(CP) ./files/* $(1)/
  31. endef
  32. $(eval $(call BuildPackage,remote-update))