Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-core
  3. GLUON_VERSION = $(shell git describe --always --dirty=+ 2>/dev/null || echo unknown)
  4. PKG_VERSION:=$(if $(DUMP),x,$(GLUON_VERSION))
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include ../gluon.mk
  7. include $(INCLUDE_DIR)/cmake.mk
  8. define Package/gluon-core
  9. SECTION:=gluon
  10. CATEGORY:=Gluon
  11. TITLE:=Base files of Gluon
  12. DEPENDS:= \
  13. +gluon-site +libgluonutil +libiwinfo-lua +lua-platform-info +lua-simple-uci +lua-hash +lua-jsonc \
  14. +luci-lib-nixio +vxlan +odhcp6c +firewall +pretty-hostname
  15. endef
  16. define Package/gluon-core/description
  17. Gluon community wifi mesh firmware framework: core
  18. endef
  19. define Build/Prepare
  20. mkdir -p $(PKG_BUILD_DIR)
  21. $(CP) ./src/* $(PKG_BUILD_DIR)/
  22. endef
  23. define Build/Compile
  24. $(call Build/Compile/Default,all)
  25. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  26. endef
  27. define Package/gluon-core/install
  28. $(CP) ./files/* $(1)/
  29. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  30. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  31. $(INSTALL_DIR) $(1)/lib/gluon
  32. echo '$(GLUON_VERSION)' > $(1)/lib/gluon/gluon-version
  33. endef
  34. define Package/gluon-core/postinst
  35. #!/bin/sh
  36. $(call GluonCheckSite,check_site.lua)
  37. endef
  38. $(eval $(call BuildPackage,gluon-core))