Makefile 1.1 KB

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