Makefile 846 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-config +lua-platform-info +luci-lib-nixio +odhcp6c +firewall
  12. endef
  13. define Package/gluon-core/description
  14. Gluon community wifi mesh firmware framework: core
  15. endef
  16. define Build/Prepare
  17. mkdir -p $(PKG_BUILD_DIR)
  18. endef
  19. define Build/Configure
  20. endef
  21. define Build/Compile
  22. endef
  23. define Package/gluon-core/install
  24. $(CP) ./files/* $(1)/
  25. $(INSTALL_DIR) $(1)/lib/gluon
  26. echo "$(GLUON_VERSION)" > $(1)/lib/gluon/gluon-version
  27. endef
  28. define Package/gluon-core/postinst
  29. #!/bin/sh
  30. $(call GluonCheckSite,check_site.lua)
  31. endef
  32. $(eval $(call BuildPackage,gluon-core))