Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=gluon-core
  3. PKG_VERSION:=3
  4. PKG_RELEASE:=$(GLUON_VERSION)
  5. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  6. include $(GLUONDIR)/include/package.mk
  7. define Package/gluon-core
  8. SECTION:=gluon
  9. CATEGORY:=Gluon
  10. TITLE:=Base files of Gluon
  11. DEPENDS:=+gluon-site +lua-platform-info +luci-lib-nixio +odhcp6c +firewall
  12. endef
  13. define LangConfig
  14. config GLUON_LANG_$(1)
  15. bool "$(GLUON_LANG_$(1)) language support"
  16. depends on PACKAGE_gluon-core
  17. default n
  18. endef
  19. define Package/gluon-core/config
  20. $(foreach lang,$(GLUON_SUPPORTED_LANGS),$(call LangConfig,$(lang)))
  21. endef
  22. define Package/gluon-core/description
  23. Gluon community wifi mesh firmware framework: core
  24. endef
  25. define Build/Prepare
  26. mkdir -p $(PKG_BUILD_DIR)
  27. endef
  28. define Build/Configure
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/gluon-core/install
  33. $(CP) ./files/* $(1)/
  34. $(INSTALL_DIR) $(1)/lib/gluon
  35. echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
  36. endef
  37. define Package/gluon-core/postinst
  38. #!/bin/sh
  39. $(call GluonCheckSite,check_site.lua)
  40. endef
  41. $(eval $(call BuildPackage,gluon-core))