Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. define Package/gluon-core
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Base files of Gluon
  11. DEPENDS:=+gluon-site +libgluonutil +lua-platform-info +lua-simple-uci +lua-hash +luci-lib-jsonc +luci-lib-nixio +odhcp6c +firewall +pretty-hostname
  12. endef
  13. define Package/gluon-core/description
  14. Gluon community wifi mesh firmware framework: core
  15. endef
  16. define Build/Configure
  17. endef
  18. define Build/Compile
  19. $(call GluonSrcDiet,./luasrc,$(PKG_BUILD_DIR)/luadest/)
  20. endef
  21. define Package/gluon-core/install
  22. $(CP) ./files/* $(1)/
  23. $(CP) $(PKG_BUILD_DIR)/luadest/* $(1)/
  24. $(INSTALL_DIR) $(1)/lib/gluon
  25. echo '$(GLUON_VERSION)' > $(1)/lib/gluon/gluon-version
  26. endef
  27. define Package/gluon-core/postinst
  28. #!/bin/sh
  29. $(call GluonCheckSite,check_site.lua)
  30. endef
  31. $(eval $(call BuildPackage,gluon-core))