Makefile 995 B

12345678910111213141516171819202122232425262728293031323334353637
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ffho-autoupdater-wifi-fallback
  3. PKG_VERSION:=2
  4. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  5. PKG_BUILD_DEPENDS := respondd
  6. include $(TOPDIR)/../package/gluon.mk
  7. define Package/ffho-autoupdater-wifi-fallback
  8. SECTION:=ffho
  9. CATEGORY:=FFHO
  10. TITLE:=Implements switching to fallback mode if we are cut off from the mesh
  11. DEPENDS:=+gluon-autoupdater +libiwinfo-lua +iw
  12. MAINTAINER:=Freifunk Hochstift <kontakt@hochstift.freifunk.net>
  13. endef
  14. define Build/Prepare
  15. mkdir -p $(PKG_BUILD_DIR)
  16. $(CP) ./src/* $(PKG_BUILD_DIR)/
  17. endef
  18. define Build/Compile
  19. $(call Build/Compile/Default)
  20. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  21. endef
  22. define Package/ffho-autoupdater-wifi-fallback/install
  23. $(CP) ./files/* $(1)/
  24. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  25. $(INSTALL_DIR) $(1)/lib/gluon/respondd
  26. $(CP) $(PKG_BUILD_DIR)/respondd.so $(1)/lib/gluon/respondd/autoupdater-wifi-fallback.so
  27. endef
  28. $(eval $(call BuildPackage,ffho-autoupdater-wifi-fallback))