Makefile 1.0 KB

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